aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/libm-i387/s_asinh.S
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/libm-i387/s_asinh.S')
-rw-r--r--sysdeps/libm-i387/s_asinh.S6
1 files changed, 5 insertions, 1 deletions
diff --git a/sysdeps/libm-i387/s_asinh.S b/sysdeps/libm-i387/s_asinh.S
index a71d0b66f4..45153fe2d3 100644
--- a/sysdeps/libm-i387/s_asinh.S
+++ b/sysdeps/libm-i387/s_asinh.S
@@ -1,5 +1,5 @@
/* ix87 specific implementation of arcsinh.
- Copyright (C) 1996 Free Software Foundation, Inc.
+ Copyright (C) 1996, 1997 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1996.
@@ -51,8 +51,12 @@ ENTRY(__asinh)
andl $0x80000000, %ecx
xorl %ecx, 8(%esp)
fldl 4(%esp) // |x|
+ movl %eax, %edx
cmpl $0x3e300000, %eax
jb 2f // |x| < 2^-28
+ orl $0x800fffff, %edx
+ incl %edx
+ jz 4f // x in ħInf or NaN
fldln2 // log(2) : |x|
cmpl $0x41b00000, %eax
fxch // |x| : log(2)