summaryrefslogtreecommitdiffstats
path: root/src/libm.h
diff options
context:
space:
mode:
authorEmanuele Torre <torreemanuele6@gmail.com>2024-01-26 11:26:57 +0100
committerNico Williams <nico@cryptonector.com>2024-01-26 16:16:25 -0600
commitbd3c828f9844d0f885881041779d6bbdcc1451f6 (patch)
treea05d66d1cb27db7b6b6d0a571ca23875143823b1 /src/libm.h
parent605836b2632aba936d002b5071e22997e0801d8c (diff)
libm.h+builtin.c: add and use LIBM_DA and LIBM_DA_NO macros
For functions that from one double return an array with two numbers.
Diffstat (limited to 'src/libm.h')
-rw-r--r--src/libm.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/libm.h b/src/libm.h
index 8efc1c5e..7332bd8c 100644
--- a/src/libm.h
+++ b/src/libm.h
@@ -289,3 +289,18 @@ LIBM_DDD(ldexp)
#else
LIBM_DDD_NO(ldexp)
#endif
+#ifdef HAVE_MODF
+LIBM_DA(modf, double)
+#else
+LIBM_DA_NO(modf, double)
+#endif
+#ifdef HAVE_FREXP
+LIBM_DA(frexp, int)
+#else
+LIBM_DA_NO(frexp, int)
+#endif
+#ifdef HAVE_LGAMMA_R
+LIBM_DA(lgamma_r, int)
+#else
+LIBM_DA_NO(lgamma_r, int)
+#endif