projects
/
musl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
d09a83f
)
remove unnecessary TODO comments from fma.c
author
nsz
<nsz@port70.net>
Mon, 19 Mar 2012 01:05:57 +0000
(
02:05
+0100)
committer
nsz
<nsz@port70.net>
Mon, 19 Mar 2012 01:05:57 +0000
(
02:05
+0100)
src/math/fma.c
patch
|
blob
|
history
diff --git
a/src/math/fma.c
b/src/math/fma.c
index
a9de2cb
..
87d450c
100644
(file)
--- a/
src/math/fma.c
+++ b/
src/math/fma.c
@@
-23,10
+23,6
@@
static void add(long double *hi, long double *lo, long double x, long double y)
*lo = y - r;
}
*lo = y - r;
}
-/*
-TODO(nsz): probably simpler mul is enough if we assume x and y are doubles
-so last 11bits are all zeros, no subnormals etc
-*/
/* exact mul, assumes no over/underflow */
static void mul(long double *hi, long double *lo, long double x, long double y)
{
/* exact mul, assumes no over/underflow */
static void mul(long double *hi, long double *lo, long double x, long double y)
{
@@
-115,7
+111,7
@@
double fma(double x, double y, double z)
add(&hi, &lo2, xy, z);
if (hi == 0) {
fesetround(round);
add(&hi, &lo2, xy, z);
if (hi == 0) {
fesetround(round);
- /*
TODO: verify that the sign of 0 is alway
s correct */
+ /*
make sure that the sign of 0 i
s correct */
return (xy + z) + lo1;
}
} else {
return (xy + z) + lo1;
}
} else {