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

Macros

#define LOG_Q31_ACCURACY   31
 
#define LOG_Q31_INTEGER_PART   5
 
#define LOQ_Q31_THRESHOLD   (1u << LOG_Q31_ACCURACY)
 
#define LOQ_Q31_Q32_HALF   LOQ_Q31_THRESHOLD
 
#define LOQ_Q31_Q30_HALF   (LOQ_Q31_Q32_HALF >> 2)
 
#define LOG_Q31_INVLOG2EXP   0x58b90bfbuL
 

Functions

static uint32_t _scalar_log_q31 (uint32_t aInData)
 
q31_t tpt_log_q31 (q31_t aInData)
 Calculate the natural logarithm value of q31 input. More...
 

Macro Definition Documentation

◆ LOG_Q31_ACCURACY

#define LOG_Q31_ACCURACY   31

◆ LOG_Q31_INTEGER_PART

#define LOG_Q31_INTEGER_PART   5

◆ LOG_Q31_INVLOG2EXP

#define LOG_Q31_INVLOG2EXP   0x58b90bfbuL

◆ LOQ_Q31_Q30_HALF

#define LOQ_Q31_Q30_HALF   (LOQ_Q31_Q32_HALF >> 2)

◆ LOQ_Q31_Q32_HALF

#define LOQ_Q31_Q32_HALF   LOQ_Q31_THRESHOLD

◆ LOQ_Q31_THRESHOLD

#define LOQ_Q31_THRESHOLD   (1u << LOG_Q31_ACCURACY)

Function Documentation

◆ _scalar_log_q31()

static uint32_t _scalar_log_q31 ( uint32_t  aInData)
inlinestatic