LIBML  Version 3.2.4
LIBML DSP Software Library
Macros | Functions | Variables
tpt_common_tables.h File Reference
This graph shows which files directly or indirectly include this file:

Macros

#define RES_LOGN   (10)
 
#define CFFT_LOGN   (RES_LOGN + 2)
 
#define CFFT_N   (1U << CFFT_LOGN)
 
#define COS_TABLE_F64_LOGN   RES_LOGN
 
#define COS_TABLE_F64_N   (1U << COS_TABLE_F64_LOGN)
 
#define COS_TABLE_F32_LOGN   RES_LOGN
 
#define COS_TABLE_F32_N   (1U << COS_TABLE_F32_LOGN)
 
#define COS_TABLE_Q15_LOGN   RES_LOGN
 
#define COS_TABLE_Q15_N   (1U << COS_TABLE_Q15_LOGN)
 
#define COS_TABLE_Q31_LOGN   RES_LOGN
 
#define COS_TABLE_Q31_N   (1U << COS_TABLE_Q31_LOGN)
 
#define TPT_BITREV_TABLE_16_LENGTH   12
 
#define TPT_BITREV_TABLE_32_LENGTH   24
 
#define TPT_BITREV_TABLE_64_LENGTH   56
 
#define TPT_BITREV_TABLE_128_LENGTH   112
 
#define TPT_BITREV_TABLE_256_LENGTH   240
 
#define TPT_BITREV_TABLE_512_LENGTH   480
 
#define TPT_BITREV_TABLE_1024_LENGTH   992
 
#define TPT_BITREV_TABLE_2048_LENGTH   1984
 
#define TPT_BITREV_TABLE_4096_LENGTH   4032
 
#define RES_N   (1 << RES_LOGN)
 
#define tpt_tan_table_f32   tpt_tan_table_f32_1024
 
#define tpt_tan_table_f64   tpt_tan_table_f64_1024
 
#define tpt_tan_table_q31   tpt_tan_table_q31_1024
 
#define tpt_tan_table_q15   tpt_tan_table_q15_1024
 
#define TAN_TABLE_F32_N   (RES_N >> 2) +1
 
#define TAN_TABLE_F64_N   (RES_N >> 2) +1
 
#define TAN_TABLE_Q31_N   (RES_N >> 2) +1
 
#define TAN_TABLE_Q15_N   (RES_N >> 2) +1
 

Functions

static void gen_3_twiddle_f32 (size_t aIndex, f32_t *aCosVal1, f32_t *aSinVal1, f32_t *aCosVal2, f32_t *aSinVal2, f32_t *aCosVal3, f32_t *aSinVal3)
 
static void gen_3_twiddle_f64 (size_t aIndex, f64_t *aCosVal1, f64_t *aSinVal1, f64_t *aCosVal2, f64_t *aSinVal2, f64_t *aCosVal3, f64_t *aSinVal3)
 
static void gen_3_twiddle_q15 (size_t aIndex, q31_t *aCosVal1, q31_t *aSinVal1, q31_t *aCosVal2, q31_t *aSinVal2, q31_t *aCosVal3, q31_t *aSinVal3)
 
static void gen_3_twiddle_q31 (size_t aIndex, q31_t *aCosVal1, q31_t *aSinVal1, q31_t *aCosVal2, q31_t *aSinVal2, q31_t *aCosVal3, q31_t *aSinVal3)
 

Variables

const uint16_t tpt_bitrev_table_16 [TPT_BITREV_TABLE_16_LENGTH]
 
const uint16_t tpt_bitrev_table_32 [TPT_BITREV_TABLE_32_LENGTH]
 
const uint16_t tpt_bitrev_table_64 [TPT_BITREV_TABLE_64_LENGTH]
 
const uint16_t tpt_bitrev_table_128 [TPT_BITREV_TABLE_128_LENGTH]
 
const uint16_t tpt_bitrev_table_256 [TPT_BITREV_TABLE_256_LENGTH]
 
const uint16_t tpt_bitrev_table_512 [TPT_BITREV_TABLE_512_LENGTH]
 
const uint16_t tpt_bitrev_table_1024 [TPT_BITREV_TABLE_1024_LENGTH]
 
const uint16_t tpt_bitrev_table_2048 [TPT_BITREV_TABLE_2048_LENGTH]
 
const uint16_t tpt_bitrev_table_4096 [TPT_BITREV_TABLE_4096_LENGTH]
 
const f32_t tpt_cos_table_f32 [COS_TABLE_F32_N+1]
 
const f64_t tpt_cos_table_f64 [COS_TABLE_F64_N+1]
 
const q15_t tpt_cos_table_q15 [COS_TABLE_Q15_N+1]
 
const q31_t tpt_cos_table_q31 [COS_TABLE_Q31_N+1]
 
const f32_t tpt_tan_table_f32 [TAN_TABLE_F32_N]
 
const f64_t tpt_tan_table_f64 [TAN_TABLE_F64_N]
 
const q15_t tpt_tan_table_q15 [TAN_TABLE_Q15_N]
 
const q31_t tpt_tan_table_q31 [TAN_TABLE_Q31_N]
 

Macro Definition Documentation

◆ CFFT_LOGN

#define CFFT_LOGN   (RES_LOGN + 2)

◆ CFFT_N

#define CFFT_N   (1U << CFFT_LOGN)

◆ COS_TABLE_F32_LOGN

#define COS_TABLE_F32_LOGN   RES_LOGN

◆ COS_TABLE_F32_N

#define COS_TABLE_F32_N   (1U << COS_TABLE_F32_LOGN)

◆ COS_TABLE_F64_LOGN

#define COS_TABLE_F64_LOGN   RES_LOGN

◆ COS_TABLE_F64_N

#define COS_TABLE_F64_N   (1U << COS_TABLE_F64_LOGN)

◆ COS_TABLE_Q15_LOGN

#define COS_TABLE_Q15_LOGN   RES_LOGN

◆ COS_TABLE_Q15_N

#define COS_TABLE_Q15_N   (1U << COS_TABLE_Q15_LOGN)

◆ COS_TABLE_Q31_LOGN

#define COS_TABLE_Q31_LOGN   RES_LOGN

◆ COS_TABLE_Q31_N

#define COS_TABLE_Q31_N   (1U << COS_TABLE_Q31_LOGN)

◆ RES_LOGN

#define RES_LOGN   (10)

Function: Extern declaration for common tables

◆ RES_N

#define RES_N   (1 << RES_LOGN)

◆ TAN_TABLE_F32_N

#define TAN_TABLE_F32_N   (RES_N >> 2) +1

◆ TAN_TABLE_F64_N

#define TAN_TABLE_F64_N   (RES_N >> 2) +1

◆ TAN_TABLE_Q15_N

#define TAN_TABLE_Q15_N   (RES_N >> 2) +1

◆ TAN_TABLE_Q31_N

#define TAN_TABLE_Q31_N   (RES_N >> 2) +1

◆ TPT_BITREV_TABLE_1024_LENGTH

#define TPT_BITREV_TABLE_1024_LENGTH   992

◆ TPT_BITREV_TABLE_128_LENGTH

#define TPT_BITREV_TABLE_128_LENGTH   112

◆ TPT_BITREV_TABLE_16_LENGTH

#define TPT_BITREV_TABLE_16_LENGTH   12

◆ TPT_BITREV_TABLE_2048_LENGTH

#define TPT_BITREV_TABLE_2048_LENGTH   1984

◆ TPT_BITREV_TABLE_256_LENGTH

#define TPT_BITREV_TABLE_256_LENGTH   240

◆ TPT_BITREV_TABLE_32_LENGTH

#define TPT_BITREV_TABLE_32_LENGTH   24

◆ TPT_BITREV_TABLE_4096_LENGTH

#define TPT_BITREV_TABLE_4096_LENGTH   4032

◆ TPT_BITREV_TABLE_512_LENGTH

#define TPT_BITREV_TABLE_512_LENGTH   480

◆ TPT_BITREV_TABLE_64_LENGTH

#define TPT_BITREV_TABLE_64_LENGTH   56

◆ tpt_tan_table_f32

#define tpt_tan_table_f32   tpt_tan_table_f32_1024

◆ tpt_tan_table_f64

#define tpt_tan_table_f64   tpt_tan_table_f64_1024

◆ tpt_tan_table_q15

#define tpt_tan_table_q15   tpt_tan_table_q15_1024

◆ tpt_tan_table_q31

#define tpt_tan_table_q31   tpt_tan_table_q31_1024

Function Documentation

◆ gen_3_twiddle_f32()

static void gen_3_twiddle_f32 ( size_t  aIndex,
f32_t aCosVal1,
f32_t aSinVal1,
f32_t aCosVal2,
f32_t aSinVal2,
f32_t aCosVal3,
f32_t aSinVal3 
)
inlinestatic

◆ gen_3_twiddle_f64()

static void gen_3_twiddle_f64 ( size_t  aIndex,
f64_t aCosVal1,
f64_t aSinVal1,
f64_t aCosVal2,
f64_t aSinVal2,
f64_t aCosVal3,
f64_t aSinVal3 
)
inlinestatic

◆ gen_3_twiddle_q15()

static void gen_3_twiddle_q15 ( size_t  aIndex,
q31_t aCosVal1,
q31_t aSinVal1,
q31_t aCosVal2,
q31_t aSinVal2,
q31_t aCosVal3,
q31_t aSinVal3 
)
inlinestatic

◆ gen_3_twiddle_q31()

static void gen_3_twiddle_q31 ( size_t  aIndex,
q31_t aCosVal1,
q31_t aSinVal1,
q31_t aCosVal2,
q31_t aSinVal2,
q31_t aCosVal3,
q31_t aSinVal3 
)
inlinestatic

Variable Documentation

◆ tpt_bitrev_table_1024

const uint16_t tpt_bitrev_table_1024[TPT_BITREV_TABLE_1024_LENGTH]
extern

◆ tpt_bitrev_table_128

const uint16_t tpt_bitrev_table_128[TPT_BITREV_TABLE_128_LENGTH]
extern

◆ tpt_bitrev_table_16

const uint16_t tpt_bitrev_table_16[TPT_BITREV_TABLE_16_LENGTH]
extern

◆ tpt_bitrev_table_2048

const uint16_t tpt_bitrev_table_2048[TPT_BITREV_TABLE_2048_LENGTH]
extern

◆ tpt_bitrev_table_256

const uint16_t tpt_bitrev_table_256[TPT_BITREV_TABLE_256_LENGTH]
extern

◆ tpt_bitrev_table_32

const uint16_t tpt_bitrev_table_32[TPT_BITREV_TABLE_32_LENGTH]
extern

◆ tpt_bitrev_table_4096

const uint16_t tpt_bitrev_table_4096[TPT_BITREV_TABLE_4096_LENGTH]
extern

◆ tpt_bitrev_table_512

const uint16_t tpt_bitrev_table_512[TPT_BITREV_TABLE_512_LENGTH]
extern

◆ tpt_bitrev_table_64

const uint16_t tpt_bitrev_table_64[TPT_BITREV_TABLE_64_LENGTH]
extern

◆ tpt_cos_table_f32

const f32_t tpt_cos_table_f32[COS_TABLE_F32_N+1]
extern

◆ tpt_cos_table_f64

const f64_t tpt_cos_table_f64[COS_TABLE_F64_N+1]
extern

◆ tpt_cos_table_q15

const q15_t tpt_cos_table_q15[COS_TABLE_Q15_N+1]
extern

◆ tpt_cos_table_q31

const q31_t tpt_cos_table_q31[COS_TABLE_Q31_N+1]
extern

◆ tpt_tan_table_f32

const f32_t tpt_tan_table_f32[TAN_TABLE_F32_N]
extern

◆ tpt_tan_table_f64

const f64_t tpt_tan_table_f64[TAN_TABLE_F64_N]
extern

◆ tpt_tan_table_q15

const q15_t tpt_tan_table_q15[TAN_TABLE_Q15_N]
extern

◆ tpt_tan_table_q31

const q31_t tpt_tan_table_q31[TAN_TABLE_Q31_N]
extern