LIBML  Version 3.2.4
LIBML DSP Software Library
Macros | Functions
tpt_div_q31.c File Reference
#include "tpt_math.h"
#include "tpt_internal.h"
Include dependency graph for tpt_div_q31.c:

Macros

#define NORM_SH   (29)
 
#define CST_1   (1L << NORM_SH)
 
#define CST_2   (2L * CST_1)
 
#define D2QN(F, SH)   ((int)((float)F * (float)(1L << SH)))
 
#define GHMUL(X, Y)   ((int)(((q63_t)X * Y) >> 32))
 

Functions

q31_t tpt_div_q31 (const q31_t aInDataA, const q31_t aInDataB)
 Division of q31 inputs. More...
 

Macro Definition Documentation

◆ CST_1

#define CST_1   (1L << NORM_SH)

◆ CST_2

#define CST_2   (2L * CST_1)

◆ D2QN

#define D2QN (   F,
  SH 
)    ((int)((float)F * (float)(1L << SH)))

◆ GHMUL

#define GHMUL (   X,
 
)    ((int)(((q63_t)X * Y) >> 32))

◆ NORM_SH

#define NORM_SH   (29)