summaryrefslogtreecommitdiffstats
path: root/libc-top-half/musl/src/math/x32/fmodl.s
diff options
context:
space:
mode:
Diffstat (limited to 'libc-top-half/musl/src/math/x32/fmodl.s')
-rw-r--r--libc-top-half/musl/src/math/x32/fmodl.s11
1 files changed, 11 insertions, 0 deletions
diff --git a/libc-top-half/musl/src/math/x32/fmodl.s b/libc-top-half/musl/src/math/x32/fmodl.s
new file mode 100644
index 0000000..c3f790c
--- /dev/null
+++ b/libc-top-half/musl/src/math/x32/fmodl.s
@@ -0,0 +1,11 @@
+.global fmodl
+.type fmodl,@function
+fmodl:
+ fldt 24(%esp)
+ fldt 8(%esp)
+1: fprem
+ fnstsw %ax
+ testb $4,%ah
+ jnz 1b
+ fstp %st(1)
+ ret