Go to the source code of this file.
◆ SINCOS_TRIM_X
#define SINCOS_TRIM_X |
( |
|
y, |
|
|
|
x |
|
) |
| y = x - rintf(x) + 1.0; |
◆ SINCOS_ADDS
#define SINCOS_ADDS 402653184.0 |
◆ SINCOS_MASK1
#define SINCOS_MASK1 0xFFFFFF |
◆ SINCOS_MASK2
#define SINCOS_MASK2 0x003FFF |
◆ SINCOS_SHIFT
◆ SINCOS_LUT_RES
#define SINCOS_LUT_RES 1024 /* should be multiple of 4 */ |
◆ SINCOS_PROLOG
◆ SINCOS_STEP1
◆ SINCOS_STEP2
◆ SINCOS_STEP3
◆ SINCOS_STEP4
◆ SINCOS_STEP5
◆ SINCOS_STEP6
◆ SINCOS_EPILOG
#define SINCOS_EPILOG |
( |
|
s, |
|
|
|
c, |
|
|
|
x |
|
) |
| |
◆ RAX
◆ RDX
◆ RDI
◆ PAX
◆ PDX
◆ PDI
◆ SINCOS_FLD
#define SINCOS_FLD "fldl" |
◆ SINCOS_TRIM_P0A
#define SINCOS_TRIM_P0A |
( |
|
alpha | ) |
|
Value:
"fistpll %[tmp] \n\t" \
"fld1 \n\t" \
"fildll %[tmp] \n\t"
Definition at line 171 of file SinCosLUT.i.
◆ SINCOS_TRIM_P0B
#define SINCOS_TRIM_P0B |
( |
|
alpha | ) |
|
Value: "fsubrp %%st,%%st(1) \n\t" \
"faddl %[" #
alpha "] \n\t" \
"faddl %[sincos_adds] \n\t" \
"fstpl %[tmp] \n\t"
Definition at line 177 of file SinCosLUT.i.
◆ SINCOS_P0
#define SINCOS_P0 |
( |
|
alpha | ) |
|
Value:
"faddl %[sincos_adds] \n\t" \
"fstpl %[tmp] \n\t"
Definition at line 184 of file SinCosLUT.i.
◆ SINCOS_P1
◆ SINCOS_P2
Value: "mov "PAX",%[tmp] \n\t" \
"mov %[scd], "PAX" \n\t" \
"and $0xffffff,"PDX" \n\t"
Definition at line 193 of file SinCosLUT.i.
◆ SINCOS_P3
◆ SINCOS_P4
◆ SINCOS_P4A
◆ SINCOS_P5
Value: "fadds ("PDI","PDX",4) \n\t" \
"add $0x100,"PDX" \n\t" \
"fstps %[" #sin "] \n\t"
Definition at line 207 of file SinCosLUT.i.
◆ SINCOS_P6
Value: "fmuls ("PAX","PDX",4) \n\t" \
"fadds ("PDI","PDX",4) \n\t" \
"fstps %[" #cos "] \n\t"
Definition at line 211 of file SinCosLUT.i.
◆ SINCOS_REGISTERS
#define SINCOS_REGISTERS RAX,RDX,RDI,"st","st(1)","st(2)","cc" |
◆ sincosLUTbase
◆ sincosLUTdiff
◆ cosLUTbase
◆ cosLUTdiff
◆ sincosI
◆ sincosN
◆ asreal
◆ intval
◆ dummy