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