42 #ifndef MATHLIB_ACOS_SCALAR_H_
43 #define MATHLIB_ACOS_SCALAR_H_ 1
45 #include <c6x_migration.h>
52 #pragma CODE_SECTION(MATHLIB_acos_scalar, ".text:optci");
61 const float half = 0.5f;
62 const float OneP5 = 1.5f;
63 float y, y0, y1, y2, x_half;
68 y1 = OneP5 - (y0 * y0 * x_half);
70 y2 = y1 * (OneP5 - (y1 * y1 * x_half));
81 #pragma CODE_SECTION(pol_est_acossp_i, ".text:optci");
96 const float c16 = 0.053002771381990f;
97 const float c14 = -0.010980624698693f;
98 const float c12 = 0.020659425186833f;
99 const float c10 = 0.022862784546374f;
100 const float c8 = 0.030636056280974f;
101 const float c6 = 0.044450959710588f;
102 const float c4 = 0.075034659380970f;
103 const float c2 = 0.166664771293503f;
105 float x2, x4, x6, x8, x10, x12;
106 float pol, tmp1, tmp2;
124 tmp1 = ((c8 * x8) + (c6 * x6)) + ((c4 * x4) + (c2 * x2));
125 tmp2 = ((((c16 * x4) + (c14 * x2)) + c12) * x12) + (c10 * x10);
134 #pragma CODE_SECTION(acossp_i, ".text:optci");
151 const float pi2 = 1.570796327f;
152 const float rsqr2 = 0.7071067811f;
154 float res, x_abs, temp, a;
159 temp = 1.0f - (x_abs * x_abs);
172 res = pi2 - (res * s);
175 res = _itof(0x7FFFFFFFu);
static float MATHLIB_acos_scalar(float x)
static float pol_est_acossp_i(float x)
static float sqrtsp_acossp_i(float x)