[libc-commits] [libc] 5bb0a90 - [libc] Fix two missing cases in 1c92911e9e1d503c0dfc4367da7f15d0dff50587
Haojian Wu via libc-commits
libc-commits at lists.llvm.org
Wed Dec 8 06:14:42 PST 2021
Author: Haojian Wu
Date: 2021-12-08T15:14:21+01:00
New Revision: 5bb0a9075c82a19bf6533e5fd79058e1dc41fc4b
URL: https://github.com/llvm/llvm-project/commit/5bb0a9075c82a19bf6533e5fd79058e1dc41fc4b
DIFF: https://github.com/llvm/llvm-project/commit/5bb0a9075c82a19bf6533e5fd79058e1dc41fc4b.diff
LOG: [libc] Fix two missing cases in 1c92911e9e1d503c0dfc4367da7f15d0dff50587
Fix the broken build.
Added:
Modified:
libc/src/__support/FPUtil/x86_64/SqrtLongDouble.h
Removed:
################################################################################
diff --git a/libc/src/__support/FPUtil/x86_64/SqrtLongDouble.h b/libc/src/__support/FPUtil/x86_64/SqrtLongDouble.h
index 0f8393f02a8c..584015665c28 100644
--- a/libc/src/__support/FPUtil/x86_64/SqrtLongDouble.h
+++ b/libc/src/__support/FPUtil/x86_64/SqrtLongDouble.h
@@ -75,7 +75,7 @@ template <> inline long double sqrt<long double, 0>(long double x) {
UIntType xMant = bits.get_mantissa();
// Step 1a: Normalize denormal input
- if (bits.getImplicitBit()) {
+ if (bits.get_implicit_bit()) {
xMant |= One;
} else if (bits.get_unbiased_exponent() == 0) {
internal::normalize<long double>(xExp, xMant);
@@ -134,7 +134,7 @@ template <> inline long double sqrt<long double, 0>(long double x) {
// Extract output
FPBits<long double> out(0.0L);
out.set_unbiased_exponent(xExp);
- out.setImplicitBit(1);
+ out.set_implicit_bit(1);
out.set_mantissa((y & (One - 1)));
return out;
More information about the libc-commits
mailing list