diff options
-rw-r--r-- | lib/fp_lib.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/fp_lib.h b/lib/fp_lib.h index ab425afa6..eac670d7f 100644 --- a/lib/fp_lib.h +++ b/lib/fp_lib.h @@ -57,9 +57,9 @@ static inline int rep_clz(rep_t a) { return __builtin_clzl(a); #else if (a & REP_C(0xffffffff00000000)) - return 32 + __builtin_clz(a >> 32); + return __builtin_clz(a >> 32); else - return __builtin_clz(a & REP_C(0xffffffff)); + return 32 + __builtin_clz(a & REP_C(0xffffffff)); #endif } |