mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-02-13 13:45:16 +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>;
|
using FPBits = typename fputil::FPBits<float>;
|
||||||
FPBits xbits(x);
|
FPBits xbits(x);
|
||||||
|
|
||||||
// When x < -150 or nan
|
// When x =< -150 or nan
|
||||||
if (unlikely(xbits.uintval() > 0xc316'0000U)) {
|
if (unlikely(xbits.uintval() >= 0xc316'0000U)) {
|
||||||
// exp(-Inf) = 0
|
// exp(-Inf) = 0
|
||||||
if (xbits.is_inf())
|
if (xbits.is_inf())
|
||||||
return 0.0f;
|
return 0.0f;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user