summaryrefslogtreecommitdiff
path: root/libc/src/math/generic/tanf.cpp
diff options
context:
space:
mode:
authorGuillaume Chatelet <gchatelet@google.com>2024-01-23 11:48:28 +0100
committerGitHub <noreply@github.com>2024-01-23 11:48:28 +0100
commit3bc86bf3bf742506818cf4d94c9227e4afed6f19 (patch)
tree7ff6848549a603bc7ca23cab7170409fe7b37128 /libc/src/math/generic/tanf.cpp
parent9629c73aeb4609f58aa9edb0b87d18dd9e8fecc0 (diff)
[libc] Remove unnecessary `FPBits` functions and properties (#79113)
This patch reduces the surface of `FPBits`.
Diffstat (limited to 'libc/src/math/generic/tanf.cpp')
-rw-r--r--libc/src/math/generic/tanf.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/src/math/generic/tanf.cpp b/libc/src/math/generic/tanf.cpp
index 7909e9e5d556..09dd62eae03f 100644
--- a/libc/src/math/generic/tanf.cpp
+++ b/libc/src/math/generic/tanf.cpp
@@ -114,7 +114,7 @@ LLVM_LIBC_FUNCTION(float, tanf, (float x)) {
fputil::set_errno_if_required(EDOM);
fputil::raise_except_if_required(FE_INVALID);
}
- return x + FPBits::build_quiet_nan(0);
+ return x + FPBits::build_quiet_nan().get_val();
}
// Other large exceptional values
if (auto r = TANF_EXCEPTS.lookup_odd(x_abs, x_sign);