NMSIS-DSP  Version 1.5.0
NMSIS DSP Software Library

Functions

int32_t riscv_cfft_tmp_buffer_size (riscv_math_datatype dt, uint32_t nb_samples)
 Calculate required length for the temporary buffer. More...
 
int32_t riscv_cfft_output_buffer_size (riscv_math_datatype dt, uint32_t nb_samples)
 Calculate required length for the output buffer. More...
 
int32_t riscv_cifft_output_buffer_size (riscv_math_datatype dt, uint32_t nb_samples)
 Calculate required length for the output buffer. More...
 

Detailed Description

Function Documentation

◆ riscv_cfft_output_buffer_size()

int32_t riscv_cfft_output_buffer_size ( riscv_math_datatype  dt,
uint32_t  nb_samples 
)

Calculate required length for the output buffer.

Parameters
[in]dtData type of the input data
[in]nb_samplesNumber of samples in the input data
Returns
Length in datatype elements (real numbers) for the output buffer
Note
0 means not applicable (temporary buffer not needed)
-1 means error : configuration not supported

◆ riscv_cfft_tmp_buffer_size()

int32_t riscv_cfft_tmp_buffer_size ( riscv_math_datatype  dt,
uint32_t  nb_samples 
)

Calculate required length for the temporary buffer.

Parameters
[in]dtData type of the input data
[in]nb_samplesNumber of samples
Returns
Length in datatype elements (real numbers) for the temporary buffer
Note
0 means not applicable (temporary buffer not needed)
-1 means error : configuration not supported

nb_samples is the CFFT length, also means how many complex numbers are in the input buffer nb_samples * 2U is the real numbers, also the real data length nb_samples * 4U is needed for double buffer.

◆ riscv_cifft_output_buffer_size()

int32_t riscv_cifft_output_buffer_size ( riscv_math_datatype  dt,
uint32_t  nb_samples 
)

Calculate required length for the output buffer.

Parameters
[in]dtData type of the input data
[in]nb_samplesNumber of samples in the input data
Returns
Length in datatype elements (real numbers) for the output buffer
Note
0 means not applicable (temporary buffer not needed)
-1 means error : configuration not supported