22 int *f_ptr = (
int *)&f;
23 result = 0x1fbb4000 + (*f_ptr >> 1);
24 const int *p = &result;
25 float *f_result = (
float *)p;
38 for (
int i = 0 ; i < len ; i++) {
46 const float x2 =
data * 0.5F;
47 const float threehalfs = 1.5F;
53 conv.i = 0x5f3759df - ( conv.i >> 1 );
54 conv.f *= ( threehalfs - ( x2 * conv.f * conv.f ) );
#define ESP_ERR_DSP_PARAM_OUTOFRANGE
esp_err_t dsps_sqrt_f32_ansi(const float *input, float *output, int len)
square root approximation
float dsps_inverted_sqrtf_f32_ansi(float data)
inverted square root approximation
float dsps_sqrtf_f32_ansi(float f)
square root approximation
static float data[128 *2]