projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
06f863a
)
[libc] Return a float NaN for log1pf instead of double NaN.
author
Tue Ly
<lntue@google.com>
Tue, 8 Feb 2022 02:04:12 +0000
(21:04 -0500)
committer
Tue Ly
<lntue@google.com>
Tue, 8 Feb 2022 02:07:09 +0000
(21:07 -0500)
libc/src/math/generic/log1pf.cpp
patch
|
blob
|
history
diff --git
a/libc/src/math/generic/log1pf.cpp
b/libc/src/math/generic/log1pf.cpp
index
25e5271
..
b9494a4
100644
(file)
--- a/
libc/src/math/generic/log1pf.cpp
+++ b/
libc/src/math/generic/log1pf.cpp
@@
-44,7
+44,8
@@
INLINE_FMA static inline float log(double x) {
if (xbits.uintval() > FPBits::MAX_NORMAL) {
if (xbits.get_sign() && !xbits.is_nan()) {
- return FPBits::build_nan(1 << (fputil::MantissaWidth<float>::VALUE - 1));
+ return fputil::FPBits<float>::build_nan(
+ 1 << (fputil::MantissaWidth<float>::VALUE - 1));
}
return static_cast<float>(x);
}