make thread list lock a recursive lock
[musl] / src / fenv / i386 / fenv.s
index eaeb6be..e7f7932 100644 (file)
@@ -61,6 +61,7 @@ feraiseexcept:
        ret
 
 .global __fesetround
+.hidden __fesetround
 .type __fesetround,@function
 __fesetround:
        mov 4(%esp),%ecx
@@ -75,7 +76,7 @@ __fesetround:
 1:     addl $__hwcap-1b,(%esp)
        pop %edx
        testl $0x02000000,(%edx)
-       jmp 1f
+       jz 1f
        stmxcsr (%esp)
        shl $3,%ch
        andb $0x9f,1(%esp)
@@ -126,7 +127,7 @@ fesetenv:
        push %eax
        push %eax
        push %eax
-       push %eax
+       pushl $0xffff
        push %eax
        pushl $0x37f
        fldenv (%esp)