NMSIS-DSP  Version 1.5.0
NMSIS DSP Software Library

Functions

int32_t riscv_rfft_tmp_buffer_size (riscv_math_datatype dt, uint32_t nb_samples)
 Calculate required length for the temporary buffer for both RFFT and RIFFT. More...
 
int32_t riscv_rfft_output_buffer_size (riscv_math_datatype dt, uint32_t nb_samples)
 Calculate required length for the output buffer. More...
 
int32_t riscv_rifft_input_buffer_size (riscv_math_datatype dt, uint32_t nb_samples)
 Calculate required length for the input buffer. More...
 

Detailed Description

end of CFFTBuffers group

Function Documentation

◆ riscv_rfft_output_buffer_size()

int32_t riscv_rfft_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_rfft_tmp_buffer_size()

int32_t riscv_rfft_tmp_buffer_size ( riscv_math_datatype  dt,
uint32_t  nb_samples 
)

Calculate required length for the temporary buffer for both RFFT and RIFFT.

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 temporary buffer
Note
0 means not applicable (temporary buffer not needed)
-1 means error : configuration not supported

nb_samples is the RFFT length, also means how many real numbers are in the input buffer nb_samples * 2U is the buffer length used for CFFT And there is an extra buffer needed for temp result

◆ riscv_rifft_input_buffer_size()

int32_t riscv_rifft_input_buffer_size ( riscv_math_datatype  dt,
uint32_t  nb_samples 
)

Calculate required length for the input buffer.

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