projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix system breakage window during make install due to permissions
[musl]
/
src
/
fenv
/
x86_64
/
fenv.s
diff --git
a/src/fenv/x86_64/fenv.s
b/src/fenv/x86_64/fenv.s
index
dda6b61
..
6aaf25e
100644
(file)
--- a/
src/fenv/x86_64/fenv.s
+++ b/
src/fenv/x86_64/fenv.s
@@
-3,6
+3,7
@@
feclearexcept:
# maintain exceptions in the sse mxcsr, clear x87 exceptions
mov %edi,%ecx
feclearexcept:
# maintain exceptions in the sse mxcsr, clear x87 exceptions
mov %edi,%ecx
+ and $0x3f,%ecx
fnstsw %ax
test %eax,%ecx
jz 1f
fnstsw %ax
test %eax,%ecx
jz 1f
@@
-20,16
+21,17
@@
feclearexcept:
.global feraiseexcept
.type feraiseexcept,@function
.global feraiseexcept
.type feraiseexcept,@function
-feraiseexcept:
+feraiseexcept:
+ and $0x3f,%edi
stmxcsr -8(%rsp)
or %edi,-8(%rsp)
ldmxcsr -8(%rsp)
xor %eax,%eax
ret
stmxcsr -8(%rsp)
or %edi,-8(%rsp)
ldmxcsr -8(%rsp)
xor %eax,%eax
ret
-.global fesetround
-.type fesetround,@function
-fesetround:
+.global
__
fesetround
+.type
__
fesetround,@function
+
__
fesetround:
push %rax
xor %eax,%eax
mov %edi,%ecx
push %rax
xor %eax,%eax
mov %edi,%ecx
@@
-85,6
+87,7
@@
fesetenv:
.global fetestexcept
.type fetestexcept,@function
fetestexcept:
.global fetestexcept
.type fetestexcept,@function
fetestexcept:
+ and $0x3f,%edi
push %rax
stmxcsr (%rsp)
pop %rsi
push %rax
stmxcsr (%rsp)
pop %rsi