From db04da927987ae655176a26f3e1472a54eb60a92 Mon Sep 17 00:00:00 2001 From: Jeff Johnston Date: Thu, 4 Sep 2008 17:27:49 +0000 Subject: 2008-09-04 Ken Werner * libm/machine/spu/headers/cbrt.h: cbrt_factors[] declared. * libm/machine/spu/headers/cbrtf.h: Likewise. --- newlib/ChangeLog | 5 +++++ newlib/libm/machine/spu/headers/cbrt.h | 8 +++++++- newlib/libm/machine/spu/headers/cbrtf.h | 8 +++++++- 3 files changed, 19 insertions(+), 2 deletions(-) diff --git a/newlib/ChangeLog b/newlib/ChangeLog index 42ddbd8ed..e1e4b3fb0 100644 --- a/newlib/ChangeLog +++ b/newlib/ChangeLog @@ -1,3 +1,8 @@ +2008-09-04 Ken Werner + + * libm/machine/spu/headers/cbrt.h: cbrt_factors[] declared. + * libm/machine/spu/headers/cbrtf.h: Likewise. + 2008-09-01 Ken Werner * libc/machine/spu/include/spu_timer.h: spu_timebase function added. diff --git a/newlib/libm/machine/spu/headers/cbrt.h b/newlib/libm/machine/spu/headers/cbrt.h index de0977028..896b4e1bf 100644 --- a/newlib/libm/machine/spu/headers/cbrt.h +++ b/newlib/libm/machine/spu/headers/cbrt.h @@ -37,7 +37,13 @@ #include #include "headers/vec_literal.h" -extern double cbrt_factors[5]; +static double cbrt_factors[5] = { + 0.629960524947436484311, /* 2^(-2/3) */ + 0.793700525984099680699, /* 2^(-1/3) */ + 1.0, /* 2^(0) */ + 1.259921049894873164666, /* 2^(1/3) */ + 1.587401051968199583441 /* 2^(2/3) */ +}; /* Compute the cube root of x to double precision. */ diff --git a/newlib/libm/machine/spu/headers/cbrtf.h b/newlib/libm/machine/spu/headers/cbrtf.h index fb9553ad7..2fd95af01 100644 --- a/newlib/libm/machine/spu/headers/cbrtf.h +++ b/newlib/libm/machine/spu/headers/cbrtf.h @@ -36,7 +36,13 @@ #include #include "headers/vec_literal.h" -extern double cbrt_factors[5]; +static double cbrt_factors[5] = { + 0.629960524947436484311, /* 2^(-2/3) */ + 0.793700525984099680699, /* 2^(-1/3) */ + 1.0, /* 2^(0) */ + 1.259921049894873164666, /* 2^(1/3) */ + 1.587401051968199583441 /* 2^(2/3) */ +}; /* Compute the cube root of the floating point input x. */ -- cgit v1.2.3