projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
assembly optimizations for fmod/remainder functions
[musl]
/
src
/
math
/
i386
/
remainderf.s
diff --git a/src/math/i386/remainderf.s
b/src/math/i386/remainderf.s
new file mode 100644
(file)
index 0000000..
5b5fc23
--- /dev/null
+++ b/
src/math/i386/remainderf.s
@@ -0,0
+1,11
@@
+.global remainderf
+.type remainderf,@function
+remainderf:
+ flds 8(%esp)
+ flds 4(%esp)
+1: fprem1
+ fstsw %ax
+ sahf
+ jp 1b
+ fstp %st(1)
+ ret