Fix Clang build.
This commit is contained in:
@@ -79,7 +79,7 @@ static void strscan_double(uint64_t x, TValue *o, int32_t ex2, int32_t neg)
|
||||
/* Avoid double rounding for denormals. */
|
||||
if (LJ_UNLIKELY(ex2 <= -1075 && x != 0)) {
|
||||
/* NYI: all of this generates way too much code on 32 bit CPUs. */
|
||||
#if defined(__GNUC__) && LJ_64
|
||||
#if (defined(__GNUC__) || defined(__clang__)) && LJ_64
|
||||
int32_t b = (int32_t)(__builtin_clzll(x)^63);
|
||||
#else
|
||||
int32_t b = (x>>32) ? 32+(int32_t)lj_fls((uint32_t)(x>>32)) :
|
||||
|
||||
Reference in New Issue
Block a user