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.
This commit is contained in:
parent
8453fdbad9
commit
db04da9279
|
@ -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>
|
2008-09-01 Ken Werner <ken.werner@de.ibm.com>
|
||||||
|
|
||||||
* libc/machine/spu/include/spu_timer.h: spu_timebase function added.
|
* libc/machine/spu/include/spu_timer.h: spu_timebase function added.
|
||||||
|
|
|
@ -37,7 +37,13 @@
|
||||||
#include <spu_intrinsics.h>
|
#include <spu_intrinsics.h>
|
||||||
#include "headers/vec_literal.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.
|
/* Compute the cube root of x to double precision.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -36,7 +36,13 @@
|
||||||
#include <spu_intrinsics.h>
|
#include <spu_intrinsics.h>
|
||||||
#include "headers/vec_literal.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.
|
/* Compute the cube root of the floating point input x.
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue