From: Siddhesh Poyarekar Date: Fri, 28 Dec 2012 04:10:10 +0000 (+0530) Subject: Replace constants with preprocessor defines X-Git-Tag: upstream/2.30~9741 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=99136f82027a5d6276c94a25d8392a7b571a08a3;p=external%2Fglibc.git Replace constants with preprocessor defines libm Code cleanup. --- diff --git a/ChangeLog b/ChangeLog index 879fe2d..f3e2201 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,13 @@ +2012-12-28 Siddhesh Poyarekar + + * sysdeps/ieee754/dbl-64/mpa.c (norm): Define R as RADIXI. + (norm): Likewise. + * sysdeps/ieee754/dbl-64/mpa2.h: Remove all static const + variables with preprocessor constants. + * sysdeps/ieee754/dbl-64/mpatan.h: Likewise. + * sysdeps/ieee754/dbl-64/mpexp.h: Likewise. + * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise. + 2012-12-27 Bruno Haible [BZ #14317] diff --git a/sysdeps/ieee754/dbl-64/mpa.c b/sysdeps/ieee754/dbl-64/mpa.c index b5d25ed..cf4f6f7 100644 --- a/sysdeps/ieee754/dbl-64/mpa.c +++ b/sysdeps/ieee754/dbl-64/mpa.c @@ -139,7 +139,7 @@ static void __cpymn(const mp_no *x, int m, mp_no *y, int n) { /* number *y, normalized case (|x| >= 2**(-1022))) */ static void norm(const mp_no *x, double *y, int p) { - #define R radixi.d + #define R RADIXI int i; #if 0 int k; @@ -199,7 +199,7 @@ static void denorm(const mp_no *x, double *y, int p) double a,v; #endif -#define R radixi.d +#define R RADIXI if (EX<-44 || (EX==-44 && X[1]