90 uint16_t indexS, indexC;
97 in = theta * 0.00277777777778f;
112 indexS = ((uint16_t)findex) & 0x1ff;
124 Dn = 0.0122718463030f;
126 temp = Dn*(d1 + d2) - 2*Df;
127 temp = fract*temp + (3*Df - (d2 + 2*d1)*Dn);
128 temp = fract*temp + d1*Dn;
131 *pCosVal = fract*temp + f1;
140 temp = Dn*(d1 + d2) - 2*Df;
141 temp = fract*temp + (3*Df - (d2 + 2*d1)*Dn);
142 temp = fract*temp + d1*Dn;
145 *pSinVal = fract*temp + f1;
void arm_sin_cos_f32(float32_t theta, float32_t *pSinVal, float32_t *pCosVal)
Floating-point sin_cos function.
float float32_t
32-bit floating-point type definition.
const float32_t sinTable_f32[FAST_MATH_TABLE_SIZE+1]
#define FAST_MATH_TABLE_SIZE
Macros required for SINE and COSINE Fast math approximations.