summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authordas <das@FreeBSD.org>2005-02-20 22:50:40 +0000
committerdas <das@FreeBSD.org>2005-02-20 22:50:40 +0000
commitef7a10667b796fdafde6018206ac33ea2cede0bd (patch)
tree3366e67a0e4c6a2c15e299272500388abf40c8b6 /lib
parent16fe05a5483c3e798293e3ce4ec15ed40ce9e7c7 (diff)
downloadFreeBSD-src-ef7a10667b796fdafde6018206ac33ea2cede0bd.zip
FreeBSD-src-ef7a10667b796fdafde6018206ac33ea2cede0bd.tar.gz
Remove the float versions of the i387 trig functions obtained from
NetBSD. They're buggy, giving particularly for inputs larger in magnitude than 2**63. Noticed by: bde PR: 67469
Diffstat (limited to 'lib')
-rw-r--r--lib/msun/i387/Makefile.inc4
-rw-r--r--lib/msun/i387/s_cosf.S15
-rw-r--r--lib/msun/i387/s_sinf.S15
-rw-r--r--lib/msun/i387/s_tanf.S16
4 files changed, 2 insertions, 48 deletions
diff --git a/lib/msun/i387/Makefile.inc b/lib/msun/i387/Makefile.inc
index a7de3e3..2a73c90 100644
--- a/lib/msun/i387/Makefile.inc
+++ b/lib/msun/i387/Makefile.inc
@@ -7,5 +7,5 @@ ARCH_SRCS = e_acos.S e_asin.S e_atan2.S e_exp.S e_fmod.S e_log.S e_log10.S \
# float counterparts
ARCH_SRCS+= e_atan2f.S e_log10f.S e_logf.S e_remainderf.S e_scalbf.S \
- e_sqrtf.S s_ceilf.S s_copysignf.S s_cosf.S s_floorf.S s_logbf.S \
- s_rintf.S s_scalbnf.S s_significandf.S s_sinf.S s_tanf.S
+ e_sqrtf.S s_ceilf.S s_copysignf.S s_floorf.S s_logbf.S \
+ s_rintf.S s_scalbnf.S s_significandf.S
diff --git a/lib/msun/i387/s_cosf.S b/lib/msun/i387/s_cosf.S
deleted file mode 100644
index 67bb6ba..0000000
--- a/lib/msun/i387/s_cosf.S
+++ /dev/null
@@ -1,15 +0,0 @@
-/*
- * Written by J.T. Conklin <jtc@netbsd.org>.
- * Public domain.
- */
-
-#include <machine/asm.h>
-
-__FBSDID("$FreeBSD$");
-/* RCSID("$NetBSD: s_cosf.S,v 1.4 1999/07/02 15:37:34 simonb Exp $") */
-
-/* A float's domain isn't large enough to require argument reduction. */
-ENTRY(cosf)
- flds 4(%esp)
- fcos
- ret
diff --git a/lib/msun/i387/s_sinf.S b/lib/msun/i387/s_sinf.S
deleted file mode 100644
index ba6ffbc..0000000
--- a/lib/msun/i387/s_sinf.S
+++ /dev/null
@@ -1,15 +0,0 @@
-/*
- * Written by J.T. Conklin <jtc@netbsd.org>.
- * Public domain.
- */
-
-#include <machine/asm.h>
-
-__FBSDID("$FreeBSD$");
-/* 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
- ret
diff --git a/lib/msun/i387/s_tanf.S b/lib/msun/i387/s_tanf.S
deleted file mode 100644
index 9be9c6d..0000000
--- a/lib/msun/i387/s_tanf.S
+++ /dev/null
@@ -1,16 +0,0 @@
-/*
- * Written by J.T. Conklin <jtc@netbsd.org>.
- * Public domain.
- */
-
-#include <machine/asm.h>
-
-__FBSDID("$FreeBSD$");
-/* RCSID("$NetBSD: s_tanf.S,v 1.3 1995/05/09 00:31:09 jtc Exp $") */
-
-/* A float's domain isn't large enough to require argument reduction. */
-ENTRY(tanf)
- flds 4(%esp)
- fptan
- fstp %st(0)
- ret
OpenPOWER on IntegriCloud