summaryrefslogtreecommitdiff
path: root/src/math/finitef.c
diff options
context:
space:
mode:
authorSzabolcs Nagy <nsz@port70.net>2013-11-21 01:16:49 +0000
committerSzabolcs Nagy <nsz@port70.net>2013-11-21 01:16:49 +0000
commit5d01ab4ac64b913c537e91f7c01d5c8e910151da (patch)
tree68585091ada93029345fb30960e61cb6c8c0eb42 /src/math/finitef.c
parentebbaf2180e6e32043837f570982c2ee86cf19eae (diff)
downloadmusl-5d01ab4ac64b913c537e91f7c01d5c8e910151da.tar.gz
math: add (obsolete) bsd drem and finite functions
Diffstat (limited to 'src/math/finitef.c')
-rw-r--r--src/math/finitef.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/math/finitef.c b/src/math/finitef.c
new file mode 100644
index 00000000..2c4c7714
--- /dev/null
+++ b/src/math/finitef.c
@@ -0,0 +1,7 @@
+#define _GNU_SOURCE
+#include <math.h>
+
+int finitef(float x)
+{
+ return isfinite(x);
+}