Skip to content

Commit

Permalink
Integrate LLVM at llvm/llvm-project@99c43e3ce314
Browse files Browse the repository at this point in the history
Updates LLVM usage to match
[99c43e3ce314](llvm/llvm-project@99c43e3ce314)

PiperOrigin-RevId: 644739615
  • Loading branch information
XLS Team authored and copybara-github committed Jun 19, 2024
1 parent 25fc0e8 commit 04af18f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xls/contrib/xlscc/synth_only/xls_int.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@ namespace {
template <int rem>
static const int Log2Floor = (rem <= 1) ? 0 : (1 + Log2Floor<rem / 2>);
template <>
static const int Log2Floor<0> = 0;
const int Log2Floor<0> = 0;
template <int n>
static const int Log2Ceil = Log2Floor<n> + (((1 << Log2Floor<n>) == n) ? 0 : 1);
template <>
static const int Log2Ceil<1> = 1;
const int Log2Ceil<1> = 1;

static_assert(Log2Ceil<1> == 1);
static_assert(Log2Ceil<2> == 1);
Expand Down

0 comments on commit 04af18f

Please sign in to comment.