summaryrefslogtreecommitdiff
path: root/src/math/remainder.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/math/remainder.c')
-rw-r--r--src/math/remainder.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/math/remainder.c b/src/math/remainder.c
new file mode 100644
index 0000000..612155f
--- /dev/null
+++ b/src/math/remainder.c
@@ -0,0 +1,9 @@
+#include <math.h>
+
+double remainder(double x, double y)
+{
+ int q;
+ return remquo(x, y, &q);
+}
+
+weak_alias(remainder, drem);