diff options
author | Robert Nagy <robert@cvs.openbsd.org> | 2024-01-26 11:27:40 +0000 |
---|---|---|
committer | Robert Nagy <robert@cvs.openbsd.org> | 2024-01-26 11:27:40 +0000 |
commit | ab5fedb801b84474ed4ac3b8ea9300110083617f (patch) | |
tree | b3b15643c8486c85143204edf061589c3a27d74a /gnu/llvm/compiler-rt/lib/builtins/floatunsitf.c | |
parent | ac86ae3fbb62d1b532f4d9950de889d680c751df (diff) |
import llvm compiler-rt 16.0.6
Diffstat (limited to 'gnu/llvm/compiler-rt/lib/builtins/floatunsitf.c')
-rw-r--r-- | gnu/llvm/compiler-rt/lib/builtins/floatunsitf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gnu/llvm/compiler-rt/lib/builtins/floatunsitf.c b/gnu/llvm/compiler-rt/lib/builtins/floatunsitf.c index a4bf0f65fe1..7ba1fb6000d 100644 --- a/gnu/llvm/compiler-rt/lib/builtins/floatunsitf.c +++ b/gnu/llvm/compiler-rt/lib/builtins/floatunsitf.c @@ -16,7 +16,7 @@ #include "fp_lib.h" #if defined(CRT_HAS_128BIT) && defined(CRT_LDBL_128BIT) -COMPILER_RT_ABI fp_t __floatunsitf(unsigned int a) { +COMPILER_RT_ABI fp_t __floatunsitf(su_int a) { const int aWidth = sizeof a * CHAR_BIT; @@ -25,7 +25,7 @@ COMPILER_RT_ABI fp_t __floatunsitf(unsigned int a) { return fromRep(0); // Exponent of (fp_t)a is the width of abs(a). - const int exponent = (aWidth - 1) - __builtin_clz(a); + const int exponent = (aWidth - 1) - clzsi(a); rep_t result; // Shift a into the significand field and clear the implicit bit. |