We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ccf5b3e commit e6afe2aCopy full SHA for e6afe2a
libc/src/__support/FPUtil/double_double.h
@@ -77,9 +77,9 @@ LIBC_INLINE constexpr NumberPair<T> split(T a) {
77
NumberPair<T> r{0.0, 0.0};
78
// CN = 2^N.
79
constexpr T CN = static_cast<T>(1 << N);
80
- constexpr T C = CN + 1.0;
81
- double t1 = C * a;
82
- double t2 = a - t1;
+ constexpr T C = CN + T(1);
+ T t1 = C * a;
+ T t2 = a - t1;
83
r.hi = t1 + t2;
84
r.lo = a - r.hi;
85
return r;
0 commit comments