summaryrefslogtreecommitdiffstats
path: root/lib/msun/i387/s_tan.S
diff options
context:
space:
mode:
Diffstat (limited to 'lib/msun/i387/s_tan.S')
-rw-r--r--lib/msun/i387/s_tan.S12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/msun/i387/s_tan.S b/lib/msun/i387/s_tan.S
index e31ebdf..182b9f7 100644
--- a/lib/msun/i387/s_tan.S
+++ b/lib/msun/i387/s_tan.S
@@ -40,17 +40,17 @@ ENTRY(tan)
fldl 4(%esp)
fptan
fnstsw %ax
- andw $0x400,%ax
- jnz 1f
+ sahf
+ jp 1f
fstp %st(0)
ret
1: fldpi
fadd %st(0)
fxch %st(1)
-2: fprem1
- fstsw %ax
- andw $0x400,%ax
- jnz 2b
+2: fprem
+ fnstsw %ax
+ sahf
+ jp 2b
fstp %st(1)
fptan
fstp %st(0)
OpenPOWER on IntegriCloud