From 99136f82027a5d6276c94a25d8392a7b571a08a3 Mon Sep 17 00:00:00 2001 From: Siddhesh Poyarekar Date: Fri, 28 Dec 2012 09:40:10 +0530 Subject: Replace constants with preprocessor defines libm Code cleanup. --- sysdeps/ieee754/dbl-64/mpa.c | 4 +-- sysdeps/ieee754/dbl-64/mpa2.h | 76 +++++++++-------------------------------- sysdeps/ieee754/dbl-64/mpatan.h | 14 ++------ sysdeps/ieee754/dbl-64/mpexp.h | 34 ++++-------------- sysdeps/ieee754/dbl-64/mpsqrt.h | 20 ++--------- 5 files changed, 28 insertions(+), 120 deletions(-) (limited to 'sysdeps') diff --git a/sysdeps/ieee754/dbl-64/mpa.c b/sysdeps/ieee754/dbl-64/mpa.c index b5d25ed2a2..cf4f6f7c53 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]