assembly optimizations for fmod/remainder functions
[musl] / src / math / i386 / remainderl.s
diff --git a/src/math/i386/remainderl.s b/src/math/i386/remainderl.s
new file mode 100644 (file)
index 0000000..0097872
--- /dev/null
@@ -0,0 +1,11 @@
+.global remainderl
+.type remainderl,@function
+remainderl:
+       fldt 16(%esp)
+       fldt 4(%esp)
+1:     fprem1
+       fstsw %ax
+       sahf
+       jp 1b
+       fstp %st(1)
+       ret