projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix i386 fegetround and make fesetround faster
[musl]
/
src
/
fenv
/
i386
/
fenv.s
diff --git
a/src/fenv/i386/fenv.s
b/src/fenv/i386/fenv.s
index
8148a30
..
ee2eae6
100644
(file)
--- a/
src/fenv/i386/fenv.s
+++ b/
src/fenv/i386/fenv.s
@@
-32,22
+32,22
@@
feraiseexcept:
fesetround:
mov 4(%esp),%ecx
xor %eax,%eax
fesetround:
mov 4(%esp),%ecx
xor %eax,%eax
- sub $
32
,%esp
- fnst
env
(%esp)
+ sub $
4
,%esp
+ fnst
cw
(%esp)
andb $0xf3,1(%esp)
andb $0xf3,1(%esp)
- or %
e
cx,(%esp)
- fld
env
(%esp)
- add $
32
,%esp
+ or %cx,(%esp)
+ fld
cw
(%esp)
+ add $
4
,%esp
ret
.global fegetround
.type fegetround,@function
fegetround:
ret
.global fegetround
.type fegetround,@function
fegetround:
- sub $
28
,%esp
- fnst
env
(%esp)
- mov
4(%esp),%e
ax
- add $
28
,%esp
- and $0xc
,%ah
+ sub $
4
,%esp
+ fnst
cw
(%esp)
+ mov
(%esp),%
ax
+ add $
4
,%esp
+ and $0xc
00,%eax
ret
.global fegetenv
ret
.global fegetenv