diff options
Diffstat (limited to 'lib/msun/i387/s_cos.S')
-rw-r--r-- | lib/msun/i387/s_cos.S | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/msun/i387/s_cos.S b/lib/msun/i387/s_cos.S index 9c3f2ca..9951ab0 100644 --- a/lib/msun/i387/s_cos.S +++ b/lib/msun/i387/s_cos.S @@ -40,16 +40,16 @@ ENTRY(cos) fldl 4(%esp) fcos fnstsw %ax - andw $0x400,%ax - jnz 1f + sahf + jp 1f ret 1: fldpi fadd %st(0) fxch %st(1) -2: fprem1 +2: fprem fnstsw %ax - andw $0x400,%ax - jnz 2b + sahf + jp 2b fstp %st(1) fcos ret |