24 #include <lal/SinCosLUT.h>
26 #define OOTWOPI (1.0 / LAL_TWOPI)
29 #define unlikely(x) __builtin_expect((x),0)
31 #define unlikely(x) (x)
62 true_mid = sin( (
i + 0.5 ) * step );
63 end = sin( (
i + 1 ) * step );
#define __func__
log an I/O error, i.e.
UNUSED REAL4 sincosLUTbase[SINCOS_LUT_RES+SINCOS_LUT_RES/4]
UNUSED REAL4 sincosLUTdiff[SINCOS_LUT_RES+SINCOS_LUT_RES/4]
#define SINCOS_TRIM_X(y, x)
#define SINCOS_EPILOG(s, c, x)
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.
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-expan...
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 bein...
void XLALSinCosLUTInit(void)
int XLALPrintError(const char *fmt,...) _LAL_GCC_PRINTF_FORMAT_(1