42 #ifndef MATHLIB_SQRT_SCALAR_H_
43 #define MATHLIB_SQRT_SCALAR_H_ 1
45 #include <c6x_migration.h>
49 #pragma CODE_SECTION(MATHLIB_sqrt_scalar, ".text:optci");
61 const float Half = 0.5f;
62 const float OneP5 = 1.5f;
69 for (i = 0; i < 2; i++) {
70 x = x * (OneP5 - (a * x * x * Half));
94 for (i = 0; i < 3; i++) {
95 x = x * (OneP5 - (a * x * x * half));
float MATHLIB_sqrt_scalar_ci< float >(float a)
static double MATHLIB_sqrt_scalar_dp(double a)
double MATHLIB_sqrt_scalar_ci< double >(double a)
static float MATHLIB_sqrt_scalar_sp(float a)
static T MATHLIB_sqrt_scalar_ci(T a)