Prototypes | |
void | XLALSinCosLUTInit (void) |
int | XLALSinCosLUT (REAL4 *sinx, REAL4 *cosx, REAL8 x) |
Calculate sin(x) and cos(x) to roughly 1e-7 precision using a lookup-table and Taylor-expansion. More... | |
int | XLALSinCos2PiLUT (REAL4 *sin2pix, REAL4 *cos2pix, REAL8 x) |
Calculate sin(2*pi*x) and cos(2*pi*x) to roughly 1e-7 precision using a lookup-table and Taylor-expansion. More... | |
int | XLALSinCos2PiLUTtrimmed (REAL4 *s, REAL4 *c, REAL8 x) |
A function that uses the lookup tables to evaluate sin and cos values of 2*Pi*x, but relies on x being already trimmed to the interval [0..2) More... | |
Go to the source code of this file.
Macros | |
#define | OOTWOPI (1.0 / LAL_TWOPI) |
#define | unlikely(x) __builtin_expect((x),0) |
Variables | |
static BOOLEAN | haveLUT = 0 |
UNUSED REAL4 | sincosLUTbase [SINCOS_LUT_RES+SINCOS_LUT_RES/4] |
UNUSED REAL4 | sincosLUTdiff [SINCOS_LUT_RES+SINCOS_LUT_RES/4] |
#define OOTWOPI (1.0 / LAL_TWOPI) |
Definition at line 26 of file SinCosLUT.c.
Definition at line 29 of file SinCosLUT.c.
|
static |
Definition at line 37 of file SinCosLUT.c.
UNUSED REAL4 sincosLUTbase[SINCOS_LUT_RES+SINCOS_LUT_RES/4] |
Definition at line 40 of file SinCosLUT.c.
UNUSED REAL4 sincosLUTdiff[SINCOS_LUT_RES+SINCOS_LUT_RES/4] |
Definition at line 41 of file SinCosLUT.c.