Definition in file op_dsp32_fix_sqrt.c.
#include "dsp.h"
#include "preprocessor.h"
Go to the source code of this file.
Defines | |
#define | DSP32_SQRT_NEWTON_ITERATION(x_num, data) |
#define | DSP32_SQRT_ONE_POINT_FIVE ((S64) (3LL << (DSP32_QB-1))) |
Functions | |
dsp32_t | dsp32_op_sqrt (dsp32_t num) |
32-bit fixed point version of the square root function. |
#define DSP32_SQRT_NEWTON_ITERATION | ( | x_num, | |||
data | ) |
Value:
a = (x*x); \ a = (s64_num*a) >> (DSP32_QB+1); \ x = (x*(DSP32_SQRT_ONE_POINT_FIVE - a)) >> (DSP32_QB);
Definition at line 54 of file op_dsp32_fix_sqrt.c.
Referenced by dsp32_op_sqrt().
#define DSP32_SQRT_ONE_POINT_FIVE ((S64) (3LL << (DSP32_QB-1))) |
Definition at line 52 of file op_dsp32_fix_sqrt.c.