diff options
author | 1995-12-14 02:45:15 +0000 | |
---|---|---|
committer | 1995-12-14 02:45:15 +0000 | |
commit | 25363975c46ac4e3b6c0dfe16b64ecff794a519d (patch) | |
tree | fdee54f2bab1194960f17c1662f411a43817ca94 /lib/libm/src | |
parent | update from netbsd (diff) | |
download | wireguard-openbsd-25363975c46ac4e3b6c0dfe16b64ecff794a519d.tar.xz wireguard-openbsd-25363975c46ac4e3b6c0dfe16b64ecff794a519d.zip |
from netbsd:
Changed w_gamma.c, w_gamma_r.c, w_gammaf.c, w_gammaf_r.c to call
__ieee754_lgamma_r or __ieee754_lgammaf_r.
Removed e_gamma.c, e_gamma_r.c, e_gammaf.c, e_gammaf_r.c, e_lgamma.c,
e_lgamma_f.c.
Diffstat (limited to 'lib/libm/src')
-rw-r--r-- | lib/libm/src/e_gamma.c | 37 | ||||
-rw-r--r-- | lib/libm/src/e_gamma_r.c | 35 | ||||
-rw-r--r-- | lib/libm/src/e_gammaf.c | 39 | ||||
-rw-r--r-- | lib/libm/src/e_gammaf_r.c | 38 | ||||
-rw-r--r-- | lib/libm/src/e_lgamma.c | 36 | ||||
-rw-r--r-- | lib/libm/src/e_lgammaf.c | 39 | ||||
-rw-r--r-- | lib/libm/src/w_gamma.c | 6 | ||||
-rw-r--r-- | lib/libm/src/w_gamma_r.c | 6 | ||||
-rw-r--r-- | lib/libm/src/w_gammaf.c | 6 | ||||
-rw-r--r-- | lib/libm/src/w_gammaf_r.c | 6 |
10 files changed, 12 insertions, 236 deletions
diff --git a/lib/libm/src/e_gamma.c b/lib/libm/src/e_gamma.c deleted file mode 100644 index fbfeb7c045f..00000000000 --- a/lib/libm/src/e_gamma.c +++ /dev/null @@ -1,37 +0,0 @@ -/* @(#)e_gamma.c 5.1 93/09/24 */ -/* - * ==================================================== - * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved. - * - * Developed at SunPro, a Sun Microsystems, Inc. business. - * Permission to use, copy, modify, and distribute this - * software is freely granted, provided that this notice - * is preserved. - * ==================================================== - * - */ - -#if defined(LIBM_SCCS) && !defined(lint) -static char rcsid[] = "$NetBSD: e_gamma.c,v 1.6 1995/05/10 20:45:11 jtc Exp $"; -#endif - -/* __ieee754_gamma(x) - * Return the logarithm of the Gamma function of x. - * - * Method: call __ieee754_gamma_r - */ - -#include "math.h" -#include "math_private.h" - -extern int signgam; - -#ifdef __STDC__ - double __ieee754_gamma(double x) -#else - double __ieee754_gamma(x) - double x; -#endif -{ - return __ieee754_gamma_r(x,&signgam); -} diff --git a/lib/libm/src/e_gamma_r.c b/lib/libm/src/e_gamma_r.c deleted file mode 100644 index 0f4468e77dd..00000000000 --- a/lib/libm/src/e_gamma_r.c +++ /dev/null @@ -1,35 +0,0 @@ -/* @(#)er_gamma.c 5.1 93/09/24 */ -/* - * ==================================================== - * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved. - * - * Developed at SunPro, a Sun Microsystems, Inc. business. - * Permission to use, copy, modify, and distribute this - * software is freely granted, provided that this notice - * is preserved. - * ==================================================== - */ - -#if defined(LIBM_SCCS) && !defined(lint) -static char rcsid[] = "$NetBSD: e_gamma_r.c,v 1.6 1995/05/10 20:45:13 jtc Exp $"; -#endif - -/* __ieee754_gamma_r(x, signgamp) - * Reentrant version of the logarithm of the Gamma function - * with user provide pointer for the sign of Gamma(x). - * - * Method: See __ieee754_lgamma_r - */ - -#include "math.h" -#include "math_private.h" - -#ifdef __STDC__ - double __ieee754_gamma_r(double x, int *signgamp) -#else - double __ieee754_gamma_r(x,signgamp) - double x; int *signgamp; -#endif -{ - return __ieee754_lgamma_r(x,signgamp); -} diff --git a/lib/libm/src/e_gammaf.c b/lib/libm/src/e_gammaf.c deleted file mode 100644 index c51f02229a3..00000000000 --- a/lib/libm/src/e_gammaf.c +++ /dev/null @@ -1,39 +0,0 @@ -/* e_gammaf.c -- float version of e_gamma.c. - * Conversion to float by Ian Lance Taylor, Cygnus Support, ian@cygnus.com. - */ - -/* - * ==================================================== - * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved. - * - * Developed at SunPro, a Sun Microsystems, Inc. business. - * Permission to use, copy, modify, and distribute this - * software is freely granted, provided that this notice - * is preserved. - * ==================================================== - */ - -#if defined(LIBM_SCCS) && !defined(lint) -static char rcsid[] = "$NetBSD: e_gammaf.c,v 1.3 1995/05/10 20:45:15 jtc Exp $"; -#endif - -/* __ieee754_gammaf(x) - * Return the logarithm of the Gamma function of x. - * - * Method: call __ieee754_gammaf_r - */ - -#include "math.h" -#include "math_private.h" - -extern int signgam; - -#ifdef __STDC__ - float __ieee754_gammaf(float x) -#else - float __ieee754_gammaf(x) - float x; -#endif -{ - return __ieee754_gammaf_r(x,&signgam); -} diff --git a/lib/libm/src/e_gammaf_r.c b/lib/libm/src/e_gammaf_r.c deleted file mode 100644 index 6ab5dd32967..00000000000 --- a/lib/libm/src/e_gammaf_r.c +++ /dev/null @@ -1,38 +0,0 @@ -/* e_gammaf_r.c -- float version of e_gamma_r.c. - * Conversion to float by Ian Lance Taylor, Cygnus Support, ian@cygnus.com. - */ - -/* - * ==================================================== - * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved. - * - * Developed at SunPro, a Sun Microsystems, Inc. business. - * Permission to use, copy, modify, and distribute this - * software is freely granted, provided that this notice - * is preserved. - * ==================================================== - */ - -#if defined(LIBM_SCCS) && !defined(lint) -static char rcsid[] = "$NetBSD: e_gammaf_r.c,v 1.3 1995/05/10 20:45:16 jtc Exp $"; -#endif - -/* __ieee754_gammaf_r(x, signgamp) - * Reentrant version of the logarithm of the Gamma function - * with user provide pointer for the sign of Gamma(x). - * - * Method: See __ieee754_lgammaf_r - */ - -#include "math.h" -#include "math_private.h" - -#ifdef __STDC__ - float __ieee754_gammaf_r(float x, int *signgamp) -#else - float __ieee754_gammaf_r(x,signgamp) - float x; int *signgamp; -#endif -{ - return __ieee754_lgammaf_r(x,signgamp); -} diff --git a/lib/libm/src/e_lgamma.c b/lib/libm/src/e_lgamma.c deleted file mode 100644 index ae91f28e6d4..00000000000 --- a/lib/libm/src/e_lgamma.c +++ /dev/null @@ -1,36 +0,0 @@ -/* @(#)e_lgamma.c 5.1 93/09/24 */ -/* - * ==================================================== - * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved. - * - * Developed at SunPro, a Sun Microsystems, Inc. business. - * Permission to use, copy, modify, and distribute this - * software is freely granted, provided that this notice - * is preserved. - * ==================================================== - */ - -#if defined(LIBM_SCCS) && !defined(lint) -static char rcsid[] = "$NetBSD: e_lgamma.c,v 1.6 1995/05/10 20:45:39 jtc Exp $"; -#endif - -/* __ieee754_lgamma(x) - * Return the logarithm of the Gamma function of x. - * - * Method: call __ieee754_lgamma_r - */ - -#include "math.h" -#include "math_private.h" - -extern int signgam; - -#ifdef __STDC__ - double __ieee754_lgamma(double x) -#else - double __ieee754_lgamma(x) - double x; -#endif -{ - return __ieee754_lgamma_r(x,&signgam); -} diff --git a/lib/libm/src/e_lgammaf.c b/lib/libm/src/e_lgammaf.c deleted file mode 100644 index 72d035c6ce5..00000000000 --- a/lib/libm/src/e_lgammaf.c +++ /dev/null @@ -1,39 +0,0 @@ -/* e_lgammaf.c -- float version of e_lgamma.c. - * Conversion to float by Ian Lance Taylor, Cygnus Support, ian@cygnus.com. - */ - -/* - * ==================================================== - * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved. - * - * Developed at SunPro, a Sun Microsystems, Inc. business. - * Permission to use, copy, modify, and distribute this - * software is freely granted, provided that this notice - * is preserved. - * ==================================================== - */ - -#if defined(LIBM_SCCS) && !defined(lint) -static char rcsid[] = "$NetBSD: e_lgammaf.c,v 1.3 1995/05/10 20:45:45 jtc Exp $"; -#endif - -/* __ieee754_lgammaf(x) - * Return the logarithm of the Gamma function of x. - * - * Method: call __ieee754_lgammaf_r - */ - -#include "math.h" -#include "math_private.h" - -extern int signgam; - -#ifdef __STDC__ - float __ieee754_lgammaf(float x) -#else - float __ieee754_lgammaf(x) - float x; -#endif -{ - return __ieee754_lgammaf_r(x,&signgam); -} diff --git a/lib/libm/src/w_gamma.c b/lib/libm/src/w_gamma.c index 4979843a375..59fe8f64009 100644 --- a/lib/libm/src/w_gamma.c +++ b/lib/libm/src/w_gamma.c @@ -11,7 +11,7 @@ */ #if defined(LIBM_SCCS) && !defined(lint) -static char rcsid[] = "$NetBSD: w_gamma.c,v 1.6 1995/05/10 20:49:00 jtc Exp $"; +static char rcsid[] = "$NetBSD: w_gamma.c,v 1.7 1995/11/20 22:06:43 jtc Exp $"; #endif /* double gamma(double x) @@ -33,10 +33,10 @@ extern int signgam; #endif { #ifdef _IEEE_LIBM - return __ieee754_gamma_r(x,&signgam); + return __ieee754_lgamma_r(x,&signgam); #else double y; - y = __ieee754_gamma_r(x,&signgam); + y = __ieee754_lgamma_r(x,&signgam); if(_LIB_VERSION == _IEEE_) return y; if(!finite(y)&&finite(x)) { if(floor(x)==x&&x<=0.0) diff --git a/lib/libm/src/w_gamma_r.c b/lib/libm/src/w_gamma_r.c index 26aeb77a101..b0ed3c1b411 100644 --- a/lib/libm/src/w_gamma_r.c +++ b/lib/libm/src/w_gamma_r.c @@ -11,7 +11,7 @@ */ #if defined(LIBM_SCCS) && !defined(lint) -static char rcsid[] = "$NetBSD: w_gamma_r.c,v 1.6 1995/05/10 20:49:02 jtc Exp $"; +static char rcsid[] = "$NetBSD: w_gamma_r.c,v 1.7 1995/11/20 22:06:45 jtc Exp $"; #endif /* @@ -30,10 +30,10 @@ static char rcsid[] = "$NetBSD: w_gamma_r.c,v 1.6 1995/05/10 20:49:02 jtc Exp $" #endif { #ifdef _IEEE_LIBM - return __ieee754_gamma_r(x,signgamp); + return __ieee754_lgamma_r(x,signgamp); #else double y; - y = __ieee754_gamma_r(x,signgamp); + y = __ieee754_lgamma_r(x,signgamp); if(_LIB_VERSION == _IEEE_) return y; if(!finite(y)&&finite(x)) { if(floor(x)==x&&x<=0.0) diff --git a/lib/libm/src/w_gammaf.c b/lib/libm/src/w_gammaf.c index 4c4046ae635..ecc2be2d615 100644 --- a/lib/libm/src/w_gammaf.c +++ b/lib/libm/src/w_gammaf.c @@ -14,7 +14,7 @@ */ #if defined(LIBM_SCCS) && !defined(lint) -static char rcsid[] = "$NetBSD: w_gammaf.c,v 1.3 1995/05/10 20:49:04 jtc Exp $"; +static char rcsid[] = "$NetBSD: w_gammaf.c,v 1.4 1995/11/20 22:06:48 jtc Exp $"; #endif #include "math.h" @@ -30,10 +30,10 @@ extern int signgam; #endif { #ifdef _IEEE_LIBM - return __ieee754_gammaf_r(x,&signgam); + return __ieee754_lgammaf_r(x,&signgam); #else float y; - y = __ieee754_gammaf_r(x,&signgam); + y = __ieee754_lgammaf_r(x,&signgam); if(_LIB_VERSION == _IEEE_) return y; if(!finitef(y)&&finitef(x)) { if(floorf(x)==x&&x<=(float)0.0) diff --git a/lib/libm/src/w_gammaf_r.c b/lib/libm/src/w_gammaf_r.c index 37943492220..2425447f4dc 100644 --- a/lib/libm/src/w_gammaf_r.c +++ b/lib/libm/src/w_gammaf_r.c @@ -14,7 +14,7 @@ */ #if defined(LIBM_SCCS) && !defined(lint) -static char rcsid[] = "$NetBSD: w_gammaf_r.c,v 1.3 1995/05/10 20:49:05 jtc Exp $"; +static char rcsid[] = "$NetBSD: w_gammaf_r.c,v 1.4 1995/11/20 22:06:50 jtc Exp $"; #endif /* @@ -33,10 +33,10 @@ static char rcsid[] = "$NetBSD: w_gammaf_r.c,v 1.3 1995/05/10 20:49:05 jtc Exp $ #endif { #ifdef _IEEE_LIBM - return __ieee754_gammaf_r(x,signgamp); + return __ieee754_lgammaf_r(x,signgamp); #else float y; - y = __ieee754_gammaf_r(x,signgamp); + y = __ieee754_lgammaf_r(x,signgamp); if(_LIB_VERSION == _IEEE_) return y; if(!finitef(y)&&finitef(x)) { if(floorf(x)==x&&x<=(float)0.0) |