aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/libm-i387/s_expm1l.S
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/libm-i387/s_expm1l.S')
-rw-r--r--sysdeps/libm-i387/s_expm1l.S9
1 files changed, 5 insertions, 4 deletions
diff --git a/sysdeps/libm-i387/s_expm1l.S b/sysdeps/libm-i387/s_expm1l.S
index b7e6b36..46290ca 100644
--- a/sysdeps/libm-i387/s_expm1l.S
+++ b/sysdeps/libm-i387/s_expm1l.S
@@ -30,9 +30,9 @@
.text
#endif
.align ALIGNARG(4)
- ASM_TYPE_DIRECTIVE(zero,@object)
-zero: .double 0.0
- ASM_SIZE_DIRECTIVE(zero)
+ ASM_TYPE_DIRECTIVE(minus1,@object)
+minus1: .double -1.0
+ ASM_SIZE_DIRECTIVE(minus1)
ASM_TYPE_DIRECTIVE(one,@object)
one: .double 1.0
ASM_SIZE_DIRECTIVE(one)
@@ -79,7 +79,8 @@ ENTRY(__expm1l)
2: testl $0x200, %eax // Test sign.
jz 3f // If positive, jump.
- fldl MO(zero) // Set result to 0.
+ fstp %st
+ fldl MO(minus1) // Set result to -1.0.
3: ret
END(__expm1l)
weak_alias (__expm1l, expm1l)