Buffer Sizes for RFFT

int32_t riscv_rfft_tmp_buffer_size(riscv_math_datatype dt, uint32_t nb_samples)
int32_t riscv_rfft_output_buffer_size(riscv_math_datatype dt, uint32_t nb_samples)
int32_t riscv_rifft_input_buffer_size(riscv_math_datatype dt, uint32_t nb_samples)
group Buffer Sizes for RFFT

end of CFFTBuffers group

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.

Note

0 means not applicable (temporary buffer not needed)

Note

-1 means error : configuration not supported

Parameters:
  • dt[in] Data type of the input data

  • nb_samples[in] Number of samples in the input data

Returns:

Length in datatype elements (real numbers) for the temporary buffer

int32_t riscv_rfft_output_buffer_size(riscv_math_datatype dt, uint32_t nb_samples)

Calculate required length for the output buffer.

Note

0 means not applicable (temporary buffer not needed)

Note

-1 means error : configuration not supported

Parameters:
  • dt[in] Data type of the input data

  • nb_samples[in] Number of samples in the input data

Returns:

Length in datatype elements (real numbers) for the output buffer

int32_t riscv_rifft_input_buffer_size(riscv_math_datatype dt, uint32_t nb_samples)

Calculate required length for the input buffer.

Note

0 means not applicable (temporary buffer not needed)

Note

-1 means error : configuration not supported

Parameters:
  • dt[in] Data type of the input data

  • nb_samples[in] RFFT length in samples

Returns:

Length in datatype elements (real numbers) for the input buffer