From ef7a10667b796fdafde6018206ac33ea2cede0bd Mon Sep 17 00:00:00 2001 From: das Date: Sun, 20 Feb 2005 22:50:40 +0000 Subject: [PATCH] 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 --- lib/msun/i387/Makefile.inc | 4 ++-- lib/msun/i387/s_cosf.S | 15 --------------- lib/msun/i387/s_sinf.S | 15 --------------- lib/msun/i387/s_tanf.S | 16 ---------------- 4 files changed, 2 insertions(+), 48 deletions(-) delete mode 100644 lib/msun/i387/s_cosf.S delete mode 100644 lib/msun/i387/s_sinf.S delete mode 100644 lib/msun/i387/s_tanf.S diff --git a/lib/msun/i387/Makefile.inc b/lib/msun/i387/Makefile.inc index a7de3e3b9241..2a73c9028b3e 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 67bb6ba5fe0c..000000000000 --- a/lib/msun/i387/s_cosf.S +++ /dev/null @@ -1,15 +0,0 @@ -/* - * Written by J.T. Conklin . - * Public domain. - */ - -#include - -__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 ba6ffbcc7bb5..000000000000 --- a/lib/msun/i387/s_sinf.S +++ /dev/null @@ -1,15 +0,0 @@ -/* - * Written by J.T. Conklin . - * Public domain. - */ - -#include - -__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 9be9c6dfc119..000000000000 --- a/lib/msun/i387/s_tanf.S +++ /dev/null @@ -1,16 +0,0 @@ -/* - * Written by J.T. Conklin . - * Public domain. - */ - -#include - -__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