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:
5814b7b
)
[libc][Obvious] Remove constexpr fomr exact_mult in double_double.h
author
Tue Ly
<lntue@google.com>
Sun, 8 Jan 2023 22:52:46 +0000
(17:52 -0500)
committer
Tue Ly
<lntue@google.com>
Sun, 8 Jan 2023 22:52:46 +0000
(17:52 -0500)
libc/src/__support/FPUtil/double_double.h
patch
|
blob
|
history
diff --git
a/libc/src/__support/FPUtil/double_double.h
b/libc/src/__support/FPUtil/double_double.h
index
1c37f84
..
35e2bbc
100644
(file)
--- a/
libc/src/__support/FPUtil/double_double.h
+++ b/
libc/src/__support/FPUtil/double_double.h
@@
-40,7
+40,7
@@
constexpr inline DoubleDouble add(DoubleDouble a, double b) {
// TODO(lntue): add a correct multiplication when FMA instructions are not
// available.
-
constexpr
inline DoubleDouble exact_mult(double a, double b) {
+inline DoubleDouble exact_mult(double a, double b) {
DoubleDouble r{0.0, 0.0};
r.hi = a * b;
r.lo = fputil::multiply_add(a, b, -r.hi);