projects
/
libc-test
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
math: add fenv test and new 'add' function in gen
[libc-test]
/
src
/
math
/
gen
/
mplibm.c
diff --git
a/src/math/gen/mplibm.c
b/src/math/gen/mplibm.c
index
ccb7c81
..
04af049
100644
(file)
--- a/
src/math/gen/mplibm.c
+++ b/
src/math/gen/mplibm.c
@@
-54,6
+54,8
@@
static int mpl2(struct t *s, long double (*f)(long double, long double))
return 0;
}
+static double add(double x, double y) { double z = x + y; return z; }
+int mpadd(struct t *t) { return mpd2(t, add); }
int mpacos(struct t *t) { return mpd1(t, acos); }
int mpacosf(struct t *t) { return mpf1(t, acosf); }