Permalink
Browse files

Removed constexpr from asm.

  • Loading branch information...
emeryberger committed Oct 9, 2017
1 parent 94af0fe commit ddad5b29df98e43a5a7b37aa7d27df3c1d872486
Showing with 1 addition and 1 deletion.
  1. +1 −1 utility/ilog2.h
@@ -29,7 +29,7 @@ namespace HL {
return (unsigned int) sz;
}
#elif 0 // defined(__GNUC__) && defined(__x86_64__)
static constexpr inline unsigned int ilog2 (size_t sz)
static inline unsigned int ilog2 (size_t sz)
{
sz = (sz << 1) - 1;
asm ("bsrq %0, %0" : "=r" (sz) : "0" (sz));

0 comments on commit ddad5b2

Please sign in to comment.