about summary refs log tree commit diff
path: root/sysdeps/i386/fpu/e_acosf.S
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2012-04-30 09:38:06 +0000
committerJoseph Myers <joseph@codesourcery.com>2012-04-30 09:38:06 +0000
commit5ba3cc691c856e5c67a7d4cd4713f20a79f7ba81 (patch)
tree5dfe27d20ca6c9d2549d2ecd7f2dd565832dc2b0 /sysdeps/i386/fpu/e_acosf.S
parent9568c0c2255045456a09b441f89c6641e27a4bec (diff)
downloadglibc-5ba3cc691c856e5c67a7d4cd4713f20a79f7ba81.tar.gz
glibc-5ba3cc691c856e5c67a7d4cd4713f20a79f7ba81.tar.xz
glibc-5ba3cc691c856e5c67a7d4cd4713f20a79f7ba81.zip
Fix acos (-1) in round-downwards mode on x86 (bug 14034).
Diffstat (limited to 'sysdeps/i386/fpu/e_acosf.S')
-rw-r--r--sysdeps/i386/fpu/e_acosf.S1
1 files changed, 1 insertions, 0 deletions
diff --git a/sysdeps/i386/fpu/e_acosf.S b/sysdeps/i386/fpu/e_acosf.S
index 6a843a51dd..54930af8b2 100644
--- a/sysdeps/i386/fpu/e_acosf.S
+++ b/sysdeps/i386/fpu/e_acosf.S
@@ -16,6 +16,7 @@ ENTRY(__ieee754_acosf)
 	fld1
 	fsubp				/* 1 - x^2 */
 	fsqrt				/* sqrt (1 - x^2) */
+	fabs
 	fxch	%st(1)
 	fpatan
 	ret