127 #define TABLE_SIZE_DIVTWOPI 20.37183271576; //TABLE_SIZE/(2*Pi)
128 #define TWOPIDDIV_TABLE_SIZE 0.04908738521234; //(2*Pi)/TABLE_SIZE
129 #define TABLE_SIZE 64
130 #define TABLE_SIZE_M_1 TABLE_SIZE-1
132 #define PI 3.141592653589
136 #ifdef __TMS320C28XX_CLA__
137 #pragma FUNC_ALWAYS_INLINE(CLAsqrt_inline)
143 y0 = __meisqrtf32(in);
159 #pragma FUNC_ALWAYS_INLINE(CLAsin_inline)
171 index=(((
signed int)tblIdx)&(
signed int)0x007F);
172 SinK = CLAsincosTable[(
signed int)index];
173 CosK = CLAsincosTable[index+32];
175 X = __mfracf32(tblIdx);
179 return (SinK + X * (CosK \
180 + X * (CLAsincosTable_Coef0 * SinK \
181 + X * (CLAsincosTable_Coef1 * CosK \
182 + X * (CLAsincosTable_Coef2 * SinK \
183 + X * (CLAsincosTable_Coef3 * CosK))))));
187 #pragma FUNC_ALWAYS_INLINE(CLAcos_inline)
198 index=(((
signed int)tblIdx)&(
signed int)0x007F);
200 SinK = CLAsincosTable[index];
201 CosK = CLAsincosTable[index+32];
203 X = __mfracf32(tblIdx);
207 return (CosK + X * (-SinK \
208 + X * (CLAsincosTable_Coef0 * CosK \
209 + X * (CLAsincosTable_Coef1_pos * SinK \
210 + X * (CLAsincosTable_Coef2 * CosK \
211 + X * (CLAsincosTable_Coef3_neg * SinK))))));
225 #endif // __CLAMATH_H__
Contains the public interface to the types definitions.
float_t CLAatan2PU(float_t fVal1, float_t fVal2)
float_t * CLAasinTableEnd
float_t CLAatan2HalfPITable[2]
float_t CLAsin(float_t fAngleRad)
float_t CLAacosinTable[192]
float_t CLAasinHalfPITable[2]
float_t * CLAsincosTableEnd
float_t * CLAacosinTableEnd
float_t * CLAsincosTable_Sin0
float_t CLAsincosTable_TABLE_MASK
float_t CLAasin(float_t fVal)
float_t CLAatan(float_t fVal)
float_t CLAsincosTable_TwoPiDivTABLE_SIZE
float_t * CLAsincosTable_Cos0
float_t CLAexp2(float_t fNum, float_t fDen)
float_t CLAsincosTable[161]
float_t CLAdiv(float_t fNum, float_t fDen)
float_t CLAsincosTable_Coef3_neg
float_t CLAatan2Table[195]
float_t * CLAatan2TableEnd
float_t CLAsincosTable_Coef3
float_t CLAln(float_t fVal)
float_t CLAasinTable[195]
float_t CLAsincosTable_TABLE_SIZE
float_t CLAexp10(float_t fVal)
float_t CLAexp(float_t fVal)
float_t CLAcosPU(float_t fAngleRadPU)
float_t CLAlog10(float_t fVal)
unsigned int _cla_scratchpad_end
float_t CLAatan2(float_t fVal1, float_t fVal2)
float_t CLAsincosTable_Coef1_pos
float_t CLAacosinHalfPITable[2]
float_t CLAacos(float_t fVal)
float_t CLAsinPU(float_t fAngleRadPU)
float_t CLAsincosTable_Coef1
float_t CLAsincosTable_Coef2
unsigned int _cla_scratchpad_start
float_t CLAisqrt(float_t fVal)
float_t CLAcos(float_t fAngleRad)
float_t CLAsincosTable_Coef0
float_t CLAsqrt(float_t fVal)
float_t CLAacos_spc(float_t fVal)
float_t CLAsincosTable_TABLE_SIZEDivTwoPi
#define TWOPIDDIV_TABLE_SIZE
float float_t
Defines the portable data type for 32 bit, signed floating-point data.