From ae1e0c309a85ef48822ef184e3a67f5150d436c1 Mon Sep 17 00:00:00 2001 From: Ed Schouten Date: Thu, 12 Feb 2015 13:29:38 +0100 Subject: [PATCH] Remove the non-standard drem() function. --- include/openlibm_math.h | 1 - src/Make.files | 2 +- src/w_drem.c | 16 ---------------- src/w_dremf.c | 17 ----------------- 4 files changed, 1 insertion(+), 35 deletions(-) delete mode 100644 src/w_drem.c delete mode 100644 src/w_dremf.c diff --git a/include/openlibm_math.h b/include/openlibm_math.h index 2113390..faa30de 100644 --- a/include/openlibm_math.h +++ b/include/openlibm_math.h @@ -303,7 +303,6 @@ double trunc(double); * BSD math library entry points */ #if __BSD_VISIBLE -double drem(double, double); int finite(double) __pure2; int isnanf(float) __pure2; diff --git a/src/Make.files b/src/Make.files index dc930e9..8c8bf07 100644 --- a/src/Make.files +++ b/src/Make.files @@ -31,7 +31,7 @@ $(CUR_SRCS) = common.c \ s_signgam.c s_sin.c s_sincos.c \ s_sinf.c s_sincosf.c s_tan.c s_tanf.c s_tanh.c s_tanhf.c s_tgammaf.c \ s_trunc.c s_truncf.c s_cpow.c s_cpowf.c \ - w_cabs.c w_cabsf.c w_drem.c w_dremf.c + w_cabs.c w_cabsf.c ifneq ($(OS), WINNT) $(CUR_SRCS) += s_nan.c diff --git a/src/w_drem.c b/src/w_drem.c deleted file mode 100644 index 8fe000a..0000000 --- a/src/w_drem.c +++ /dev/null @@ -1,16 +0,0 @@ -/* - * drem() wrapper for remainder(). - * - * Written by J.T. Conklin, - * Placed into the Public Domain, 1994. - */ - -#include -#include "math_private.h" - -DLLEXPORT double -drem(x, y) - double x, y; -{ - return remainder(x, y); -} diff --git a/src/w_dremf.c b/src/w_dremf.c deleted file mode 100644 index faf3d2a..0000000 --- a/src/w_dremf.c +++ /dev/null @@ -1,17 +0,0 @@ -/* - * dremf() wrapper for remainderf(). - * - * Written by J.T. Conklin, - * Placed into the Public Domain, 1994. - */ -/* $FreeBSD: src/lib/msun/src/w_dremf.c,v 1.3 2004/07/28 05:53:18 kan Exp $ */ - -#include - -#include "math_private.h" - -DLLEXPORT float -dremf(float x, float y) -{ - return remainderf(x, y); -}