[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master 164db076 10/13: Assume __STDC__ for fdlibm
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master 164db076 10/13: Assume __STDC__ for fdlibm |
Date: |
Mon, 23 May 2022 17:40:27 -0400 (EDT) |
branch: master
commit 164db07662d31817a7738e95428a301da699647c
Author: Gregory W. Chicares <gchicares@sbcglobal.net>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>
Assume __STDC__ for fdlibm
---
fdlibm_expm1.c | 11 +----------
fdlibm_log1p.c | 11 +----------
2 files changed, 2 insertions(+), 20 deletions(-)
diff --git a/fdlibm_expm1.c b/fdlibm_expm1.c
index 64738916..3fcec962 100644
--- a/fdlibm_expm1.c
+++ b/fdlibm_expm1.c
@@ -143,11 +143,7 @@
* to produce the hexadecimal values shown.
*/
-#if defined __STDC__
static const double
-#else // !defined __STDC__
-static double
-#endif // !defined __STDC__
one = 1.0,
huge = 1.0e+300,
tiny = 1.0e-300,
@@ -162,12 +158,7 @@ Q3 = -7.93650757867487942473e-05, /* BF14CE19 9EAADBB7 */
Q4 = 4.00821782732936239552e-06, /* 3ED0CFCA 86E65239 */
Q5 = -2.01099218183624371326e-07; /* BE8AFDB7 6E09C32D */
-#if defined __STDC__
- double fdlibm_expm1(double x)
-#else // !defined __STDC__
- double fdlibm_expm1(x)
- double x;
-#endif // !defined __STDC__
+double fdlibm_expm1(double x)
{
double y,hi,lo,c,t,e,hxs,hfx,r1;
int32_t k,xsb;
diff --git a/fdlibm_log1p.c b/fdlibm_log1p.c
index db6eadd1..ec6a1499 100644
--- a/fdlibm_log1p.c
+++ b/fdlibm_log1p.c
@@ -112,11 +112,7 @@
* See HP-15C Advanced Functions Handbook, p.193.
*/
-#if defined __STDC__
static const double
-#else // !defined __STDC__
-static double
-#endif // !defined __STDC__
ln2_hi = 6.93147180369123816490e-01, /* 3fe62e42 fee00000 */
ln2_lo = 1.90821492927058770002e-10, /* 3dea39ef 35793c76 */
two54 = 1.80143985094819840000e+16, /* 43500000 00000000 */
@@ -130,12 +126,7 @@ Lp7 = 1.479819860511658591e-01; /* 3FC2F112 DF3E5244 */
static double zero = 0.0;
-#if defined __STDC__
- double fdlibm_log1p(double x)
-#else // !defined __STDC__
- double fdlibm_log1p(x)
- double x;
-#endif // !defined __STDC__
+double fdlibm_log1p(double x)
{
double hfsq,f,c,s,z,R,u;
int32_t k,hx,hu,ax;
- [lmi-commits] [lmi] master updated (ad1f8a2f -> 599c44b7), Greg Chicares, 2022/05/23
- [lmi-commits] [lmi] master 38dd359d 04/13: Apply 'fdlibm*.c' changes to 'fdlibm.h', Greg Chicares, 2022/05/23
- [lmi-commits] [lmi] master a456d40d 03/13: Expunge unwanted part of fdlibm header, Greg Chicares, 2022/05/23
- [lmi-commits] [lmi] master 9d7e3be1 02/13: Import header from fdlibm, Greg Chicares, 2022/05/23
- [lmi-commits] [lmi] master e5850c2a 12/13: Import Naohiko Shimizu's NetBSD performance improvements, Greg Chicares, 2022/05/23
- [lmi-commits] [lmi] master bfb73bb2 09/13: Use fdlibm header more broadly, Greg Chicares, 2022/05/23
- [lmi-commits] [lmi] master 599c44b7 13/13: Draw attention to atrocious type puns, Greg Chicares, 2022/05/23
- [lmi-commits] [lmi] master 164db076 10/13: Assume __STDC__ for fdlibm,
Greg Chicares <=
- [lmi-commits] [lmi] master 7d5c739b 01/13: Expunge unused declarations and macro, Greg Chicares, 2022/05/23
- [lmi-commits] [lmi] master d7294669 06/13: Add include guards; include a header required by lmi, Greg Chicares, 2022/05/23
- [lmi-commits] [lmi] master adf263fe 11/13: Assume __STDC__ everywhere appropriate, Greg Chicares, 2022/05/23
- [lmi-commits] [lmi] master edb56e9b 05/13: Add license and copyright boilerplate, Greg Chicares, 2022/05/23
- [lmi-commits] [lmi] master 50b2645a 08/13: Use fdlibm header, Greg Chicares, 2022/05/23
- [lmi-commits] [lmi] master 89966e80 07/13: Rename fdlibm header, Greg Chicares, 2022/05/23