From 9e2a895aaaa4a3985e94ae4f3e24c1af65f9bb34 Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Sun, 18 Mar 2012 01:58:28 -0400 Subject: fix loads of missing const in new libm, and some global vars (?!) in powl --- src/math/tgammal.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/math/tgammal.c') diff --git a/src/math/tgammal.c b/src/math/tgammal.c index e5905506..1b8fddea 100644 --- a/src/math/tgammal.c +++ b/src/math/tgammal.c @@ -68,7 +68,7 @@ n=7, d=8 Peak error = 1.83e-20 Relative error spread = 8.4e-23 */ -static long double P[8] = { +static const long double P[8] = { 4.212760487471622013093E-5L, 4.542931960608009155600E-4L, 4.092666828394035500949E-3L, @@ -78,7 +78,7 @@ static long double P[8] = { 8.378004301573126728826E-1L, 1.000000000000000000009E0L, }; -static long double Q[9] = { +static const long double Q[9] = { -1.397148517476170440917E-5L, 2.346584059160635244282E-4L, -1.237799246653152231188E-3L, @@ -91,7 +91,7 @@ static long double Q[9] = { }; /* -static long double P[] = { +static const long double P[] = { -3.01525602666895735709e0L, -3.25157411956062339893e1L, -2.92929976820724030353e2L, @@ -101,7 +101,7 @@ static long double P[] = { -5.99650230220855581642e4L, -7.15743521530849602425e4L }; -static long double Q[] = { +static const long double Q[] = { 1.00000000000000000000e0L, -1.67955233807178858919e1L, 8.85946791747759881659e1L, @@ -125,7 +125,7 @@ n=8, d=0 Peak error = 9.44e-21 Relative error spread = 8.8e-4 */ -static long double STIR[9] = { +static const long double STIR[9] = { 7.147391378143610789273E-4L, -2.363848809501759061727E-5L, -5.950237554056330156018E-4L, @@ -145,7 +145,7 @@ static const long double SQTPI = 2.50662827463100050242E0L; * 0 < x < 0.03125 * Peak relative error 4.2e-23 */ -static long double S[9] = { +static const long double S[9] = { -1.193945051381510095614E-3L, 7.220599478036909672331E-3L, -9.622023360406271645744E-3L, @@ -163,7 +163,7 @@ static long double S[9] = { * Peak relative error 5.16e-23 * Relative error spread = 2.5e-24 */ -static long double SN[9] = { +static const long double SN[9] = { 1.133374167243894382010E-3L, 7.220837261893170325704E-3L, 9.621911155035976733706E-3L, -- cgit 1.4.1