Skip to content

Commit

Permalink
Add back static, which somehow got lost
Browse files Browse the repository at this point in the history
  • Loading branch information
WeiqunZhang committed Nov 7, 2023
1 parent a43b5bb commit 2946aef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Src/Base/AMReX_Algorithm.H
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ int clz (T x) noexcept;
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE
int clz_generic (std::uint8_t x) noexcept
{
constexpr int clz_lookup[16] = { 4, 3, 2, 2, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0 };
static constexpr int clz_lookup[16] = { 4, 3, 2, 2, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0 };
auto upper = x >> 4;
auto lower = x & 0xF;
return upper ? clz_lookup[upper] : 4 + clz_lookup[lower];
Expand Down

0 comments on commit 2946aef

Please sign in to comment.