projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
math: fix x86_64 and x32 asm not to use sahf instruction
[musl]
/
src
/
math
/
x86_64
/
fmodl.s
diff --git
a/src/math/x86_64/fmodl.s
b/src/math/x86_64/fmodl.s
index
ca81e60
..
cd8d2b7
100644
(file)
--- a/
src/math/x86_64/fmodl.s
+++ b/
src/math/x86_64/fmodl.s
@@
-5,7
+5,7
@@
fmodl:
fldt 8(%rsp)
1: fprem
fstsw %ax
- sahf
- j
p
1b
+ testb $4,%ah
+ j
nz
1b
fstp %st(1)
ret