Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Johnston <jjohnstn@redhat.com>2008-09-04 21:27:49 +0400
committerJeff Johnston <jjohnstn@redhat.com>2008-09-04 21:27:49 +0400
commitdb04da927987ae655176a26f3e1472a54eb60a92 (patch)
tree0d67a9ef6c00d5299f4984c85ee86b8102e20793
parent8453fdbad9e58742af09614675e5f8e863062750 (diff)
2008-09-04 Ken Werner <ken.werner@de.ibm.com>
* libm/machine/spu/headers/cbrt.h: cbrt_factors[] declared. * libm/machine/spu/headers/cbrtf.h: Likewise.
-rw-r--r--newlib/ChangeLog5
-rw-r--r--newlib/libm/machine/spu/headers/cbrt.h8
-rw-r--r--newlib/libm/machine/spu/headers/cbrtf.h8
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 <ken.werner@de.ibm.com>
+
+ * libm/machine/spu/headers/cbrt.h: cbrt_factors[] declared.
+ * libm/machine/spu/headers/cbrtf.h: Likewise.
+
2008-09-01 Ken Werner <ken.werner@de.ibm.com>
* 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 <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.
*/