summaryrefslogtreecommitdiff
path: root/libc/src/math/generic/coshf.cpp
diff options
context:
space:
mode:
authorGuillaume Chatelet <gchatelet@google.com>2024-01-23 11:51:18 +0100
committerGitHub <noreply@github.com>2024-01-23 11:51:18 +0100
commitb524eed9259e26b5812e2b55cc05e42fda217486 (patch)
tree87d032bc3d946a441b2618782c8863b6d922dd34 /libc/src/math/generic/coshf.cpp
parent8e09f13d679df6c34dd03d8ad6116c832318cab0 (diff)
Revert "[libc] Remove unnecessary `FPBits` functions and properties" (#79118)
Reverts llvm/llvm-project#79113 It broke aarch64 build bot machines.
Diffstat (limited to 'libc/src/math/generic/coshf.cpp')
-rw-r--r--libc/src/math/generic/coshf.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/libc/src/math/generic/coshf.cpp b/libc/src/math/generic/coshf.cpp
index a618056a64dc..3b01852e9f54 100644
--- a/libc/src/math/generic/coshf.cpp
+++ b/libc/src/math/generic/coshf.cpp
@@ -32,16 +32,16 @@ LLVM_LIBC_FUNCTION(float, coshf, (float x)) {
}
if (xbits.is_inf_or_nan())
- return x + FPBits::inf().get_val();
+ return x + FPBits::inf();
int rounding = fputil::quick_get_round();
if (LIBC_UNLIKELY(rounding == FE_DOWNWARD || rounding == FE_TOWARDZERO))
- return FPBits::max_normal().get_val();
+ return FPBits::max_normal();
fputil::set_errno_if_required(ERANGE);
fputil::raise_except_if_required(FE_OVERFLOW);
- return x + FPBits::inf().get_val();
+ return x + FPBits::inf();
}
// TODO: We should be able to reduce the latency and reciprocal throughput