70 uint16_t indexS, indexC;
77 indexC = (indexS + 128) & 0x1ff;
90 temp = Dn*((
q63_t)d1 + d2);
91 temp = temp - ((
q63_t)Df << 32);
92 temp = (
q63_t)fract*(temp >> 31);
93 temp = temp + ((3*(
q63_t)Df << 31) - (d2 + ((
q63_t)d1 << 1))*Dn);
94 temp = (
q63_t)fract*(temp >> 31);
95 temp = temp + (
q63_t)d1*Dn;
96 temp = (
q63_t)fract*(temp >> 31);
99 *pCosVal = clip_q63_to_q31((temp >> 31) + (
q63_t)f1);
108 temp = Dn*((
q63_t)d1 + d2);
109 temp = temp - ((
q63_t)Df << 32);
110 temp = (
q63_t)fract*(temp >> 31);
111 temp = temp + ((3*(
q63_t)Df << 31) - (d2 + ((
q63_t)d1 << 1))*Dn);
112 temp = (
q63_t)fract*(temp >> 31);
113 temp = temp + (
q63_t)d1*Dn;
114 temp = (
q63_t)fract*(temp >> 31);
117 *pSinVal = clip_q63_to_q31((temp >> 31) + (
q63_t)f1);
int64_t q63_t
64-bit fractional data type in 1.63 format.
void arm_sin_cos_q31(q31_t theta, q31_t *pSinVal, q31_t *pCosVal)
Q31 sin_cos function.
const q31_t sinTable_q31[FAST_MATH_TABLE_SIZE+1]
int32_t q31_t
32-bit fractional data type in 1.31 format.
#define CONTROLLER_Q31_SHIFT