Definition in file op_dsp16_fix_sqrt.c.
#include "dsp.h"
#include "preprocessor.h"
Go to the source code of this file.
Defines | |
#define | DSP16_SQRT_NEWTON_ITERATION(x_num, data) |
#define | DSP16_SQRT_ONE_POINT_FIVE ((S32) (3 << (DSP16_QB-1))) |
Functions | |
dsp16_t | dsp16_op_sqrt (dsp16_t num) |
16-bit fixed point version of the square root function. |
#define DSP16_SQRT_NEWTON_ITERATION | ( | x_num, | |||
data | ) |
Value:
a = ((S32) x)*((S32) x); \ a = (((S32) num)*a) >> (DSP16_QB+1); \ x = (((S32) x)*(DSP16_SQRT_ONE_POINT_FIVE - a)) >> (DSP16_QB);
Definition at line 54 of file op_dsp16_fix_sqrt.c.
Referenced by dsp16_op_sqrt().
#define DSP16_SQRT_ONE_POINT_FIVE ((S32) (3 << (DSP16_QB-1))) |
Definition at line 52 of file op_dsp16_fix_sqrt.c.