fast non-vector FPU version of SinCos used in various CW codes
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... | |
void XLALSinCosLUTInit | ( | void | ) |
Definition at line 49 of file SinCosLUT.c.
Calculate sin(x) and cos(x) to roughly 1e-7 precision using a lookup-table and Taylor-expansion.
Returns XLAL_SUCCESS or XLAL_FAILURE.
Definition at line 83 of file SinCosLUT.c.
Calculate sin(2*pi*x) and cos(2*pi*x) to roughly 1e-7 precision using a lookup-table and Taylor-expansion.
Returns XLAL_SUCCESS or XLAL_FAILURE.
Definition at line 97 of file SinCosLUT.c.