Microchip® Advanced Software Framework

op_dsp32_fix_sqrt.c File Reference
#include "dsp.h"
#include "preprocessor.h"

Macros

#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. More...
 

#define DSP32_SQRT_NEWTON_ITERATION (   x_num,
  data 
)
Value:
a = (x*x); \
a = (s64_num*a) >> (DSP32_QB+1); \
#define DSP32_SQRT_ONE_POINT_FIVE
Definition: op_dsp32_fix_sqrt.c:46
#define DSP32_QB
number of fractional bits
Definition: dsp_types.h:167
A_ALIGNED dsp32_t x[SIZE+NUM_SIZE-1]
The input signal (sampling rate: 48KHz) A mix between a 4000 Hz and a 1000 Hz signal (mixed by additi...
Definition: iir_example.c:118

Referenced by dsp32_op_sqrt().

#define DSP32_SQRT_ONE_POINT_FIVE   ((S64) (3LL << (DSP32_QB-1)))