projects
/
libc-test
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
math: add jn and yn
[libc-test]
/
src
/
math
/
gen
/
mplibm.c
diff --git
a/src/math/gen/mplibm.c
b/src/math/gen/mplibm.c
index
cf17d6d
..
ccb7c81
100644
(file)
--- a/
src/math/gen/mplibm.c
+++ b/
src/math/gen/mplibm.c
@@
-411,3
+411,20
@@
mp_fff_f(fma)
mp_fff_f(fmaf)
mp_fff_f(fmal)
mp_fff_f(fmaf)
mp_fff_f(fmal)
+#define mp_if_f(n) \
+int mp##n(struct t *t) \
+{ \
+ t->dy = 0; \
+ setupfenv(t->r); \
+ t->y = n(t->i, t->x); \
+ t->e = getexcept(); \
+ return 0; \
+}
+
+mp_if_f(jn)
+mp_if_f(jnf)
+//mp_if_f(jnl)
+mp_if_f(yn)
+mp_if_f(ynf)
+//mp_if_f(ynl)
+