diff options
Diffstat (limited to 'newlib/libm/machine')
-rw-r--r-- | newlib/libm/machine/spu/headers/cbrt.h | 8 | ||||
-rw-r--r-- | newlib/libm/machine/spu/headers/cbrtf.h | 8 |
2 files changed, 14 insertions, 2 deletions
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 <spu_intrinsics.h> #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 <spu_intrinsics.h> #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. */ |