mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-02-09 02:49:11 +00:00
[libc] Include -150 to the special cases at the beginning of exp2f function.
This commit is contained in:
parent
da48f08abf
commit
58edd26255
@ -73,8 +73,8 @@ LLVM_LIBC_FUNCTION(float, exp2f, (float x)) {
|
||||
using FPBits = typename fputil::FPBits<float>;
|
||||
FPBits xbits(x);
|
||||
|
||||
// When x < -150 or nan
|
||||
if (unlikely(xbits.uintval() > 0xc316'0000U)) {
|
||||
// When x =< -150 or nan
|
||||
if (unlikely(xbits.uintval() >= 0xc316'0000U)) {
|
||||
// exp(-Inf) = 0
|
||||
if (xbits.is_inf())
|
||||
return 0.0f;
|
||||
|
Loading…
x
Reference in New Issue
Block a user