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