lmi-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lmi-commits] [lmi] master e8a859a3 06/22: Rename prototyping macro


From: Greg Chicares
Subject: [lmi-commits] [lmi] master e8a859a3 06/22: Rename prototyping macro
Date: Fri, 20 May 2022 22:43:41 -0400 (EDT)

branch: master
commit e8a859a32cd72d12e24c582d8bc7bc9144be71ed
Author: Gregory W. Chicares <gchicares@sbcglobal.net>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>

    Rename prototyping macro
---
 fdlibm_expm1.c.txt | 190 ++++++++++++++++++++++++++---------------------------
 fdlibm_log1p.c.txt | 190 ++++++++++++++++++++++++++---------------------------
 2 files changed, 190 insertions(+), 190 deletions(-)

diff --git a/fdlibm_expm1.c.txt b/fdlibm_expm1.c.txt
index e458cb89..1b9d1056 100644
--- a/fdlibm_expm1.c.txt
+++ b/fdlibm_expm1.c.txt
@@ -32,9 +32,9 @@
 #endif // !defined __LITTLE_ENDIAN
 
 #if defined __STDC__
-#define __P(p) p
+#define FDLIBM_PROTOTYPE(p) p
 #else  // !defined __STDC__
-#define __P(p) ()
+#define FDLIBM_PROTOTYPE(p) ()
 #endif // !defined __STDC__
 
 /*
@@ -91,129 +91,129 @@ struct exception {
 /*
  * ANSI/POSIX
  */
-extern double acos __P((double));
-extern double asin __P((double));
-extern double atan __P((double));
-extern double atan2 __P((double, double));
-extern double cos __P((double));
-extern double sin __P((double));
-extern double tan __P((double));
-
-extern double cosh __P((double));
-extern double sinh __P((double));
-extern double tanh __P((double));
-
-extern double exp __P((double));
-extern double frexp __P((double, int *));
-extern double ldexp __P((double, int));
-extern double log __P((double));
-extern double log10 __P((double));
-extern double modf __P((double, double *));
-
-extern double pow __P((double, double));
-extern double sqrt __P((double));
-
-extern double ceil __P((double));
-extern double fabs __P((double));
-extern double floor __P((double));
-extern double fmod __P((double, double));
-
-extern double erf __P((double));
-extern double erfc __P((double));
-extern double gamma __P((double));
-extern double hypot __P((double, double));
-extern int isnan __P((double));
-extern int finite __P((double));
-extern double j0 __P((double));
-extern double j1 __P((double));
-extern double jn __P((int, double));
-extern double lgamma __P((double));
-extern double y0 __P((double));
-extern double y1 __P((double));
-extern double yn __P((int, double));
-
-extern double acosh __P((double));
-extern double asinh __P((double));
-extern double atanh __P((double));
-extern double cbrt __P((double));
-extern double logb __P((double));
-extern double nextafter __P((double, double));
-extern double remainder __P((double, double));
+extern double acos FDLIBM_PROTOTYPE((double));
+extern double asin FDLIBM_PROTOTYPE((double));
+extern double atan FDLIBM_PROTOTYPE((double));
+extern double atan2 FDLIBM_PROTOTYPE((double, double));
+extern double cos FDLIBM_PROTOTYPE((double));
+extern double sin FDLIBM_PROTOTYPE((double));
+extern double tan FDLIBM_PROTOTYPE((double));
+
+extern double cosh FDLIBM_PROTOTYPE((double));
+extern double sinh FDLIBM_PROTOTYPE((double));
+extern double tanh FDLIBM_PROTOTYPE((double));
+
+extern double exp FDLIBM_PROTOTYPE((double));
+extern double frexp FDLIBM_PROTOTYPE((double, int *));
+extern double ldexp FDLIBM_PROTOTYPE((double, int));
+extern double log FDLIBM_PROTOTYPE((double));
+extern double log10 FDLIBM_PROTOTYPE((double));
+extern double modf FDLIBM_PROTOTYPE((double, double *));
+
+extern double pow FDLIBM_PROTOTYPE((double, double));
+extern double sqrt FDLIBM_PROTOTYPE((double));
+
+extern double ceil FDLIBM_PROTOTYPE((double));
+extern double fabs FDLIBM_PROTOTYPE((double));
+extern double floor FDLIBM_PROTOTYPE((double));
+extern double fmod FDLIBM_PROTOTYPE((double, double));
+
+extern double erf FDLIBM_PROTOTYPE((double));
+extern double erfc FDLIBM_PROTOTYPE((double));
+extern double gamma FDLIBM_PROTOTYPE((double));
+extern double hypot FDLIBM_PROTOTYPE((double, double));
+extern int isnan FDLIBM_PROTOTYPE((double));
+extern int finite FDLIBM_PROTOTYPE((double));
+extern double j0 FDLIBM_PROTOTYPE((double));
+extern double j1 FDLIBM_PROTOTYPE((double));
+extern double jn FDLIBM_PROTOTYPE((int, double));
+extern double lgamma FDLIBM_PROTOTYPE((double));
+extern double y0 FDLIBM_PROTOTYPE((double));
+extern double y1 FDLIBM_PROTOTYPE((double));
+extern double yn FDLIBM_PROTOTYPE((int, double));
+
+extern double acosh FDLIBM_PROTOTYPE((double));
+extern double asinh FDLIBM_PROTOTYPE((double));
+extern double atanh FDLIBM_PROTOTYPE((double));
+extern double cbrt FDLIBM_PROTOTYPE((double));
+extern double logb FDLIBM_PROTOTYPE((double));
+extern double nextafter FDLIBM_PROTOTYPE((double, double));
+extern double remainder FDLIBM_PROTOTYPE((double, double));
 #if defined _SCALB_INT
-extern double scalb __P((double, int));
+extern double scalb FDLIBM_PROTOTYPE((double, int));
 #else  // !defined _SCALB_INT
-extern double scalb __P((double, double));
+extern double scalb FDLIBM_PROTOTYPE((double, double));
 #endif // !defined _SCALB_INT
 
-extern int matherr __P((struct exception *));
+extern int matherr FDLIBM_PROTOTYPE((struct exception *));
 
 /*
  * IEEE Test Vector
  */
-extern double significand __P((double));
+extern double significand FDLIBM_PROTOTYPE((double));
 
 /*
  * Functions callable from C, intended to support IEEE arithmetic.
  */
-extern double copysign __P((double, double));
-extern int ilogb __P((double));
-extern double rint __P((double));
-extern double scalbn __P((double, int));
+extern double copysign FDLIBM_PROTOTYPE((double, double));
+extern int ilogb FDLIBM_PROTOTYPE((double));
+extern double rint FDLIBM_PROTOTYPE((double));
+extern double scalbn FDLIBM_PROTOTYPE((double, int));
 
 /*
  * BSD math library entry points
  */
-extern double expm1 __P((double));
-extern double log1p __P((double));
+extern double expm1 FDLIBM_PROTOTYPE((double));
+extern double log1p FDLIBM_PROTOTYPE((double));
 
 /*
  * Reentrant version of gamma & lgamma; passes signgam back by reference
  * as the second argument; user must allocate space for signgam.
  */
 #if defined _REENTRANT
-extern double gamma_r __P((double, int *));
-extern double lgamma_r __P((double, int *));
+extern double gamma_r FDLIBM_PROTOTYPE((double, int *));
+extern double lgamma_r FDLIBM_PROTOTYPE((double, int *));
 #endif // defined _REENTRANT
 
 /* ieee style elementary functions */
-extern double __ieee754_sqrt __P((double));
-extern double __ieee754_acos __P((double));
-extern double __ieee754_acosh __P((double));
-extern double __ieee754_log __P((double));
-extern double __ieee754_atanh __P((double));
-extern double __ieee754_asin __P((double));
-extern double __ieee754_atan2 __P((double,double));
-extern double __ieee754_exp __P((double));
-extern double __ieee754_cosh __P((double));
-extern double __ieee754_fmod __P((double,double));
-extern double __ieee754_pow __P((double,double));
-extern double __ieee754_lgamma_r __P((double,int *));
-extern double __ieee754_gamma_r __P((double,int *));
-extern double __ieee754_lgamma __P((double));
-extern double __ieee754_gamma __P((double));
-extern double __ieee754_log10 __P((double));
-extern double __ieee754_sinh __P((double));
-extern double __ieee754_hypot __P((double,double));
-extern double __ieee754_j0 __P((double));
-extern double __ieee754_j1 __P((double));
-extern double __ieee754_y0 __P((double));
-extern double __ieee754_y1 __P((double));
-extern double __ieee754_jn __P((int,double));
-extern double __ieee754_yn __P((int,double));
-extern double __ieee754_remainder __P((double,double));
-extern int    __ieee754_rem_pio2 __P((double,double*));
+extern double __ieee754_sqrt FDLIBM_PROTOTYPE((double));
+extern double __ieee754_acos FDLIBM_PROTOTYPE((double));
+extern double __ieee754_acosh FDLIBM_PROTOTYPE((double));
+extern double __ieee754_log FDLIBM_PROTOTYPE((double));
+extern double __ieee754_atanh FDLIBM_PROTOTYPE((double));
+extern double __ieee754_asin FDLIBM_PROTOTYPE((double));
+extern double __ieee754_atan2 FDLIBM_PROTOTYPE((double,double));
+extern double __ieee754_exp FDLIBM_PROTOTYPE((double));
+extern double __ieee754_cosh FDLIBM_PROTOTYPE((double));
+extern double __ieee754_fmod FDLIBM_PROTOTYPE((double,double));
+extern double __ieee754_pow FDLIBM_PROTOTYPE((double,double));
+extern double __ieee754_lgamma_r FDLIBM_PROTOTYPE((double,int *));
+extern double __ieee754_gamma_r FDLIBM_PROTOTYPE((double,int *));
+extern double __ieee754_lgamma FDLIBM_PROTOTYPE((double));
+extern double __ieee754_gamma FDLIBM_PROTOTYPE((double));
+extern double __ieee754_log10 FDLIBM_PROTOTYPE((double));
+extern double __ieee754_sinh FDLIBM_PROTOTYPE((double));
+extern double __ieee754_hypot FDLIBM_PROTOTYPE((double,double));
+extern double __ieee754_j0 FDLIBM_PROTOTYPE((double));
+extern double __ieee754_j1 FDLIBM_PROTOTYPE((double));
+extern double __ieee754_y0 FDLIBM_PROTOTYPE((double));
+extern double __ieee754_y1 FDLIBM_PROTOTYPE((double));
+extern double __ieee754_jn FDLIBM_PROTOTYPE((int,double));
+extern double __ieee754_yn FDLIBM_PROTOTYPE((int,double));
+extern double __ieee754_remainder FDLIBM_PROTOTYPE((double,double));
+extern int    __ieee754_rem_pio2 FDLIBM_PROTOTYPE((double,double*));
 #if defined _SCALB_INT
-extern double __ieee754_scalb __P((double,int));
+extern double __ieee754_scalb FDLIBM_PROTOTYPE((double,int));
 #else  // !defined _SCALB_INT
-extern double __ieee754_scalb __P((double,double));
+extern double __ieee754_scalb FDLIBM_PROTOTYPE((double,double));
 #endif // !defined _SCALB_INT
 
 /* fdlibm kernel function */
-extern double __kernel_standard __P((double,double,int));
-extern double __kernel_sin __P((double,double,int));
-extern double __kernel_cos __P((double,double));
-extern double __kernel_tan __P((double,double,int));
-extern int    __kernel_rem_pio2 __P((double*,double*,int,int,int,int const*));
+extern double __kernel_standard FDLIBM_PROTOTYPE((double,double,int));
+extern double __kernel_sin FDLIBM_PROTOTYPE((double,double,int));
+extern double __kernel_cos FDLIBM_PROTOTYPE((double,double));
+extern double __kernel_tan FDLIBM_PROTOTYPE((double,double,int));
+extern int    __kernel_rem_pio2 
FDLIBM_PROTOTYPE((double*,double*,int,int,int,int const*));
 
 /* @(#)s_expm1.c 1.5 04/04/22 */
 /*
diff --git a/fdlibm_log1p.c.txt b/fdlibm_log1p.c.txt
index 1285e7e0..508662a3 100644
--- a/fdlibm_log1p.c.txt
+++ b/fdlibm_log1p.c.txt
@@ -32,9 +32,9 @@
 #endif // !defined __LITTLE_ENDIAN
 
 #if defined __STDC__
-#define __P(p) p
+#define FDLIBM_PROTOTYPE(p) p
 #else  // !defined __STDC__
-#define __P(p) ()
+#define FDLIBM_PROTOTYPE(p) ()
 #endif // !defined __STDC__
 
 /*
@@ -91,129 +91,129 @@ struct exception {
 /*
  * ANSI/POSIX
  */
-extern double acos __P((double));
-extern double asin __P((double));
-extern double atan __P((double));
-extern double atan2 __P((double, double));
-extern double cos __P((double));
-extern double sin __P((double));
-extern double tan __P((double));
-
-extern double cosh __P((double));
-extern double sinh __P((double));
-extern double tanh __P((double));
-
-extern double exp __P((double));
-extern double frexp __P((double, int *));
-extern double ldexp __P((double, int));
-extern double log __P((double));
-extern double log10 __P((double));
-extern double modf __P((double, double *));
-
-extern double pow __P((double, double));
-extern double sqrt __P((double));
-
-extern double ceil __P((double));
-extern double fabs __P((double));
-extern double floor __P((double));
-extern double fmod __P((double, double));
-
-extern double erf __P((double));
-extern double erfc __P((double));
-extern double gamma __P((double));
-extern double hypot __P((double, double));
-extern int isnan __P((double));
-extern int finite __P((double));
-extern double j0 __P((double));
-extern double j1 __P((double));
-extern double jn __P((int, double));
-extern double lgamma __P((double));
-extern double y0 __P((double));
-extern double y1 __P((double));
-extern double yn __P((int, double));
-
-extern double acosh __P((double));
-extern double asinh __P((double));
-extern double atanh __P((double));
-extern double cbrt __P((double));
-extern double logb __P((double));
-extern double nextafter __P((double, double));
-extern double remainder __P((double, double));
+extern double acos FDLIBM_PROTOTYPE((double));
+extern double asin FDLIBM_PROTOTYPE((double));
+extern double atan FDLIBM_PROTOTYPE((double));
+extern double atan2 FDLIBM_PROTOTYPE((double, double));
+extern double cos FDLIBM_PROTOTYPE((double));
+extern double sin FDLIBM_PROTOTYPE((double));
+extern double tan FDLIBM_PROTOTYPE((double));
+
+extern double cosh FDLIBM_PROTOTYPE((double));
+extern double sinh FDLIBM_PROTOTYPE((double));
+extern double tanh FDLIBM_PROTOTYPE((double));
+
+extern double exp FDLIBM_PROTOTYPE((double));
+extern double frexp FDLIBM_PROTOTYPE((double, int *));
+extern double ldexp FDLIBM_PROTOTYPE((double, int));
+extern double log FDLIBM_PROTOTYPE((double));
+extern double log10 FDLIBM_PROTOTYPE((double));
+extern double modf FDLIBM_PROTOTYPE((double, double *));
+
+extern double pow FDLIBM_PROTOTYPE((double, double));
+extern double sqrt FDLIBM_PROTOTYPE((double));
+
+extern double ceil FDLIBM_PROTOTYPE((double));
+extern double fabs FDLIBM_PROTOTYPE((double));
+extern double floor FDLIBM_PROTOTYPE((double));
+extern double fmod FDLIBM_PROTOTYPE((double, double));
+
+extern double erf FDLIBM_PROTOTYPE((double));
+extern double erfc FDLIBM_PROTOTYPE((double));
+extern double gamma FDLIBM_PROTOTYPE((double));
+extern double hypot FDLIBM_PROTOTYPE((double, double));
+extern int isnan FDLIBM_PROTOTYPE((double));
+extern int finite FDLIBM_PROTOTYPE((double));
+extern double j0 FDLIBM_PROTOTYPE((double));
+extern double j1 FDLIBM_PROTOTYPE((double));
+extern double jn FDLIBM_PROTOTYPE((int, double));
+extern double lgamma FDLIBM_PROTOTYPE((double));
+extern double y0 FDLIBM_PROTOTYPE((double));
+extern double y1 FDLIBM_PROTOTYPE((double));
+extern double yn FDLIBM_PROTOTYPE((int, double));
+
+extern double acosh FDLIBM_PROTOTYPE((double));
+extern double asinh FDLIBM_PROTOTYPE((double));
+extern double atanh FDLIBM_PROTOTYPE((double));
+extern double cbrt FDLIBM_PROTOTYPE((double));
+extern double logb FDLIBM_PROTOTYPE((double));
+extern double nextafter FDLIBM_PROTOTYPE((double, double));
+extern double remainder FDLIBM_PROTOTYPE((double, double));
 #if defined _SCALB_INT
-extern double scalb __P((double, int));
+extern double scalb FDLIBM_PROTOTYPE((double, int));
 #else  // !defined _SCALB_INT
-extern double scalb __P((double, double));
+extern double scalb FDLIBM_PROTOTYPE((double, double));
 #endif // !defined _SCALB_INT
 
-extern int matherr __P((struct exception *));
+extern int matherr FDLIBM_PROTOTYPE((struct exception *));
 
 /*
  * IEEE Test Vector
  */
-extern double significand __P((double));
+extern double significand FDLIBM_PROTOTYPE((double));
 
 /*
  * Functions callable from C, intended to support IEEE arithmetic.
  */
-extern double copysign __P((double, double));
-extern int ilogb __P((double));
-extern double rint __P((double));
-extern double scalbn __P((double, int));
+extern double copysign FDLIBM_PROTOTYPE((double, double));
+extern int ilogb FDLIBM_PROTOTYPE((double));
+extern double rint FDLIBM_PROTOTYPE((double));
+extern double scalbn FDLIBM_PROTOTYPE((double, int));
 
 /*
  * BSD math library entry points
  */
-extern double expm1 __P((double));
-extern double log1p __P((double));
+extern double expm1 FDLIBM_PROTOTYPE((double));
+extern double log1p FDLIBM_PROTOTYPE((double));
 
 /*
  * Reentrant version of gamma & lgamma; passes signgam back by reference
  * as the second argument; user must allocate space for signgam.
  */
 #if defined _REENTRANT
-extern double gamma_r __P((double, int *));
-extern double lgamma_r __P((double, int *));
+extern double gamma_r FDLIBM_PROTOTYPE((double, int *));
+extern double lgamma_r FDLIBM_PROTOTYPE((double, int *));
 #endif // defined _REENTRANT
 
 /* ieee style elementary functions */
-extern double __ieee754_sqrt __P((double));
-extern double __ieee754_acos __P((double));
-extern double __ieee754_acosh __P((double));
-extern double __ieee754_log __P((double));
-extern double __ieee754_atanh __P((double));
-extern double __ieee754_asin __P((double));
-extern double __ieee754_atan2 __P((double,double));
-extern double __ieee754_exp __P((double));
-extern double __ieee754_cosh __P((double));
-extern double __ieee754_fmod __P((double,double));
-extern double __ieee754_pow __P((double,double));
-extern double __ieee754_lgamma_r __P((double,int *));
-extern double __ieee754_gamma_r __P((double,int *));
-extern double __ieee754_lgamma __P((double));
-extern double __ieee754_gamma __P((double));
-extern double __ieee754_log10 __P((double));
-extern double __ieee754_sinh __P((double));
-extern double __ieee754_hypot __P((double,double));
-extern double __ieee754_j0 __P((double));
-extern double __ieee754_j1 __P((double));
-extern double __ieee754_y0 __P((double));
-extern double __ieee754_y1 __P((double));
-extern double __ieee754_jn __P((int,double));
-extern double __ieee754_yn __P((int,double));
-extern double __ieee754_remainder __P((double,double));
-extern int    __ieee754_rem_pio2 __P((double,double*));
+extern double __ieee754_sqrt FDLIBM_PROTOTYPE((double));
+extern double __ieee754_acos FDLIBM_PROTOTYPE((double));
+extern double __ieee754_acosh FDLIBM_PROTOTYPE((double));
+extern double __ieee754_log FDLIBM_PROTOTYPE((double));
+extern double __ieee754_atanh FDLIBM_PROTOTYPE((double));
+extern double __ieee754_asin FDLIBM_PROTOTYPE((double));
+extern double __ieee754_atan2 FDLIBM_PROTOTYPE((double,double));
+extern double __ieee754_exp FDLIBM_PROTOTYPE((double));
+extern double __ieee754_cosh FDLIBM_PROTOTYPE((double));
+extern double __ieee754_fmod FDLIBM_PROTOTYPE((double,double));
+extern double __ieee754_pow FDLIBM_PROTOTYPE((double,double));
+extern double __ieee754_lgamma_r FDLIBM_PROTOTYPE((double,int *));
+extern double __ieee754_gamma_r FDLIBM_PROTOTYPE((double,int *));
+extern double __ieee754_lgamma FDLIBM_PROTOTYPE((double));
+extern double __ieee754_gamma FDLIBM_PROTOTYPE((double));
+extern double __ieee754_log10 FDLIBM_PROTOTYPE((double));
+extern double __ieee754_sinh FDLIBM_PROTOTYPE((double));
+extern double __ieee754_hypot FDLIBM_PROTOTYPE((double,double));
+extern double __ieee754_j0 FDLIBM_PROTOTYPE((double));
+extern double __ieee754_j1 FDLIBM_PROTOTYPE((double));
+extern double __ieee754_y0 FDLIBM_PROTOTYPE((double));
+extern double __ieee754_y1 FDLIBM_PROTOTYPE((double));
+extern double __ieee754_jn FDLIBM_PROTOTYPE((int,double));
+extern double __ieee754_yn FDLIBM_PROTOTYPE((int,double));
+extern double __ieee754_remainder FDLIBM_PROTOTYPE((double,double));
+extern int    __ieee754_rem_pio2 FDLIBM_PROTOTYPE((double,double*));
 #if defined _SCALB_INT
-extern double __ieee754_scalb __P((double,int));
+extern double __ieee754_scalb FDLIBM_PROTOTYPE((double,int));
 #else  // !defined _SCALB_INT
-extern double __ieee754_scalb __P((double,double));
+extern double __ieee754_scalb FDLIBM_PROTOTYPE((double,double));
 #endif // !defined _SCALB_INT
 
 /* fdlibm kernel function */
-extern double __kernel_standard __P((double,double,int));
-extern double __kernel_sin __P((double,double,int));
-extern double __kernel_cos __P((double,double));
-extern double __kernel_tan __P((double,double,int));
-extern int    __kernel_rem_pio2 __P((double*,double*,int,int,int,int const*));
+extern double __kernel_standard FDLIBM_PROTOTYPE((double,double,int));
+extern double __kernel_sin FDLIBM_PROTOTYPE((double,double,int));
+extern double __kernel_cos FDLIBM_PROTOTYPE((double,double));
+extern double __kernel_tan FDLIBM_PROTOTYPE((double,double,int));
+extern int    __kernel_rem_pio2 
FDLIBM_PROTOTYPE((double*,double*,int,int,int,int const*));
 
 /* @(#)s_log1p.c 1.3 95/01/18 */
 /*



reply via email to

[Prev in Thread] Current Thread [Next in Thread]