CMSIS-DSP  
CMSIS DSP Software Library
arm_common_tables.h File Reference

Macros

#define twiddleCoef   twiddleCoef_4096
 
#define ARMBITREVINDEXTABLEF64_16_TABLE_LENGTH   ((uint16_t)12)
 
#define ARMBITREVINDEXTABLEF64_32_TABLE_LENGTH   ((uint16_t)24)
 
#define ARMBITREVINDEXTABLEF64_64_TABLE_LENGTH   ((uint16_t)56)
 
#define ARMBITREVINDEXTABLEF64_128_TABLE_LENGTH   ((uint16_t)112)
 
#define ARMBITREVINDEXTABLEF64_256_TABLE_LENGTH   ((uint16_t)240)
 
#define ARMBITREVINDEXTABLEF64_512_TABLE_LENGTH   ((uint16_t)480)
 
#define ARMBITREVINDEXTABLEF64_1024_TABLE_LENGTH   ((uint16_t)992)
 
#define ARMBITREVINDEXTABLEF64_2048_TABLE_LENGTH   ((uint16_t)1984)
 
#define ARMBITREVINDEXTABLEF64_4096_TABLE_LENGTH   ((uint16_t)4032)
 
#define ARMBITREVINDEXTABLE_16_TABLE_LENGTH   ((uint16_t)20)
 
#define ARMBITREVINDEXTABLE_32_TABLE_LENGTH   ((uint16_t)48)
 
#define ARMBITREVINDEXTABLE_64_TABLE_LENGTH   ((uint16_t)56)
 
#define ARMBITREVINDEXTABLE_128_TABLE_LENGTH   ((uint16_t)208)
 
#define ARMBITREVINDEXTABLE_256_TABLE_LENGTH   ((uint16_t)440)
 
#define ARMBITREVINDEXTABLE_512_TABLE_LENGTH   ((uint16_t)448)
 
#define ARMBITREVINDEXTABLE_1024_TABLE_LENGTH   ((uint16_t)1800)
 
#define ARMBITREVINDEXTABLE_2048_TABLE_LENGTH   ((uint16_t)3808)
 
#define ARMBITREVINDEXTABLE_4096_TABLE_LENGTH   ((uint16_t)4032)
 
#define ARMBITREVINDEXTABLE_FIXED_16_TABLE_LENGTH   ((uint16_t)12)
 
#define ARMBITREVINDEXTABLE_FIXED_32_TABLE_LENGTH   ((uint16_t)24)
 
#define ARMBITREVINDEXTABLE_FIXED_64_TABLE_LENGTH   ((uint16_t)56)
 
#define ARMBITREVINDEXTABLE_FIXED_128_TABLE_LENGTH   ((uint16_t)112)
 
#define ARMBITREVINDEXTABLE_FIXED_256_TABLE_LENGTH   ((uint16_t)240)
 
#define ARMBITREVINDEXTABLE_FIXED_512_TABLE_LENGTH   ((uint16_t)480)
 
#define ARMBITREVINDEXTABLE_FIXED_1024_TABLE_LENGTH   ((uint16_t)992)
 
#define ARMBITREVINDEXTABLE_FIXED_2048_TABLE_LENGTH   ((uint16_t)1984)
 
#define ARMBITREVINDEXTABLE_FIXED_4096_TABLE_LENGTH   ((uint16_t)4032)
 

Variables

const uint16_t armBitRevTable [1024]
 Table for bit reversal process. More...
 
const uint64_t twiddleCoefF64_16 [32]
 Double Precision Floating-point Twiddle factors Table Generation. More...
 
const uint64_t twiddleCoefF64_32 [64]
 
const uint64_t twiddleCoefF64_64 [128]
 
const uint64_t twiddleCoefF64_128 [256]
 
const uint64_t twiddleCoefF64_256 [512]
 
const uint64_t twiddleCoefF64_512 [1024]
 
const uint64_t twiddleCoefF64_1024 [2048]
 
const uint64_t twiddleCoefF64_2048 [4096]
 
const uint64_t twiddleCoefF64_4096 [8192]
 
const float32_t twiddleCoef_16 [32]
 
const float32_t twiddleCoef_32 [64]
 
const float32_t twiddleCoef_64 [128]
 
const float32_t twiddleCoef_128 [256]
 
const float32_t twiddleCoef_256 [512]
 
const float32_t twiddleCoef_512 [1024]
 
const float32_t twiddleCoef_1024 [2048]
 
const float32_t twiddleCoef_2048 [4096]
 
const float32_t twiddleCoef_4096 [8192]
 
const q31_t twiddleCoef_16_q31 [24]
 Q31 Twiddle factors Table. More...
 
const q31_t twiddleCoef_32_q31 [48]
 
const q31_t twiddleCoef_64_q31 [96]
 
const q31_t twiddleCoef_128_q31 [192]
 
const q31_t twiddleCoef_256_q31 [384]
 
const q31_t twiddleCoef_512_q31 [768]
 
const q31_t twiddleCoef_1024_q31 [1536]
 
const q31_t twiddleCoef_2048_q31 [3072]
 
const q31_t twiddleCoef_4096_q31 [6144]
 
const q15_t twiddleCoef_16_q15 [24]
 q15 Twiddle factors Table More...
 
const q15_t twiddleCoef_32_q15 [48]
 
const q15_t twiddleCoef_64_q15 [96]
 
const q15_t twiddleCoef_128_q15 [192]
 
const q15_t twiddleCoef_256_q15 [384]
 
const q15_t twiddleCoef_512_q15 [768]
 
const q15_t twiddleCoef_1024_q15 [1536]
 
const q15_t twiddleCoef_2048_q15 [3072]
 
const q15_t twiddleCoef_4096_q15 [6144]
 
const uint64_t twiddleCoefF64_rfft_32 [32]
 
const uint64_t twiddleCoefF64_rfft_64 [64]
 
const uint64_t twiddleCoefF64_rfft_128 [128]
 
const uint64_t twiddleCoefF64_rfft_256 [256]
 
const uint64_t twiddleCoefF64_rfft_512 [512]
 
const uint64_t twiddleCoefF64_rfft_1024 [1024]
 
const uint64_t twiddleCoefF64_rfft_2048 [2048]
 
const uint64_t twiddleCoefF64_rfft_4096 [4096]
 
const float32_t twiddleCoef_rfft_32 [32]
 
const float32_t twiddleCoef_rfft_64 [64]
 
const float32_t twiddleCoef_rfft_128 [128]
 
const float32_t twiddleCoef_rfft_256 [256]
 
const float32_t twiddleCoef_rfft_512 [512]
 
const float32_t twiddleCoef_rfft_1024 [1024]
 
const float32_t twiddleCoef_rfft_2048 [2048]
 
const float32_t twiddleCoef_rfft_4096 [4096]
 
const uint16_t armBitRevIndexTableF64_16 [((uint16_t) 12)]
 
const uint16_t armBitRevIndexTableF64_32 [((uint16_t) 24)]
 
const uint16_t armBitRevIndexTableF64_64 [((uint16_t) 56)]
 
const uint16_t armBitRevIndexTableF64_128 [((uint16_t) 112)]
 
const uint16_t armBitRevIndexTableF64_256 [((uint16_t) 240)]
 
const uint16_t armBitRevIndexTableF64_512 [((uint16_t) 480)]
 
const uint16_t armBitRevIndexTableF64_1024 [((uint16_t) 992)]
 
const uint16_t armBitRevIndexTableF64_2048 [((uint16_t) 1984)]
 
const uint16_t armBitRevIndexTableF64_4096 [((uint16_t) 4032)]
 
const uint16_t armBitRevIndexTable16 [((uint16_t) 20)]
 
const uint16_t armBitRevIndexTable32 [((uint16_t) 48)]
 
const uint16_t armBitRevIndexTable64 [((uint16_t) 56)]
 
const uint16_t armBitRevIndexTable128 [((uint16_t) 208)]
 
const uint16_t armBitRevIndexTable256 [((uint16_t) 440)]
 
const uint16_t armBitRevIndexTable512 [((uint16_t) 448)]
 
const uint16_t armBitRevIndexTable1024 [((uint16_t) 1800)]
 
const uint16_t armBitRevIndexTable2048 [((uint16_t) 3808)]
 
const uint16_t armBitRevIndexTable4096 [((uint16_t) 4032)]
 
const uint16_t armBitRevIndexTable_fixed_16 [((uint16_t) 12)]
 
const uint16_t armBitRevIndexTable_fixed_32 [((uint16_t) 24)]
 
const uint16_t armBitRevIndexTable_fixed_64 [((uint16_t) 56)]
 
const uint16_t armBitRevIndexTable_fixed_128 [((uint16_t) 112)]
 
const uint16_t armBitRevIndexTable_fixed_256 [((uint16_t) 240)]
 
const uint16_t armBitRevIndexTable_fixed_512 [((uint16_t) 480)]
 
const uint16_t armBitRevIndexTable_fixed_1024 [((uint16_t) 992)]
 
const uint16_t armBitRevIndexTable_fixed_2048 [((uint16_t) 1984)]
 
const uint16_t armBitRevIndexTable_fixed_4096 [((uint16_t) 4032)]
 
const float32_t realCoefA [8192]
 
const float32_t realCoefB [8192]
 
const q31_t realCoefAQ31 [8192]
 
const q31_t realCoefBQ31 [8192]
 
const q15_t realCoefAQ15 [8192]
 
const q15_t realCoefBQ15 [8192]
 
const float32_t Weights_128 [256]
 Weights Table. More...
 
const float32_t cos_factors_128 [128]
 
const float32_t Weights_512 [1024]
 
const float32_t cos_factors_512 [512]
 
const float32_t Weights_2048 [4096]
 
const float32_t cos_factors_2048 [2048]
 
const float32_t Weights_8192 [16384]
 
const float32_t cos_factors_8192 [8192]
 
const q15_t WeightsQ15_128 [256]
 Weights Table. More...
 
const q15_t cos_factorsQ15_128 [128]
 
const q15_t WeightsQ15_512 [1024]
 
const q15_t cos_factorsQ15_512 [512]
 
const q15_t WeightsQ15_2048 [4096]
 
const q15_t cos_factorsQ15_2048 [2048]
 
const q15_t WeightsQ15_8192 [16384]
 
const q15_t cos_factorsQ15_8192 [8192]
 
const q31_t WeightsQ31_128 [256]
 
const q31_t cos_factorsQ31_128 [128]
 
const q31_t WeightsQ31_512 [1024]
 
const q31_t cos_factorsQ31_512 [512]
 
const q31_t WeightsQ31_2048 [4096]
 
const q31_t cos_factorsQ31_2048 [2048]
 
const q31_t WeightsQ31_8192 [16384]
 
const q31_t cos_factorsQ31_8192 [8192]
 
const q15_t armRecipTableQ15 [64]
 Q15 table for reciprocal. More...
 
const q31_t armRecipTableQ31 [64]
 Q31 table for reciprocal. More...
 
const float32_t sinTable_f32 [512+1]
 
const q31_t sinTable_q31 [512+1]
 
const q15_t sinTable_q15 [512+1]
 
const q31_t sqrt_initial_lut_q31 [32]
 
const q15_t sqrt_initial_lut_q15 [16]
 

Macro Definition Documentation

◆ ARMBITREVINDEXTABLE_1024_TABLE_LENGTH

#define ARMBITREVINDEXTABLE_1024_TABLE_LENGTH   ((uint16_t)1800)

◆ ARMBITREVINDEXTABLE_128_TABLE_LENGTH

#define ARMBITREVINDEXTABLE_128_TABLE_LENGTH   ((uint16_t)208)

◆ ARMBITREVINDEXTABLE_16_TABLE_LENGTH

#define ARMBITREVINDEXTABLE_16_TABLE_LENGTH   ((uint16_t)20)

◆ ARMBITREVINDEXTABLE_2048_TABLE_LENGTH

#define ARMBITREVINDEXTABLE_2048_TABLE_LENGTH   ((uint16_t)3808)

◆ ARMBITREVINDEXTABLE_256_TABLE_LENGTH

#define ARMBITREVINDEXTABLE_256_TABLE_LENGTH   ((uint16_t)440)

◆ ARMBITREVINDEXTABLE_32_TABLE_LENGTH

#define ARMBITREVINDEXTABLE_32_TABLE_LENGTH   ((uint16_t)48)

◆ ARMBITREVINDEXTABLE_4096_TABLE_LENGTH

#define ARMBITREVINDEXTABLE_4096_TABLE_LENGTH   ((uint16_t)4032)

◆ ARMBITREVINDEXTABLE_512_TABLE_LENGTH

#define ARMBITREVINDEXTABLE_512_TABLE_LENGTH   ((uint16_t)448)

◆ ARMBITREVINDEXTABLE_64_TABLE_LENGTH

#define ARMBITREVINDEXTABLE_64_TABLE_LENGTH   ((uint16_t)56)

◆ ARMBITREVINDEXTABLE_FIXED_1024_TABLE_LENGTH

#define ARMBITREVINDEXTABLE_FIXED_1024_TABLE_LENGTH   ((uint16_t)992)

◆ ARMBITREVINDEXTABLE_FIXED_128_TABLE_LENGTH

#define ARMBITREVINDEXTABLE_FIXED_128_TABLE_LENGTH   ((uint16_t)112)

◆ ARMBITREVINDEXTABLE_FIXED_16_TABLE_LENGTH

#define ARMBITREVINDEXTABLE_FIXED_16_TABLE_LENGTH   ((uint16_t)12)

◆ ARMBITREVINDEXTABLE_FIXED_2048_TABLE_LENGTH

#define ARMBITREVINDEXTABLE_FIXED_2048_TABLE_LENGTH   ((uint16_t)1984)

◆ ARMBITREVINDEXTABLE_FIXED_256_TABLE_LENGTH

#define ARMBITREVINDEXTABLE_FIXED_256_TABLE_LENGTH   ((uint16_t)240)

◆ ARMBITREVINDEXTABLE_FIXED_32_TABLE_LENGTH

#define ARMBITREVINDEXTABLE_FIXED_32_TABLE_LENGTH   ((uint16_t)24)

◆ ARMBITREVINDEXTABLE_FIXED_4096_TABLE_LENGTH

#define ARMBITREVINDEXTABLE_FIXED_4096_TABLE_LENGTH   ((uint16_t)4032)

◆ ARMBITREVINDEXTABLE_FIXED_512_TABLE_LENGTH

#define ARMBITREVINDEXTABLE_FIXED_512_TABLE_LENGTH   ((uint16_t)480)

◆ ARMBITREVINDEXTABLE_FIXED_64_TABLE_LENGTH

#define ARMBITREVINDEXTABLE_FIXED_64_TABLE_LENGTH   ((uint16_t)56)

◆ ARMBITREVINDEXTABLEF64_1024_TABLE_LENGTH

#define ARMBITREVINDEXTABLEF64_1024_TABLE_LENGTH   ((uint16_t)992)

◆ ARMBITREVINDEXTABLEF64_128_TABLE_LENGTH

#define ARMBITREVINDEXTABLEF64_128_TABLE_LENGTH   ((uint16_t)112)

◆ ARMBITREVINDEXTABLEF64_16_TABLE_LENGTH

#define ARMBITREVINDEXTABLEF64_16_TABLE_LENGTH   ((uint16_t)12)

◆ ARMBITREVINDEXTABLEF64_2048_TABLE_LENGTH

#define ARMBITREVINDEXTABLEF64_2048_TABLE_LENGTH   ((uint16_t)1984)

◆ ARMBITREVINDEXTABLEF64_256_TABLE_LENGTH

#define ARMBITREVINDEXTABLEF64_256_TABLE_LENGTH   ((uint16_t)240)

◆ ARMBITREVINDEXTABLEF64_32_TABLE_LENGTH

#define ARMBITREVINDEXTABLEF64_32_TABLE_LENGTH   ((uint16_t)24)

◆ ARMBITREVINDEXTABLEF64_4096_TABLE_LENGTH

#define ARMBITREVINDEXTABLEF64_4096_TABLE_LENGTH   ((uint16_t)4032)

◆ ARMBITREVINDEXTABLEF64_512_TABLE_LENGTH

#define ARMBITREVINDEXTABLEF64_512_TABLE_LENGTH   ((uint16_t)480)

◆ ARMBITREVINDEXTABLEF64_64_TABLE_LENGTH

#define ARMBITREVINDEXTABLEF64_64_TABLE_LENGTH   ((uint16_t)56)

◆ twiddleCoef

#define twiddleCoef   twiddleCoef_4096

Variable Documentation

◆ armBitRevIndexTable1024

const uint16_t armBitRevIndexTable1024[((uint16_t) 1800)]
extern

◆ armBitRevIndexTable128

const uint16_t armBitRevIndexTable128[((uint16_t) 208)]
extern

◆ armBitRevIndexTable16

const uint16_t armBitRevIndexTable16[((uint16_t) 20)]
extern

◆ armBitRevIndexTable2048

const uint16_t armBitRevIndexTable2048[((uint16_t) 3808)]
extern

◆ armBitRevIndexTable256

const uint16_t armBitRevIndexTable256[((uint16_t) 440)]
extern

◆ armBitRevIndexTable32

const uint16_t armBitRevIndexTable32[((uint16_t) 48)]
extern

◆ armBitRevIndexTable4096

const uint16_t armBitRevIndexTable4096[((uint16_t) 4032)]
extern

◆ armBitRevIndexTable512

const uint16_t armBitRevIndexTable512[((uint16_t) 448)]
extern

◆ armBitRevIndexTable64

const uint16_t armBitRevIndexTable64[((uint16_t) 56)]
extern

◆ armBitRevIndexTable_fixed_1024

const uint16_t armBitRevIndexTable_fixed_1024[((uint16_t) 992)]
extern

◆ armBitRevIndexTable_fixed_128

const uint16_t armBitRevIndexTable_fixed_128[((uint16_t) 112)]
extern

◆ armBitRevIndexTable_fixed_16

const uint16_t armBitRevIndexTable_fixed_16[((uint16_t) 12)]
extern

◆ armBitRevIndexTable_fixed_2048

const uint16_t armBitRevIndexTable_fixed_2048[((uint16_t) 1984)]
extern

◆ armBitRevIndexTable_fixed_256

const uint16_t armBitRevIndexTable_fixed_256[((uint16_t) 240)]
extern

◆ armBitRevIndexTable_fixed_32

const uint16_t armBitRevIndexTable_fixed_32[((uint16_t) 24)]
extern

◆ armBitRevIndexTable_fixed_4096

const uint16_t armBitRevIndexTable_fixed_4096[((uint16_t) 4032)]
extern

◆ armBitRevIndexTable_fixed_512

const uint16_t armBitRevIndexTable_fixed_512[((uint16_t) 480)]
extern

◆ armBitRevIndexTable_fixed_64

const uint16_t armBitRevIndexTable_fixed_64[((uint16_t) 56)]
extern

◆ armBitRevIndexTableF64_1024

const uint16_t armBitRevIndexTableF64_1024[((uint16_t) 992)]
extern

◆ armBitRevIndexTableF64_128

const uint16_t armBitRevIndexTableF64_128[((uint16_t) 112)]
extern

◆ armBitRevIndexTableF64_16

const uint16_t armBitRevIndexTableF64_16[((uint16_t) 12)]
extern

end of CFFT_CIFFT group

◆ armBitRevIndexTableF64_2048

const uint16_t armBitRevIndexTableF64_2048[((uint16_t) 1984)]
extern

◆ armBitRevIndexTableF64_256

const uint16_t armBitRevIndexTableF64_256[((uint16_t) 240)]
extern

◆ armBitRevIndexTableF64_32

const uint16_t armBitRevIndexTableF64_32[((uint16_t) 24)]
extern

◆ armBitRevIndexTableF64_4096

const uint16_t armBitRevIndexTableF64_4096[((uint16_t) 4032)]
extern

◆ armBitRevIndexTableF64_512

const uint16_t armBitRevIndexTableF64_512[((uint16_t) 480)]
extern

◆ armBitRevIndexTableF64_64

const uint16_t armBitRevIndexTableF64_64[((uint16_t) 56)]
extern

◆ armRecipTableQ15

const q15_t armRecipTableQ15[64]
extern

end of DCT4_IDCT4_Table group

◆ armRecipTableQ31

const q31_t armRecipTableQ31[64]
extern

◆ sinTable_f32

const float32_t sinTable_f32[512+1]
extern
Example code for the generation of the floating-point sine table:
 tableSize = 512;
 for (n = 0; n < (tableSize + 1); n++)
 {
  sinTable[n] = sin(2*PI*n/tableSize);
 }
where PI value is 3.14159265358979

◆ sinTable_q15

const q15_t sinTable_q15[512+1]
extern
Table values are in Q15 (1.15 fixed-point format) and generation is done in three steps. First, generate sin values in floating point:
 tableSize = 512;
 for (n = 0; n < (tableSize + 1); n++)
 {
  sinTable[n] = sin(2*PI*n/tableSize);
 } 
where PI value is 3.14159265358979
Second, convert floating-point to Q15 (Fixed point): (sinTable[i] * pow(2, 15))
Finally, round to the nearest integer value: sinTable[i] += (sinTable[i] > 0 ? 0.5 :-0.5);

◆ sinTable_q31

const q31_t sinTable_q31[512+1]
extern
Table values are in Q31 (1.31 fixed-point format) and generation is done in three steps. First, generate sin values in floating point:
 tableSize = 512;
 for (n = 0; n < (tableSize + 1); n++)
 {
  sinTable[n] = sin(2*PI*n/tableSize);
 } 
where PI value is 3.14159265358979
Second, convert floating-point to Q31 (Fixed point): (sinTable[i] * pow(2, 31))
Finally, round to the nearest integer value: sinTable[i] += (sinTable[i] > 0 ? 0.5 : -0.5);

◆ sqrt_initial_lut_q15

const q15_t sqrt_initial_lut_q15[16]
extern

◆ sqrt_initial_lut_q31

const q31_t sqrt_initial_lut_q31[32]
extern

◆ twiddleCoef_rfft_1024

const float32_t twiddleCoef_rfft_1024[1024]
extern

◆ twiddleCoef_rfft_128

const float32_t twiddleCoef_rfft_128[128]
extern

◆ twiddleCoef_rfft_2048

const float32_t twiddleCoef_rfft_2048[2048]
extern

◆ twiddleCoef_rfft_256

const float32_t twiddleCoef_rfft_256[256]
extern

◆ twiddleCoef_rfft_32

const float32_t twiddleCoef_rfft_32[32]
extern
Example code for Floating-point RFFT Twiddle factors Generation:
TW = exp(pi/2*i-2*pi*i*[0:L/2-1]/L).' 
Real and Imag values are in interleaved fashion

◆ twiddleCoef_rfft_4096

const float32_t twiddleCoef_rfft_4096[4096]
extern

◆ twiddleCoef_rfft_512

const float32_t twiddleCoef_rfft_512[512]
extern

◆ twiddleCoef_rfft_64

const float32_t twiddleCoef_rfft_64[64]
extern

◆ twiddleCoefF64_rfft_1024

const uint64_t twiddleCoefF64_rfft_1024[1024]
extern

◆ twiddleCoefF64_rfft_128

const uint64_t twiddleCoefF64_rfft_128[128]
extern

◆ twiddleCoefF64_rfft_2048

const uint64_t twiddleCoefF64_rfft_2048[2048]
extern

◆ twiddleCoefF64_rfft_256

const uint64_t twiddleCoefF64_rfft_256[256]
extern

◆ twiddleCoefF64_rfft_32

const uint64_t twiddleCoefF64_rfft_32[32]
extern
Example code for Double Precision Floating-point RFFT Twiddle factors Generation:
TW = exp(pi/2*i-2*pi*i*[0:L/2-1]/L).' 
Real and Imag values are in interleaved fashion

◆ twiddleCoefF64_rfft_4096

const uint64_t twiddleCoefF64_rfft_4096[4096]
extern

◆ twiddleCoefF64_rfft_512

const uint64_t twiddleCoefF64_rfft_512[512]
extern

◆ twiddleCoefF64_rfft_64

const uint64_t twiddleCoefF64_rfft_64[64]
extern