diff options
author | Rich Felker <dalias@aerifal.cx> | 2012-03-17 17:34:30 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2012-03-17 17:34:30 -0400 |
commit | 0b337e04aafe2cf5012bbef67b250eb25da67e0f (patch) | |
tree | 1d152c050e657f95d06807adb29f56ebee1a2847 /src/fenv/i386 | |
parent | 523a3ab1a24c0aa06b14d9c931173cd90a46d29e (diff) | |
parent | 88cfaf8a142a8c57beccb89398a6421c4bbf121a (diff) | |
download | musl-0b337e04aafe2cf5012bbef67b250eb25da67e0f.tar.gz musl-0b337e04aafe2cf5012bbef67b250eb25da67e0f.tar.bz2 musl-0b337e04aafe2cf5012bbef67b250eb25da67e0f.tar.xz musl-0b337e04aafe2cf5012bbef67b250eb25da67e0f.zip |
Merge remote branch 'nsz/master'
Diffstat (limited to 'src/fenv/i386')
-rw-r--r-- | src/fenv/i386/fenv.s | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/fenv/i386/fenv.s b/src/fenv/i386/fenv.s index 8148a30d..ee2eae6e 100644 --- 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 - sub $32,%esp - fnstenv (%esp) + sub $4,%esp + fnstcw (%esp) andb $0xf3,1(%esp) - or %ecx,(%esp) - fldenv (%esp) - add $32,%esp + or %cx,(%esp) + fldcw (%esp) + add $4,%esp ret .global fegetround .type fegetround,@function fegetround: - sub $28,%esp - fnstenv (%esp) - mov 4(%esp),%eax - add $28,%esp - and $0xc,%ah + sub $4,%esp + fnstcw (%esp) + mov (%esp),%ax + add $4,%esp + and $0xc00,%eax ret .global fegetenv |