about summary refs log tree commit diff
path: root/sysdeps/libm-i387/s_asinhf.S
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/libm-i387/s_asinhf.S')
-rw-r--r--sysdeps/libm-i387/s_asinhf.S6
1 files changed, 5 insertions, 1 deletions
diff --git a/sysdeps/libm-i387/s_asinhf.S b/sysdeps/libm-i387/s_asinhf.S
index f47bc9e0ac..7e5176c4a6 100644
--- a/sysdeps/libm-i387/s_asinhf.S
+++ b/sysdeps/libm-i387/s_asinhf.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(__asinhf)
 	andl	$0x80000000, %ecx
 	xorl	%ecx, 8(%esp)
 	flds	4(%esp)			// |x|
+	movl	%eax, %edx
 	cmpl	$0x38000000, %eax
 	jb	2f			// |x| < 2^-14
+	orl	$0x807fffff, %edx
+	incl	%edx
+	jz	4f			// x in ħInf or NaN
 	fldln2				// log(2) : |x|
 	cmpl	$0x47000000, %eax
 	fxch				// |x| : log(2)