projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
update ctype data to unicode 12.1.0
[musl]
/
src
/
fenv
/
x32
/
fenv.s
diff --git
a/src/fenv/x32/fenv.s
b/src/fenv/x32/fenv.s
index
b5aeaf4
..
835f23b
100644
(file)
--- a/
src/fenv/x32/fenv.s
+++ b/
src/fenv/x32/fenv.s
@@
-8,14
+8,14
@@
feclearexcept:
test %eax,%ecx
jz 1f
fnclex
test %eax,%ecx
jz 1f
fnclex
-1: stmxcsr -8(%
r
sp)
+1: stmxcsr -8(%
e
sp)
and $0x3f,%eax
and $0x3f,%eax
- or %eax,-8(%
r
sp)
- test %ecx,-8(%
r
sp)
+ or %eax,-8(%
e
sp)
+ test %ecx,-8(%
e
sp)
jz 1f
not %ecx
jz 1f
not %ecx
- and %ecx,-8(%
r
sp)
- ldmxcsr -8(%
r
sp)
+ and %ecx,-8(%
e
sp)
+ ldmxcsr -8(%
e
sp)
1: xor %eax,%eax
ret
1: xor %eax,%eax
ret
@@
-23,27
+23,28
@@
feclearexcept:
.type feraiseexcept,@function
feraiseexcept:
and $0x3f,%edi
.type feraiseexcept,@function
feraiseexcept:
and $0x3f,%edi
- stmxcsr -8(%
r
sp)
- or %edi,-8(%
r
sp)
- ldmxcsr -8(%
r
sp)
+ stmxcsr -8(%
e
sp)
+ or %edi,-8(%
e
sp)
+ ldmxcsr -8(%
e
sp)
xor %eax,%eax
ret
.global __fesetround
xor %eax,%eax
ret
.global __fesetround
+.hidden __fesetround
.type __fesetround,@function
__fesetround:
push %rax
xor %eax,%eax
mov %edi,%ecx
.type __fesetround,@function
__fesetround:
push %rax
xor %eax,%eax
mov %edi,%ecx
- fnstcw (%
r
sp)
- andb $0xf3,1(%
r
sp)
- or %ch,1(%
r
sp)
- fldcw (%
r
sp)
- stmxcsr (%
r
sp)
+ fnstcw (%
e
sp)
+ andb $0xf3,1(%
e
sp)
+ or %ch,1(%
e
sp)
+ fldcw (%
e
sp)
+ stmxcsr (%
e
sp)
shl $3,%ch
shl $3,%ch
- andb $0x9f,1(%
r
sp)
- or %ch,1(%
r
sp)
- ldmxcsr (%
r
sp)
+ andb $0x9f,1(%
e
sp)
+ or %ch,1(%
e
sp)
+ ldmxcsr (%
e
sp)
pop %rcx
ret
pop %rcx
ret
@@
-51,7
+52,7
@@
__fesetround:
.type fegetround,@function
fegetround:
push %rax
.type fegetround,@function
fegetround:
push %rax
- stmxcsr (%
r
sp)
+ stmxcsr (%
e
sp)
pop %rax
shr $3,%eax
and $0xc00,%eax
pop %rax
shr $3,%eax
and $0xc00,%eax
@@
-61,27
+62,27
@@
fegetround:
.type fegetenv,@function
fegetenv:
xor %eax,%eax
.type fegetenv,@function
fegetenv:
xor %eax,%eax
- fnstenv (%
r
di)
- stmxcsr 28(%
r
di)
+ fnstenv (%
e
di)
+ stmxcsr 28(%
e
di)
ret
.global fesetenv
.type fesetenv,@function
fesetenv:
xor %eax,%eax
ret
.global fesetenv
.type fesetenv,@function
fesetenv:
xor %eax,%eax
- inc %
r
di
+ inc %
e
di
jz 1f
jz 1f
- fldenv -1(%
r
di)
- ldmxcsr 27(%
r
di)
+ fldenv -1(%
e
di)
+ ldmxcsr 27(%
e
di)
ret
1: push %rax
push %rax
pushq $0xffff
pushq $0x37f
ret
1: push %rax
push %rax
pushq $0xffff
pushq $0x37f
- fldenv (%
r
sp)
+ fldenv (%
e
sp)
pushq $0x1f80
pushq $0x1f80
- ldmxcsr (%
r
sp)
- add $40,%
r
sp
+ ldmxcsr (%
e
sp)
+ add $40,%
e
sp
ret
.global fetestexcept
ret
.global fetestexcept
@@
-89,7
+90,7
@@
fesetenv:
fetestexcept:
and $0x3f,%edi
push %rax
fetestexcept:
and $0x3f,%edi
push %rax
- stmxcsr (%
r
sp)
+ stmxcsr (%
e
sp)
pop %rsi
fnstsw %ax
or %esi,%eax
pop %rsi
fnstsw %ax
or %esi,%eax