diff options
author | Ulrich Drepper <drepper@redhat.com> | 2000-02-13 19:40:31 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2000-02-13 19:40:31 +0000 |
commit | 87a27b3337a64d58b3a39fdc7f9e02a460bddcbc (patch) | |
tree | 7ef199d796bc3faa84fbcffff03d19e396059dc1 /sysdeps/i386/fpu/s_sinf.S | |
parent | 7cdd956e1c55930a020b61806d642b6047deffc7 (diff) | |
download | glibc-87a27b3337a64d58b3a39fdc7f9e02a460bddcbc.tar.gz glibc-87a27b3337a64d58b3a39fdc7f9e02a460bddcbc.tar.xz glibc-87a27b3337a64d58b3a39fdc7f9e02a460bddcbc.zip |
Update.
* sysdeps/i386/fpu/s_cosf.S: Domain of opcode is not large enough so test for overflow and handle it. * sysdeps/i386/fpu/s_sinf.S: Likewise. * sysdeps/i386/fpu/s_tanf.S: Likewise. Patch by Miloslav Trmac <mitr@volny.cz> (PR libc/1563).
Diffstat (limited to 'sysdeps/i386/fpu/s_sinf.S')
-rw-r--r-- | sysdeps/i386/fpu/s_sinf.S | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/sysdeps/i386/fpu/s_sinf.S b/sysdeps/i386/fpu/s_sinf.S index a010d60f5e..5ca45f52e2 100644 --- a/sysdeps/i386/fpu/s_sinf.S +++ b/sysdeps/i386/fpu/s_sinf.S @@ -7,10 +7,23 @@ RCSID("$NetBSD: s_sinf.S,v 1.3 1995/05/09 00:27:53 jtc Exp $") -/* A float's domain isn't large enough to require argument reduction. */ ENTRY(__sinf) flds 4(%esp) fsin + fnstsw %ax + testl $0x400,%eax + jnz 1f + ret + .align ALIGNARG(4) +1: fldpi + fadd %st(0) + fxch %st(1) +2: fprem1 + fnstsw %ax + testl $0x400,%eax + jnz 2b + fstp %st(1) + fsin ret END (__sinf) weak_alias (__sinf, sinf) |