diff options
author | 2021-01-02 17:10:07 +0000 | |
---|---|---|
committer | 2021-01-02 17:10:07 +0000 | |
commit | 1f9cb04fc6f537ca6cf5a53c28927340cba218a2 (patch) | |
tree | b7ed93e9425eb3b3592edb1eedf5dd5ca8a1b515 /gnu/llvm/compiler-rt/lib/builtins/fp_lib.h | |
parent | Add missing .Cm macros to the Address Family table. (diff) | |
download | wireguard-openbsd-1f9cb04fc6f537ca6cf5a53c28927340cba218a2.tar.xz wireguard-openbsd-1f9cb04fc6f537ca6cf5a53c28927340cba218a2.zip |
Import compiler-rt 11.0.0 release.
ok kettenis@
Diffstat (limited to 'gnu/llvm/compiler-rt/lib/builtins/fp_lib.h')
-rw-r--r-- | gnu/llvm/compiler-rt/lib/builtins/fp_lib.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gnu/llvm/compiler-rt/lib/builtins/fp_lib.h b/gnu/llvm/compiler-rt/lib/builtins/fp_lib.h index e2a906681c4..bd1f180f499 100644 --- a/gnu/llvm/compiler-rt/lib/builtins/fp_lib.h +++ b/gnu/llvm/compiler-rt/lib/builtins/fp_lib.h @@ -46,7 +46,7 @@ typedef float fp_t; #define REP_C UINT32_C #define significandBits 23 -static __inline int rep_clz(rep_t a) { return __builtin_clz(a); } +static __inline int rep_clz(rep_t a) { return clzsi(a); } // 32x32 --> 64 bit multiply static __inline void wideMultiply(rep_t a, rep_t b, rep_t *hi, rep_t *lo) { @@ -69,9 +69,9 @@ static __inline int rep_clz(rep_t a) { return __builtin_clzl(a); #else if (a & REP_C(0xffffffff00000000)) - return __builtin_clz(a >> 32); + return clzsi(a >> 32); else - return 32 + __builtin_clz(a & REP_C(0xffffffff)); + return 32 + clzsi(a & REP_C(0xffffffff)); #endif } |