Converting C sources to use `const` where appropriate using regular expressions. Fix typos

pull/19/head
Torfinn Berset 7 years ago
parent 35e58d27d8
commit b54e1f9bf1

@ -1,7 +1,7 @@
#include "ref.h" #include "ref.h"
void ref_abs_f32( void ref_abs_f32(
float32_t * pSrc, const float32_t * pSrc,
float32_t * pDst, float32_t * pDst,
uint32_t blockSize) uint32_t blockSize)
{ {

@ -1,8 +1,8 @@
#include "ref.h" #include "ref.h"
void ref_add_f32( void ref_add_f32(
float32_t * pSrcA, const float32_t * pSrcA,
float32_t * pSrcB, const float32_t * pSrcB,
float32_t * pDst, float32_t * pDst,
uint32_t blockSize) uint32_t blockSize)
{ {

@ -1,8 +1,8 @@
#include "ref.h" #include "ref.h"
void ref_dot_prod_f32( void ref_dot_prod_f32(
float32_t * pSrcA, const float32_t * pSrcA,
float32_t * pSrcB, const float32_t * pSrcB,
uint32_t blockSize, uint32_t blockSize,
float32_t * result) float32_t * result)
{ {

@ -1,8 +1,8 @@
#include "ref.h" #include "ref.h"
void ref_mult_f32( void ref_mult_f32(
float32_t * pSrcA, const float32_t * pSrcA,
float32_t * pSrcB, const float32_t * pSrcB,
float32_t * pDst, float32_t * pDst,
uint32_t blockSize) uint32_t blockSize)
{ {

@ -1,7 +1,7 @@
#include "ref.h" #include "ref.h"
void ref_negate_f32( void ref_negate_f32(
float32_t * pSrc, const float32_t * pSrc,
float32_t * pDst, float32_t * pDst,
uint32_t blockSize) uint32_t blockSize)
{ {

@ -1,7 +1,7 @@
#include "ref.h" #include "ref.h"
void ref_offset_f32( void ref_offset_f32(
float32_t * pSrc, const float32_t * pSrc,
float32_t offset, float32_t offset,
float32_t * pDst, float32_t * pDst,
uint32_t blockSize) uint32_t blockSize)

@ -1,7 +1,7 @@
#include "ref.h" #include "ref.h"
void ref_scale_f32( void ref_scale_f32(
float32_t * pSrc, const float32_t * pSrc,
float32_t scale, float32_t scale,
float32_t * pDst, float32_t * pDst,
uint32_t blockSize) uint32_t blockSize)

@ -1,8 +1,8 @@
#include "ref.h" #include "ref.h"
void ref_sub_f32( void ref_sub_f32(
float32_t * pSrcA, const float32_t * pSrcA,
float32_t * pSrcB, const float32_t * pSrcB,
float32_t * pDst, float32_t * pDst,
uint32_t blockSize) uint32_t blockSize)
{ {

@ -1,7 +1,7 @@
#include "ref.h" #include "ref.h"
void ref_cmplx_conj_f32( void ref_cmplx_conj_f32(
float32_t * pSrc, const float32_t * pSrc,
float32_t * pDst, float32_t * pDst,
uint32_t numSamples) uint32_t numSamples)
{ {

@ -1,8 +1,8 @@
#include "ref.h" #include "ref.h"
void ref_cmplx_dot_prod_f32( void ref_cmplx_dot_prod_f32(
float32_t * pSrcA, const float32_t * pSrcA,
float32_t * pSrcB, const float32_t * pSrcB,
uint32_t numSamples, uint32_t numSamples,
float32_t * realResult, float32_t * realResult,
float32_t * imagResult) float32_t * imagResult)

@ -1,7 +1,7 @@
#include "ref.h" #include "ref.h"
void ref_cmplx_mag_f32( void ref_cmplx_mag_f32(
float32_t * pSrc, const float32_t * pSrc,
float32_t * pDst, float32_t * pDst,
uint32_t numSamples) uint32_t numSamples)
{ {

@ -1,7 +1,7 @@
#include "ref.h" #include "ref.h"
void ref_cmplx_mag_squared_f32( void ref_cmplx_mag_squared_f32(
float32_t * pSrc, const float32_t * pSrc,
float32_t * pDst, float32_t * pDst,
uint32_t numSamples) uint32_t numSamples)
{ {

@ -1,8 +1,8 @@
#include "ref.h" #include "ref.h"
void ref_cmplx_mult_cmplx_f32( void ref_cmplx_mult_cmplx_f32(
float32_t * pSrcA, const float32_t * pSrcA,
float32_t * pSrcB, const float32_t * pSrcB,
float32_t * pDst, float32_t * pDst,
uint32_t numSamples) uint32_t numSamples)
{ {

@ -1,8 +1,8 @@
#include "ref.h" #include "ref.h"
void ref_cmplx_mult_real_f32( void ref_cmplx_mult_real_f32(
float32_t * pSrcCmplx, const float32_t * pSrcCmplx,
float32_t * pSrcReal, const float32_t * pSrcReal,
float32_t * pCmplxDst, float32_t * pCmplxDst,
uint32_t numSamples) uint32_t numSamples)
{ {

@ -2,7 +2,7 @@
void ref_biquad_cascade_df2T_f32( void ref_biquad_cascade_df2T_f32(
const arm_biquad_cascade_df2T_instance_f32 * S, const arm_biquad_cascade_df2T_instance_f32 * S,
float32_t * pSrc, const float32_t * pSrc,
float32_t * pDst, float32_t * pDst,
uint32_t blockSize) uint32_t blockSize)
{ {
@ -72,7 +72,7 @@ void ref_biquad_cascade_df2T_f32(
void ref_biquad_cascade_stereo_df2T_f32( void ref_biquad_cascade_stereo_df2T_f32(
const arm_biquad_cascade_stereo_df2T_instance_f32 * S, const arm_biquad_cascade_stereo_df2T_instance_f32 * S,
float32_t * pSrc, const float32_t * pSrc,
float32_t * pDst, float32_t * pDst,
uint32_t blockSize) uint32_t blockSize)
{ {
@ -220,7 +220,7 @@ void ref_biquad_cascade_df2T_f64(
void ref_biquad_cascade_df1_f32( void ref_biquad_cascade_df1_f32(
const arm_biquad_casd_df1_inst_f32 * S, const arm_biquad_casd_df1_inst_f32 * S,
float32_t * pSrc, const float32_t * pSrc,
float32_t * pDst, float32_t * pDst,
uint32_t blockSize) uint32_t blockSize)
{ {
@ -309,7 +309,7 @@ void ref_biquad_cas_df1_32x64_q31(
q31_t *pIn = pSrc; /* input pointer initialization */ q31_t *pIn = pSrc; /* input pointer initialization */
q31_t *pOut = pDst; /* output pointer initialization */ q31_t *pOut = pDst; /* output pointer initialization */
q63_t *pState = S->pState; /* state pointer initialization */ q63_t *pState = S->pState; /* state pointer initialization */
q31_t *pCoeffs = S->pCoeffs; /* coeff pointer initialization */ const q31_t *pCoeffs = S->pCoeffs; /* coeff pointer initialization */
q63_t acc; /* accumulator */ q63_t acc; /* accumulator */
q31_t Xn1, Xn2; /* Input Filter state variables */ q31_t Xn1, Xn2; /* Input Filter state variables */
q63_t Yn1, Yn2; /* Output Filter state variables */ q63_t Yn1, Yn2; /* Output Filter state variables */
@ -401,7 +401,7 @@ void ref_biquad_cascade_df1_q31(
q31_t *pIn = pSrc; /* input pointer initialization */ q31_t *pIn = pSrc; /* input pointer initialization */
q31_t *pOut = pDst; /* output pointer initialization */ q31_t *pOut = pDst; /* output pointer initialization */
q31_t *pState = S->pState; /* pState pointer initialization */ q31_t *pState = S->pState; /* pState pointer initialization */
q31_t *pCoeffs = S->pCoeffs; /* coeff pointer initialization */ const q31_t *pCoeffs = S->pCoeffs; /* coeff pointer initialization */
q31_t Xn1, Xn2, Yn1, Yn2; /* Filter state variables */ q31_t Xn1, Xn2, Yn1, Yn2; /* Filter state variables */
q31_t b0, b1, b2, a1, a2; /* Filter coefficients */ q31_t b0, b1, b2, a1, a2; /* Filter coefficients */
q31_t Xn; /* temporary input */ q31_t Xn; /* temporary input */
@ -496,7 +496,7 @@ void ref_biquad_cascade_df1_fast_q31(
q31_t *pIn = pSrc; /* input pointer initialization */ q31_t *pIn = pSrc; /* input pointer initialization */
q31_t *pOut = pDst; /* output pointer initialization */ q31_t *pOut = pDst; /* output pointer initialization */
q31_t *pState = S->pState; /* pState pointer initialization */ q31_t *pState = S->pState; /* pState pointer initialization */
q31_t *pCoeffs = S->pCoeffs; /* coeff pointer initialization */ const q31_t *pCoeffs = S->pCoeffs; /* coeff pointer initialization */
q31_t Xn; /* temporary input */ q31_t Xn; /* temporary input */
int32_t shift = (int32_t) S->postShift + 1; /* Shift to be applied to the output */ int32_t shift = (int32_t) S->postShift + 1; /* Shift to be applied to the output */
uint32_t sample, stage = S->numStages; /* loop counters */ uint32_t sample, stage = S->numStages; /* loop counters */
@ -576,7 +576,7 @@ void ref_biquad_cascade_df1_fast_q15(
q31_t acc; /* Accumulator */ q31_t acc; /* Accumulator */
int32_t shift = (15 - (int32_t) S->postShift); /* Post shift */ int32_t shift = (15 - (int32_t) S->postShift); /* Post shift */
q15_t *pState = S->pState; /* State pointer */ q15_t *pState = S->pState; /* State pointer */
q15_t *pCoeffs = S->pCoeffs; /* Coefficient pointer */ const q15_t *pCoeffs = S->pCoeffs; /* Coefficient pointer */
uint32_t sample, stage = (uint32_t) S->numStages; /* Stage loop counter */ uint32_t sample, stage = (uint32_t) S->numStages; /* Stage loop counter */
do do
@ -651,7 +651,7 @@ void ref_biquad_cascade_df1_q15(
q63_t acc; /* Accumulator */ q63_t acc; /* Accumulator */
int32_t shift = (15 - (int32_t) S->postShift); /* Post shift */ int32_t shift = (15 - (int32_t) S->postShift); /* Post shift */
q15_t *pState = S->pState; /* State pointer */ q15_t *pState = S->pState; /* State pointer */
q15_t *pCoeffs = S->pCoeffs; /* Coefficient pointer */ const q15_t *pCoeffs = S->pCoeffs; /* Coefficient pointer */
uint32_t sample, stage = (uint32_t) S->numStages; /* Stage loop counter */ uint32_t sample, stage = (uint32_t) S->numStages; /* Stage loop counter */
do do

@ -1,9 +1,9 @@
#include "ref.h" #include "ref.h"
void ref_conv_f32( void ref_conv_f32(
float32_t * pSrcA, const float32_t * pSrcA,
uint32_t srcALen, uint32_t srcALen,
float32_t * pSrcB, const float32_t * pSrcB,
uint32_t srcBLen, uint32_t srcBLen,
float32_t * pDst) float32_t * pDst)
{ {
@ -32,9 +32,9 @@ void ref_conv_f32(
} }
arm_status ref_conv_partial_f32( arm_status ref_conv_partial_f32(
float32_t * pSrcA, const float32_t * pSrcA,
uint32_t srcALen, uint32_t srcALen,
float32_t * pSrcB, const float32_t * pSrcB,
uint32_t srcBLen, uint32_t srcBLen,
float32_t * pDst, float32_t * pDst,
uint32_t firstIndex, uint32_t firstIndex,

@ -1,9 +1,9 @@
#include "ref.h" #include "ref.h"
void ref_correlate_f32( void ref_correlate_f32(
float32_t * pSrcA, const float32_t * pSrcA,
uint32_t srcALen, uint32_t srcALen,
float32_t * pSrcB, const float32_t * pSrcB,
uint32_t srcBLen, uint32_t srcBLen,
float32_t * pDst) float32_t * pDst)
{ {
@ -91,8 +91,8 @@ void ref_correlate_q31(
uint32_t srcBLen, uint32_t srcBLen,
q31_t * pDst) q31_t * pDst)
{ {
q31_t *pIn1 = pSrcA; /* inputA pointer */ const q31_t *pIn1 = pSrcA; /* inputA pointer */
q31_t *pIn2 = pSrcB + (srcBLen - 1U); /* inputB pointer */ const q31_t *pIn2 = pSrcB + (srcBLen - 1U); /* inputB pointer */
q63_t sum; /* Accumulators */ q63_t sum; /* Accumulators */
uint32_t i = 0U, j; /* loop counters */ uint32_t i = 0U, j; /* loop counters */
uint32_t inv = 0U; /* Reverse order flag */ uint32_t inv = 0U; /* Reverse order flag */
@ -162,8 +162,8 @@ void ref_correlate_fast_q31(
uint32_t srcBLen, uint32_t srcBLen,
q31_t * pDst) q31_t * pDst)
{ {
q31_t *pIn1 = pSrcA; /* inputA pointer */ const q31_t *pIn1 = pSrcA; /* inputA pointer */
q31_t *pIn2 = pSrcB + (srcBLen - 1U); /* inputB pointer */ const q31_t *pIn2 = pSrcB + (srcBLen - 1U); /* inputB pointer */
q63_t sum; /* Accumulators */ q63_t sum; /* Accumulators */
uint32_t i = 0U, j; /* loop counters */ uint32_t i = 0U, j; /* loop counters */
uint32_t inv = 0U; /* Reverse order flag */ uint32_t inv = 0U; /* Reverse order flag */
@ -234,8 +234,8 @@ void ref_correlate_q15(
uint32_t srcBLen, uint32_t srcBLen,
q15_t * pDst) q15_t * pDst)
{ {
q15_t *pIn1 = pSrcA; /* inputA pointer */ const q15_t *pIn1 = pSrcA; /* inputA pointer */
q15_t *pIn2 = pSrcB + (srcBLen - 1U); /* inputB pointer */ const q15_t *pIn2 = pSrcB + (srcBLen - 1U); /* inputB pointer */
q63_t sum; /* Accumulators */ q63_t sum; /* Accumulators */
uint32_t i = 0U, j; /* loop counters */ uint32_t i = 0U, j; /* loop counters */
uint32_t inv = 0U; /* Reverse order flag */ uint32_t inv = 0U; /* Reverse order flag */
@ -305,8 +305,8 @@ void ref_correlate_fast_q15(
uint32_t srcBLen, uint32_t srcBLen,
q15_t * pDst) q15_t * pDst)
{ {
q15_t *pIn1 = pSrcA; /* inputA pointer */ const q15_t *pIn1 = pSrcA; /* inputA pointer */
q15_t *pIn2 = pSrcB + (srcBLen - 1U); /* inputB pointer */ const q15_t *pIn2 = pSrcB + (srcBLen - 1U); /* inputB pointer */
q63_t sum; /* Accumulators */ q63_t sum; /* Accumulators */
uint32_t i = 0U, j; /* loop counters */ uint32_t i = 0U, j; /* loop counters */
uint32_t inv = 0U; /* Reverse order flag */ uint32_t inv = 0U; /* Reverse order flag */
@ -377,8 +377,8 @@ void ref_correlate_fast_opt_q15(
q15_t * pDst, q15_t * pDst,
q15_t * pScratch) q15_t * pScratch)
{ {
q15_t *pIn1 = pSrcA; /* inputA pointer */ const q15_t *pIn1 = pSrcA; /* inputA pointer */
q15_t *pIn2 = pSrcB + (srcBLen - 1U); /* inputB pointer */ const q15_t *pIn2 = pSrcB + (srcBLen - 1U); /* inputB pointer */
q31_t sum; /* Accumulators */ q31_t sum; /* Accumulators */
uint32_t i = 0U, j; /* loop counters */ uint32_t i = 0U, j; /* loop counters */
uint32_t inv = 0U; /* Reverse order flag */ uint32_t inv = 0U; /* Reverse order flag */
@ -448,8 +448,8 @@ void ref_correlate_q7(
uint32_t srcBLen, uint32_t srcBLen,
q7_t * pDst) q7_t * pDst)
{ {
q7_t *pIn1 = pSrcA; /* inputA pointer */ const q7_t *pIn1 = pSrcA; /* inputA pointer */
q7_t *pIn2 = pSrcB + (srcBLen - 1U); /* inputB pointer */ const q7_t *pIn2 = pSrcB + (srcBLen - 1U); /* inputB pointer */
q31_t sum; /* Accumulator */ q31_t sum; /* Accumulator */
uint32_t i = 0U, j; /* loop counters */ uint32_t i = 0U, j; /* loop counters */
uint32_t inv = 0U; /* Reverse order flag */ uint32_t inv = 0U; /* Reverse order flag */

@ -2,7 +2,7 @@
void ref_fir_f32( void ref_fir_f32(
const arm_fir_instance_f32 * S, const arm_fir_instance_f32 * S,
float32_t * pSrc, const float32_t * pSrc,
float32_t * pDst, float32_t * pDst,
uint32_t blockSize) uint32_t blockSize)
{ {
@ -61,7 +61,7 @@ void ref_fir_q31(
uint32_t blockSize) uint32_t blockSize)
{ {
q31_t *pState = S->pState; /* State pointer */ q31_t *pState = S->pState; /* State pointer */
q31_t *pCoeffs = S->pCoeffs; /* Coefficient pointer */ const q31_t *pCoeffs = S->pCoeffs; /* Coefficient pointer */
q31_t *pStateCurnt; /* Points to the current sample of the state */ q31_t *pStateCurnt; /* Points to the current sample of the state */
uint32_t numTaps = S->numTaps; /* Number of filter coefficients in the filter */ uint32_t numTaps = S->numTaps; /* Number of filter coefficients in the filter */
uint32_t i; /* Loop counters */ uint32_t i; /* Loop counters */
@ -115,7 +115,7 @@ void ref_fir_fast_q31(
uint32_t blockSize) uint32_t blockSize)
{ {
q31_t *pState = S->pState; /* State pointer */ q31_t *pState = S->pState; /* State pointer */
q31_t *pCoeffs = S->pCoeffs; /* Coefficient pointer */ const q31_t *pCoeffs = S->pCoeffs; /* Coefficient pointer */
q31_t *pStateCurnt; /* Points to the current sample of the state */ q31_t *pStateCurnt; /* Points to the current sample of the state */
uint32_t numTaps = S->numTaps; /* Number of filter coefficients in the filter */ uint32_t numTaps = S->numTaps; /* Number of filter coefficients in the filter */
uint32_t i; /* Loop counters */ uint32_t i; /* Loop counters */
@ -169,7 +169,7 @@ void ref_fir_q15(
uint32_t blockSize) uint32_t blockSize)
{ {
q15_t *pState = S->pState; /* State pointer */ q15_t *pState = S->pState; /* State pointer */
q15_t *pCoeffs = S->pCoeffs; /* Coefficient pointer */ const q15_t *pCoeffs = S->pCoeffs; /* Coefficient pointer */
q15_t *pStateCurnt; /* Points to the current sample of the state */ q15_t *pStateCurnt; /* Points to the current sample of the state */
uint32_t numTaps = S->numTaps; /* Number of filter coefficients in the filter */ uint32_t numTaps = S->numTaps; /* Number of filter coefficients in the filter */
uint32_t i; /* Loop counters */ uint32_t i; /* Loop counters */
@ -223,7 +223,7 @@ void ref_fir_fast_q15(
uint32_t blockSize) uint32_t blockSize)
{ {
q15_t *pState = S->pState; /* State pointer */ q15_t *pState = S->pState; /* State pointer */
q15_t *pCoeffs = S->pCoeffs; /* Coefficient pointer */ const q15_t *pCoeffs = S->pCoeffs; /* Coefficient pointer */
q15_t *pStateCurnt; /* Points to the current sample of the state */ q15_t *pStateCurnt; /* Points to the current sample of the state */
uint32_t numTaps = S->numTaps; /* Number of filter coefficients in the filter */ uint32_t numTaps = S->numTaps; /* Number of filter coefficients in the filter */
uint32_t i; /* Loop counters */ uint32_t i; /* Loop counters */
@ -277,7 +277,7 @@ void ref_fir_q7(
uint32_t blockSize) uint32_t blockSize)
{ {
q7_t *pState = S->pState; /* State pointer */ q7_t *pState = S->pState; /* State pointer */
q7_t *pCoeffs = S->pCoeffs; /* Coefficient pointer */ const q7_t *pCoeffs = S->pCoeffs; /* Coefficient pointer */
q7_t *pStateCurnt; /* Points to the current sample of the state */ q7_t *pStateCurnt; /* Points to the current sample of the state */
uint32_t numTaps = S->numTaps; /* Number of filter coefficients in the filter */ uint32_t numTaps = S->numTaps; /* Number of filter coefficients in the filter */
uint32_t i; /* Loop counters */ uint32_t i; /* Loop counters */

@ -2,7 +2,7 @@
void ref_fir_decimate_f32( void ref_fir_decimate_f32(
const arm_fir_decimate_instance_f32 * S, const arm_fir_decimate_instance_f32 * S,
float32_t * pSrc, const float32_t * pSrc,
float32_t * pDst, float32_t * pDst,
uint32_t blockSize) uint32_t blockSize)
{ {
@ -83,7 +83,7 @@ void ref_fir_decimate_q31(
uint32_t blockSize) uint32_t blockSize)
{ {
q31_t *pState = S->pState; /* State pointer */ q31_t *pState = S->pState; /* State pointer */
q31_t *pCoeffs = S->pCoeffs; /* Coefficient pointer */ const q31_t *pCoeffs = S->pCoeffs; /* Coefficient pointer */
q31_t *pStateCurnt; /* Points to the current sample of the state */ q31_t *pStateCurnt; /* Points to the current sample of the state */
q31_t x0, c0; /* Temporary variables to hold state and coefficient values */ q31_t x0, c0; /* Temporary variables to hold state and coefficient values */
q63_t sum0; /* Accumulator */ q63_t sum0; /* Accumulator */
@ -160,7 +160,7 @@ void ref_fir_decimate_fast_q31(
uint32_t blockSize) uint32_t blockSize)
{ {
q31_t *pState = S->pState; /* State pointer */ q31_t *pState = S->pState; /* State pointer */
q31_t *pCoeffs = S->pCoeffs; /* Coefficient pointer */ const q31_t *pCoeffs = S->pCoeffs; /* Coefficient pointer */
q31_t *pStateCurnt; /* Points to the current sample of the state */ q31_t *pStateCurnt; /* Points to the current sample of the state */
q31_t x0, c0; /* Temporary variables to hold state and coefficient values */ q31_t x0, c0; /* Temporary variables to hold state and coefficient values */
q31_t sum0; /* Accumulator */ q31_t sum0; /* Accumulator */
@ -237,7 +237,7 @@ void ref_fir_decimate_q15(
uint32_t blockSize) uint32_t blockSize)
{ {
q15_t *pState = S->pState; /* State pointer */ q15_t *pState = S->pState; /* State pointer */
q15_t *pCoeffs = S->pCoeffs; /* Coefficient pointer */ const q15_t *pCoeffs = S->pCoeffs; /* Coefficient pointer */
q15_t *pStateCurnt; /* Points to the current sample of the state */ q15_t *pStateCurnt; /* Points to the current sample of the state */
q31_t x0, c0; /* Temporary variables to hold state and coefficient values */ q31_t x0, c0; /* Temporary variables to hold state and coefficient values */
q63_t sum0; /* Accumulator */ q63_t sum0; /* Accumulator */
@ -314,7 +314,7 @@ void ref_fir_decimate_fast_q15(
uint32_t blockSize) uint32_t blockSize)
{ {
q15_t *pState = S->pState; /* State pointer */ q15_t *pState = S->pState; /* State pointer */
q15_t *pCoeffs = S->pCoeffs; /* Coefficient pointer */ const q15_t *pCoeffs = S->pCoeffs; /* Coefficient pointer */
q15_t *pStateCurnt; /* Points to the current sample of the state */ q15_t *pStateCurnt; /* Points to the current sample of the state */
q15_t x0, c0; /* Temporary variables to hold state and coefficient values */ q15_t x0, c0; /* Temporary variables to hold state and coefficient values */
q31_t sum0; /* Accumulator */ q31_t sum0; /* Accumulator */

@ -2,7 +2,7 @@
void ref_fir_interpolate_f32( void ref_fir_interpolate_f32(
const arm_fir_interpolate_instance_f32 * S, const arm_fir_interpolate_instance_f32 * S,
float32_t * pSrc, const float32_t * pSrc,
float32_t * pDst, float32_t * pDst,
uint32_t blockSize) uint32_t blockSize)
{ {
@ -98,7 +98,7 @@ void ref_fir_interpolate_q31(
uint32_t blockSize) uint32_t blockSize)
{ {
q31_t *pState = S->pState; /* State pointer */ q31_t *pState = S->pState; /* State pointer */
q31_t *pCoeffs = S->pCoeffs; /* Coefficient pointer */ const q31_t *pCoeffs = S->pCoeffs; /* Coefficient pointer */
q31_t *pStateCurnt; /* Points to the current sample of the state */ q31_t *pStateCurnt; /* Points to the current sample of the state */
q31_t *ptr1, *ptr2; /* Temporary pointers for state and coefficient buffers */ q31_t *ptr1, *ptr2; /* Temporary pointers for state and coefficient buffers */
@ -199,7 +199,7 @@ void ref_fir_interpolate_q15(
uint32_t blockSize) uint32_t blockSize)
{ {
q15_t *pState = S->pState; /* State pointer */ q15_t *pState = S->pState; /* State pointer */
q15_t *pCoeffs = S->pCoeffs; /* Coefficient pointer */ const q15_t *pCoeffs = S->pCoeffs; /* Coefficient pointer */
q15_t *pStateCurnt; /* Points to the current sample of the state */ q15_t *pStateCurnt; /* Points to the current sample of the state */
q15_t *ptr1, *ptr2; /* Temporary pointers for state and coefficient buffers */ q15_t *ptr1, *ptr2; /* Temporary pointers for state and coefficient buffers */
q63_t sum; /* Accumulator */ q63_t sum; /* Accumulator */

@ -2,7 +2,7 @@
void ref_fir_lattice_f32( void ref_fir_lattice_f32(
const arm_fir_lattice_instance_f32 * S, const arm_fir_lattice_instance_f32 * S,
float32_t * pSrc, const float32_t * pSrc,
float32_t * pDst, float32_t * pDst,
uint32_t blockSize) uint32_t blockSize)
{ {
@ -83,8 +83,8 @@ void ref_fir_lattice_q31(
uint32_t blockSize) uint32_t blockSize)
{ {
q31_t *pState; /* State pointer */ q31_t *pState; /* State pointer */
q31_t *pCoeffs = S->pCoeffs; /* Coefficient pointer */ const q31_t *pCoeffs = S->pCoeffs; /* Coefficient pointer */
q31_t *px; /* temporary state pointer */ const q31_t *px; /* temporary state pointer */
q31_t *pk; /* temporary coefficient pointer */ q31_t *pk; /* temporary coefficient pointer */
q31_t fcurr, fnext, gcurr, gnext; /* temporary variables */ q31_t fcurr, fnext, gcurr, gnext; /* temporary variables */
uint32_t numStages = S->numStages; /* Length of the filter */ uint32_t numStages = S->numStages; /* Length of the filter */
@ -160,8 +160,8 @@ void ref_fir_lattice_q15(
uint32_t blockSize) uint32_t blockSize)
{ {
q15_t *pState; /* State pointer */ q15_t *pState; /* State pointer */
q15_t *pCoeffs = S->pCoeffs; /* Coefficient pointer */ const q15_t *pCoeffs = S->pCoeffs; /* Coefficient pointer */
q15_t *px; /* temporary state pointer */ const q15_t *px; /* temporary state pointer */
q15_t *pk; /* temporary coefficient pointer */ q15_t *pk; /* temporary coefficient pointer */
q31_t fcurnt, fnext, gcurnt, gnext; /* temporary variables */ q31_t fcurnt, fnext, gcurnt, gnext; /* temporary variables */
uint32_t numStages = S->numStages; /* Length of the filter */ uint32_t numStages = S->numStages; /* Length of the filter */

@ -2,7 +2,7 @@
void ref_fir_sparse_f32( void ref_fir_sparse_f32(
arm_fir_sparse_instance_f32 * S, arm_fir_sparse_instance_f32 * S,
float32_t * pSrc, const float32_t * pSrc,
float32_t * pDst, float32_t * pDst,
float32_t * pScratchIn, float32_t * pScratchIn,
uint32_t blockSize) uint32_t blockSize)
@ -117,9 +117,9 @@ void ref_fir_sparse_q31(
uint32_t blockSize) uint32_t blockSize)
{ {
q31_t *pState = S->pState; /* State pointer */ q31_t *pState = S->pState; /* State pointer */
q31_t *pCoeffs = S->pCoeffs; /* Coefficient pointer */ const q31_t *pCoeffs = S->pCoeffs; /* Coefficient pointer */
q31_t *px; /* Scratch buffer pointer */ const q31_t *px; /* Scratch buffer pointer */
q31_t *py = pState; /* Temporary pointers for state buffer */ const q31_t *py = pState; /* Temporary pointers for state buffer */
q31_t *pb = pScratchIn; /* Temporary pointers for scratch buffer */ q31_t *pb = pScratchIn; /* Temporary pointers for scratch buffer */
q31_t *pOut; /* Destination pointer */ q31_t *pOut; /* Destination pointer */
q63_t out; /* Temporary output variable */ q63_t out; /* Temporary output variable */
@ -247,10 +247,10 @@ void ref_fir_sparse_q15(
q15_t *pState = S->pState; /* State pointer */ q15_t *pState = S->pState; /* State pointer */
q15_t *pIn = pSrc; /* Working pointer for input */ q15_t *pIn = pSrc; /* Working pointer for input */
q15_t *pOut = pDst; /* Working pointer for output */ q15_t *pOut = pDst; /* Working pointer for output */
q15_t *pCoeffs = S->pCoeffs; /* Coefficient pointer */ const q15_t *pCoeffs = S->pCoeffs; /* Coefficient pointer */
q15_t *px; /* Temporary pointers for scratch buffer */ const q15_t *px; /* Temporary pointers for scratch buffer */
q15_t *pb = pScratchIn; /* Temporary pointers for scratch buffer */ q15_t *pb = pScratchIn; /* Temporary pointers for scratch buffer */
q15_t *py = pState; /* Temporary pointers for state buffer */ const q15_t *py = pState; /* Temporary pointers for state buffer */
int32_t *pTapDelay = S->pTapDelay; /* Pointer to the array containing offset of the non-zero tap values. */ int32_t *pTapDelay = S->pTapDelay; /* Pointer to the array containing offset of the non-zero tap values. */
uint32_t delaySize = S->maxDelay + blockSize; /* state length */ uint32_t delaySize = S->maxDelay + blockSize; /* state length */
uint16_t numTaps = S->numTaps; /* Filter order */ uint16_t numTaps = S->numTaps; /* Filter order */
@ -366,9 +366,9 @@ void ref_fir_sparse_q7(
uint32_t blockSize) uint32_t blockSize)
{ {
q7_t *pState = S->pState; /* State pointer */ q7_t *pState = S->pState; /* State pointer */
q7_t *pCoeffs = S->pCoeffs; /* Coefficient pointer */ const q7_t *pCoeffs = S->pCoeffs; /* Coefficient pointer */
q7_t *px; /* Scratch buffer pointer */ const q7_t *px; /* Scratch buffer pointer */
q7_t *py = pState; /* Temporary pointers for state buffer */ const q7_t *py = pState; /* Temporary pointers for state buffer */
q7_t *pb = pScratchIn; /* Temporary pointers for scratch buffer */ q7_t *pb = pScratchIn; /* Temporary pointers for scratch buffer */
q7_t *pOut = pDst; /* Destination pointer */ q7_t *pOut = pDst; /* Destination pointer */
int32_t *pTapDelay = S->pTapDelay; /* Pointer to the array containing offset of the non-zero tap values. */ int32_t *pTapDelay = S->pTapDelay; /* Pointer to the array containing offset of the non-zero tap values. */

@ -2,7 +2,7 @@
void ref_iir_lattice_f32( void ref_iir_lattice_f32(
const arm_iir_lattice_instance_f32 * S, const arm_iir_lattice_instance_f32 * S,
float32_t * pSrc, const float32_t * pSrc,
float32_t * pDst, float32_t * pDst,
uint32_t blockSize) uint32_t blockSize)
{ {
@ -95,7 +95,7 @@ void ref_iir_lattice_q31(
q31_t fcurr, fnext = 0, gcurr = 0, gnext; /* Temporary variables for lattice stages */ q31_t fcurr, fnext = 0, gcurr = 0, gnext; /* Temporary variables for lattice stages */
q63_t acc; /* Accumlator */ q63_t acc; /* Accumlator */
uint32_t blkCnt, tapCnt; /* Temporary variables for counts */ uint32_t blkCnt, tapCnt; /* Temporary variables for counts */
q31_t *px1, *px2, *pk, *pv; /* Temporary pointers for state and coef */ const q31_t *px1, *px2, *pk, *pv; /* Temporary pointers for state and coef */
uint32_t numStages = S->numStages; /* number of stages */ uint32_t numStages = S->numStages; /* number of stages */
q31_t *pState; /* State pointer */ q31_t *pState; /* State pointer */
q31_t *pStateCurnt; /* State current pointer */ q31_t *pStateCurnt; /* State current pointer */
@ -188,7 +188,7 @@ void ref_iir_lattice_q15(
uint32_t stgCnt; /* Temporary variables for counts */ uint32_t stgCnt; /* Temporary variables for counts */
q63_t acc; /* Accumlator */ q63_t acc; /* Accumlator */
uint32_t blkCnt, tapCnt; /* Temporary variables for counts */ uint32_t blkCnt, tapCnt; /* Temporary variables for counts */
q15_t *px1, *px2, *pk, *pv; /* temporary pointers for state and coef */ const q15_t *px1, *px2, *pk, *pv; /* temporary pointers for state and coef */
uint32_t numStages = S->numStages; /* number of stages */ uint32_t numStages = S->numStages; /* number of stages */
q15_t *pState; /* State pointer */ q15_t *pState; /* State pointer */
q15_t *pStateCurnt; /* State current pointer */ q15_t *pStateCurnt; /* State current pointer */

@ -2,7 +2,7 @@
void ref_lms_f32( void ref_lms_f32(
const arm_lms_instance_f32 * S, const arm_lms_instance_f32 * S,
float32_t * pSrc, const float32_t * pSrc,
float32_t * pRef, float32_t * pRef,
float32_t * pOut, float32_t * pOut,
float32_t * pErr, float32_t * pErr,
@ -73,7 +73,7 @@ void ref_lms_f32(
void ref_lms_norm_f32( void ref_lms_norm_f32(
arm_lms_norm_instance_f32 * S, arm_lms_norm_instance_f32 * S,
float32_t * pSrc, const float32_t * pSrc,
float32_t * pRef, float32_t * pRef,
float32_t * pOut, float32_t * pOut,
float32_t * pErr, float32_t * pErr,
@ -167,10 +167,10 @@ void ref_lms_q31(
{ {
q31_t *pState = S->pState; /* State pointer */ q31_t *pState = S->pState; /* State pointer */
uint32_t numTaps = S->numTaps; /* Number of filter coefficients in the filter */ uint32_t numTaps = S->numTaps; /* Number of filter coefficients in the filter */
q31_t *pCoeffs = S->pCoeffs; /* Coefficient pointer */ const q31_t *pCoeffs = S->pCoeffs; /* Coefficient pointer */
q31_t *pStateCurnt; /* Points to the current sample of the state */ q31_t *pStateCurnt; /* Points to the current sample of the state */
q31_t mu = S->mu; /* Adaptive factor */ q31_t mu = S->mu; /* Adaptive factor */
q31_t *px; /* Temporary pointer for state */ const q31_t *px; /* Temporary pointer for state */
q31_t *pb; /* Temporary pointer for coefficient buffer */ q31_t *pb; /* Temporary pointer for coefficient buffer */
uint32_t tapCnt, blkCnt; /* Loop counters */ uint32_t tapCnt, blkCnt; /* Loop counters */
q63_t acc; /* Accumulator */ q63_t acc; /* Accumulator */
@ -282,9 +282,9 @@ void ref_lms_norm_q31(
uint32_t blockSize) uint32_t blockSize)
{ {
q31_t *pState = S->pState; /* State pointer */ q31_t *pState = S->pState; /* State pointer */
q31_t *pCoeffs = S->pCoeffs; /* Coefficient pointer */ const q31_t *pCoeffs = S->pCoeffs; /* Coefficient pointer */
q31_t *pStateCurnt; /* Points to the current sample of the state */ q31_t *pStateCurnt; /* Points to the current sample of the state */
q31_t *px, *pb; /* Temporary pointers for state and coefficient buffers */ const q31_t *px, *pb; /* Temporary pointers for state and coefficient buffers */
q31_t mu = S->mu; /* Adaptive factor */ q31_t mu = S->mu; /* Adaptive factor */
uint32_t numTaps = S->numTaps; /* Number of filter coefficients in the filter */ uint32_t numTaps = S->numTaps; /* Number of filter coefficients in the filter */
uint32_t tapCnt, blkCnt; /* Loop counters */ uint32_t tapCnt, blkCnt; /* Loop counters */
@ -427,10 +427,10 @@ void ref_lms_q15(
{ {
q15_t *pState = S->pState; /* State pointer */ q15_t *pState = S->pState; /* State pointer */
uint32_t numTaps = S->numTaps; /* Number of filter coefficients in the filter */ uint32_t numTaps = S->numTaps; /* Number of filter coefficients in the filter */
q15_t *pCoeffs = S->pCoeffs; /* Coefficient pointer */ const q15_t *pCoeffs = S->pCoeffs; /* Coefficient pointer */
q15_t *pStateCurnt; /* Points to the current sample of the state */ q15_t *pStateCurnt; /* Points to the current sample of the state */
q15_t mu = S->mu; /* Adaptive factor */ q15_t mu = S->mu; /* Adaptive factor */
q15_t *px; /* Temporary pointer for state */ const q15_t *px; /* Temporary pointer for state */
q15_t *pb; /* Temporary pointer for coefficient buffer */ q15_t *pb; /* Temporary pointer for coefficient buffer */
uint32_t tapCnt, blkCnt; /* Loop counters */ uint32_t tapCnt, blkCnt; /* Loop counters */
q63_t acc; /* Accumulator */ q63_t acc; /* Accumulator */
@ -544,9 +544,9 @@ void ref_lms_norm_q15(
uint32_t blockSize) uint32_t blockSize)
{ {
q15_t *pState = S->pState; /* State pointer */ q15_t *pState = S->pState; /* State pointer */
q15_t *pCoeffs = S->pCoeffs; /* Coefficient pointer */ const q15_t *pCoeffs = S->pCoeffs; /* Coefficient pointer */
q15_t *pStateCurnt; /* Points to the current sample of the state */ q15_t *pStateCurnt; /* Points to the current sample of the state */
q15_t *px, *pb; /* Temporary pointers for state and coefficient buffers */ const q15_t *px, *pb; /* Temporary pointers for state and coefficient buffers */
q15_t mu = S->mu; /* Adaptive factor */ q15_t mu = S->mu; /* Adaptive factor */
uint32_t numTaps = S->numTaps; /* Number of filter coefficients in the filter */ uint32_t numTaps = S->numTaps; /* Number of filter coefficients in the filter */
uint32_t tapCnt, blkCnt; /* Loop counters */ uint32_t tapCnt, blkCnt; /* Loop counters */

@ -1,7 +1,7 @@
#include "ref.h" #include "ref.h"
void ref_max_f32( void ref_max_f32(
float32_t * pSrc, const float32_t * pSrc,
uint32_t blockSize, uint32_t blockSize,
float32_t * pResult, float32_t * pResult,
uint32_t * pIndex) uint32_t * pIndex)

@ -1,7 +1,7 @@
#include "ref.h" #include "ref.h"
void ref_mean_f32( void ref_mean_f32(
float32_t * pSrc, const float32_t * pSrc,
uint32_t blockSize, uint32_t blockSize,
float32_t * pResult) float32_t * pResult)
{ {

@ -1,7 +1,7 @@
#include "ref.h" #include "ref.h"
void ref_min_f32( void ref_min_f32(
float32_t * pSrc, const float32_t * pSrc,
uint32_t blockSize, uint32_t blockSize,
float32_t * pResult, float32_t * pResult,
uint32_t * pIndex) uint32_t * pIndex)

@ -1,7 +1,7 @@
#include "ref.h" #include "ref.h"
void ref_power_f32( void ref_power_f32(
float32_t * pSrc, const float32_t * pSrc,
uint32_t blockSize, uint32_t blockSize,
float32_t * pResult) float32_t * pResult)
{ {

@ -1,7 +1,7 @@
#include "ref.h" #include "ref.h"
void ref_rms_f32( void ref_rms_f32(
float32_t * pSrc, const float32_t * pSrc,
uint32_t blockSize, uint32_t blockSize,
float32_t * pResult) float32_t * pResult)
{ {

@ -1,7 +1,7 @@
#include "ref.h" #include "ref.h"
void ref_std_f32( void ref_std_f32(
float32_t * pSrc, const float32_t * pSrc,
uint32_t blockSize, uint32_t blockSize,
float32_t * pResult) float32_t * pResult)
{ {

@ -1,7 +1,7 @@
#include "ref.h" #include "ref.h"
void ref_var_f32( void ref_var_f32(
float32_t * pSrc, const float32_t * pSrc,
uint32_t blockSize, uint32_t blockSize,
float32_t * pResult) float32_t * pResult)
{ {

@ -1,7 +1,7 @@
#include "ref.h" #include "ref.h"
void ref_copy_f32( void ref_copy_f32(
float32_t * pSrc, const float32_t * pSrc,
float32_t * pDst, float32_t * pDst,
uint32_t blockSize) uint32_t blockSize)
{ {

@ -1,7 +1,7 @@
#include "ref.h" #include "ref.h"
void ref_float_to_q31( void ref_float_to_q31(
float32_t * pSrc, const float32_t * pSrc,
q31_t * pDst, q31_t * pDst,
uint32_t blockSize) uint32_t blockSize)
{ {
@ -18,7 +18,7 @@ void ref_float_to_q31(
} }
void ref_float_to_q15( void ref_float_to_q15(
float32_t * pSrc, const float32_t * pSrc,
q15_t * pDst, q15_t * pDst,
uint32_t blockSize) uint32_t blockSize)
{ {
@ -35,7 +35,7 @@ void ref_float_to_q15(
} }
void ref_float_to_q7( void ref_float_to_q7(
float32_t * pSrc, const float32_t * pSrc,
q7_t * pDst, q7_t * pDst,
uint32_t blockSize) uint32_t blockSize)
{ {

@ -219,7 +219,7 @@ void ref_cfft_q15(
void ref_cfft_radix2_f32( void ref_cfft_radix2_f32(
const arm_cfft_radix2_instance_f32 * S, const arm_cfft_radix2_instance_f32 * S,
float32_t * pSrc) const float32_t * pSrc)
{ {
switch(S->fftLen) switch(S->fftLen)
{ {
@ -409,7 +409,7 @@ void ref_cfft_radix2_q15(
void ref_cfft_radix4_f32( void ref_cfft_radix4_f32(
const arm_cfft_radix4_instance_f32 * S, const arm_cfft_radix4_instance_f32 * S,
float32_t * pSrc) const float32_t * pSrc)
{ {
switch(S->fftLen) switch(S->fftLen)
{ {

@ -3,7 +3,7 @@
void ref_rfft_f32( void ref_rfft_f32(
arm_rfft_instance_f32 * S, arm_rfft_instance_f32 * S,
float32_t * pSrc, const float32_t * pSrc,
float32_t * pDst) float32_t * pDst)
{ {
uint32_t i; uint32_t i;

@ -976,7 +976,7 @@ extern "C"
{ {
uint16_t numTaps; /**< number of filter coefficients in the filter. */ uint16_t numTaps; /**< number of filter coefficients in the filter. */
q7_t *pState; /**< points to the state variable array. The array is of length numTaps+blockSize-1. */ q7_t *pState; /**< points to the state variable array. The array is of length numTaps+blockSize-1. */
q7_t *pCoeffs; /**< points to the coefficient array. The array is of length numTaps.*/ const q7_t *pCoeffs; /**< points to the coefficient array. The array is of length numTaps.*/
} arm_fir_instance_q7; } arm_fir_instance_q7;
/** /**
@ -986,7 +986,7 @@ extern "C"
{ {
uint16_t numTaps; /**< number of filter coefficients in the filter. */ uint16_t numTaps; /**< number of filter coefficients in the filter. */
q15_t *pState; /**< points to the state variable array. The array is of length numTaps+blockSize-1. */ q15_t *pState; /**< points to the state variable array. The array is of length numTaps+blockSize-1. */
q15_t *pCoeffs; /**< points to the coefficient array. The array is of length numTaps.*/ const q15_t *pCoeffs; /**< points to the coefficient array. The array is of length numTaps.*/
} arm_fir_instance_q15; } arm_fir_instance_q15;
/** /**
@ -996,7 +996,7 @@ extern "C"
{ {
uint16_t numTaps; /**< number of filter coefficients in the filter. */ uint16_t numTaps; /**< number of filter coefficients in the filter. */
q31_t *pState; /**< points to the state variable array. The array is of length numTaps+blockSize-1. */ q31_t *pState; /**< points to the state variable array. The array is of length numTaps+blockSize-1. */
q31_t *pCoeffs; /**< points to the coefficient array. The array is of length numTaps. */ const q31_t *pCoeffs; /**< points to the coefficient array. The array is of length numTaps. */
} arm_fir_instance_q31; } arm_fir_instance_q31;
/** /**
@ -1006,7 +1006,7 @@ extern "C"
{ {
uint16_t numTaps; /**< number of filter coefficients in the filter. */ uint16_t numTaps; /**< number of filter coefficients in the filter. */
float32_t *pState; /**< points to the state variable array. The array is of length numTaps+blockSize-1. */ float32_t *pState; /**< points to the state variable array. The array is of length numTaps+blockSize-1. */
float32_t *pCoeffs; /**< points to the coefficient array. The array is of length numTaps. */ const float32_t *pCoeffs; /**< points to the coefficient array. The array is of length numTaps. */
} arm_fir_instance_f32; } arm_fir_instance_f32;
@ -1035,7 +1035,7 @@ extern "C"
void arm_fir_init_q7( void arm_fir_init_q7(
arm_fir_instance_q7 * S, arm_fir_instance_q7 * S,
uint16_t numTaps, uint16_t numTaps,
q7_t * pCoeffs, const q7_t * pCoeffs,
q7_t * pState, q7_t * pState,
uint32_t blockSize); uint32_t blockSize);
@ -1081,7 +1081,7 @@ extern "C"
arm_status arm_fir_init_q15( arm_status arm_fir_init_q15(
arm_fir_instance_q15 * S, arm_fir_instance_q15 * S,
uint16_t numTaps, uint16_t numTaps,
q15_t * pCoeffs, const q15_t * pCoeffs,
q15_t * pState, q15_t * pState,
uint32_t blockSize); uint32_t blockSize);
@ -1125,7 +1125,7 @@ extern "C"
void arm_fir_init_q31( void arm_fir_init_q31(
arm_fir_instance_q31 * S, arm_fir_instance_q31 * S,
uint16_t numTaps, uint16_t numTaps,
q31_t * pCoeffs, const q31_t * pCoeffs,
q31_t * pState, q31_t * pState,
uint32_t blockSize); uint32_t blockSize);
@ -1155,7 +1155,7 @@ extern "C"
void arm_fir_init_f32( void arm_fir_init_f32(
arm_fir_instance_f32 * S, arm_fir_instance_f32 * S,
uint16_t numTaps, uint16_t numTaps,
float32_t * pCoeffs, const float32_t * pCoeffs,
float32_t * pState, float32_t * pState,
uint32_t blockSize); uint32_t blockSize);
@ -1167,7 +1167,7 @@ extern "C"
{ {
int8_t numStages; /**< number of 2nd order stages in the filter. Overall order is 2*numStages. */ int8_t numStages; /**< number of 2nd order stages in the filter. Overall order is 2*numStages. */
q15_t *pState; /**< Points to the array of state coefficients. The array is of length 4*numStages. */ q15_t *pState; /**< Points to the array of state coefficients. The array is of length 4*numStages. */
q15_t *pCoeffs; /**< Points to the array of coefficients. The array is of length 5*numStages. */ const q15_t *pCoeffs; /**< Points to the array of coefficients. The array is of length 5*numStages. */
int8_t postShift; /**< Additional shift, in bits, applied to each output sample. */ int8_t postShift; /**< Additional shift, in bits, applied to each output sample. */
} arm_biquad_casd_df1_inst_q15; } arm_biquad_casd_df1_inst_q15;
@ -1178,7 +1178,7 @@ extern "C"
{ {
uint32_t numStages; /**< number of 2nd order stages in the filter. Overall order is 2*numStages. */ uint32_t numStages; /**< number of 2nd order stages in the filter. Overall order is 2*numStages. */
q31_t *pState; /**< Points to the array of state coefficients. The array is of length 4*numStages. */ q31_t *pState; /**< Points to the array of state coefficients. The array is of length 4*numStages. */
q31_t *pCoeffs; /**< Points to the array of coefficients. The array is of length 5*numStages. */ const q31_t *pCoeffs; /**< Points to the array of coefficients. The array is of length 5*numStages. */
uint8_t postShift; /**< Additional shift, in bits, applied to each output sample. */ uint8_t postShift; /**< Additional shift, in bits, applied to each output sample. */
} arm_biquad_casd_df1_inst_q31; } arm_biquad_casd_df1_inst_q31;
@ -1189,7 +1189,7 @@ extern "C"
{ {
uint32_t numStages; /**< number of 2nd order stages in the filter. Overall order is 2*numStages. */ uint32_t numStages; /**< number of 2nd order stages in the filter. Overall order is 2*numStages. */
float32_t *pState; /**< Points to the array of state coefficients. The array is of length 4*numStages. */ float32_t *pState; /**< Points to the array of state coefficients. The array is of length 4*numStages. */
float32_t *pCoeffs; /**< Points to the array of coefficients. The array is of length 5*numStages. */ const float32_t *pCoeffs; /**< Points to the array of coefficients. The array is of length 5*numStages. */
} arm_biquad_casd_df1_inst_f32; } arm_biquad_casd_df1_inst_f32;
@ -1218,7 +1218,7 @@ extern "C"
void arm_biquad_cascade_df1_init_q15( void arm_biquad_cascade_df1_init_q15(
arm_biquad_casd_df1_inst_q15 * S, arm_biquad_casd_df1_inst_q15 * S,
uint8_t numStages, uint8_t numStages,
q15_t * pCoeffs, const q15_t * pCoeffs,
q15_t * pState, q15_t * pState,
int8_t postShift); int8_t postShift);
@ -1276,7 +1276,7 @@ extern "C"
void arm_biquad_cascade_df1_init_q31( void arm_biquad_cascade_df1_init_q31(
arm_biquad_casd_df1_inst_q31 * S, arm_biquad_casd_df1_inst_q31 * S,
uint8_t numStages, uint8_t numStages,
q31_t * pCoeffs, const q31_t * pCoeffs,
q31_t * pState, q31_t * pState,
int8_t postShift); int8_t postShift);
@ -1305,7 +1305,7 @@ extern "C"
void arm_biquad_cascade_df1_init_f32( void arm_biquad_cascade_df1_init_f32(
arm_biquad_casd_df1_inst_f32 * S, arm_biquad_casd_df1_inst_f32 * S,
uint8_t numStages, uint8_t numStages,
float32_t * pCoeffs, const float32_t * pCoeffs,
float32_t * pState); float32_t * pState);
@ -1912,7 +1912,7 @@ extern "C"
/* Deprecated */ /* Deprecated */
void arm_cfft_radix2_q15( void arm_cfft_radix2_q15(
const arm_cfft_radix2_instance_q15 * S, const arm_cfft_radix2_instance_q15 * S,
const q15_t * pSrc); q15_t * pSrc);
/** /**
@ -1939,7 +1939,7 @@ extern "C"
/* Deprecated */ /* Deprecated */
void arm_cfft_radix4_q15( void arm_cfft_radix4_q15(
const arm_cfft_radix4_instance_q15 * S, const arm_cfft_radix4_instance_q15 * S,
const q15_t * pSrc); q15_t * pSrc);
/** /**
* @brief Instance structure for the Radix-2 Q31 CFFT/CIFFT function. * @brief Instance structure for the Radix-2 Q31 CFFT/CIFFT function.
@ -1965,7 +1965,7 @@ extern "C"
/* Deprecated */ /* Deprecated */
void arm_cfft_radix2_q31( void arm_cfft_radix2_q31(
const arm_cfft_radix2_instance_q31 * S, const arm_cfft_radix2_instance_q31 * S,
const q31_t * pSrc); q31_t * pSrc);
/** /**
* @brief Instance structure for the Q31 CFFT/CIFFT function. * @brief Instance structure for the Q31 CFFT/CIFFT function.
@ -1984,7 +1984,7 @@ extern "C"
/* Deprecated */ /* Deprecated */
void arm_cfft_radix4_q31( void arm_cfft_radix4_q31(
const arm_cfft_radix4_instance_q31 * S, const arm_cfft_radix4_instance_q31 * S,
const q31_t * pSrc); q31_t * pSrc);
/* Deprecated */ /* Deprecated */
arm_status arm_cfft_radix4_init_q31( arm_status arm_cfft_radix4_init_q31(
@ -2018,7 +2018,7 @@ extern "C"
/* Deprecated */ /* Deprecated */
void arm_cfft_radix2_f32( void arm_cfft_radix2_f32(
const arm_cfft_radix2_instance_f32 * S, const arm_cfft_radix2_instance_f32 * S,
const float32_t * pSrc); float32_t * pSrc);
/** /**
* @brief Instance structure for the floating-point CFFT/CIFFT function. * @brief Instance structure for the floating-point CFFT/CIFFT function.
@ -2045,7 +2045,7 @@ extern "C"
/* Deprecated */ /* Deprecated */
void arm_cfft_radix4_f32( void arm_cfft_radix4_f32(
const arm_cfft_radix4_instance_f32 * S, const arm_cfft_radix4_instance_f32 * S,
const float32_t * pSrc); float32_t * pSrc);
/** /**
* @brief Instance structure for the fixed-point CFFT/CIFFT function. * @brief Instance structure for the fixed-point CFFT/CIFFT function.
@ -3233,7 +3233,7 @@ void arm_rfft_fast_f32(
{ {
uint8_t M; /**< decimation factor. */ uint8_t M; /**< decimation factor. */
uint16_t numTaps; /**< number of coefficients in the filter. */ uint16_t numTaps; /**< number of coefficients in the filter. */
q15_t *pCoeffs; /**< points to the coefficient array. The array is of length numTaps.*/ const q15_t *pCoeffs; /**< points to the coefficient array. The array is of length numTaps.*/
q15_t *pState; /**< points to the state variable array. The array is of length numTaps+blockSize-1. */ q15_t *pState; /**< points to the state variable array. The array is of length numTaps+blockSize-1. */
} arm_fir_decimate_instance_q15; } arm_fir_decimate_instance_q15;
@ -3244,7 +3244,7 @@ void arm_rfft_fast_f32(
{ {
uint8_t M; /**< decimation factor. */ uint8_t M; /**< decimation factor. */
uint16_t numTaps; /**< number of coefficients in the filter. */ uint16_t numTaps; /**< number of coefficients in the filter. */
q31_t *pCoeffs; /**< points to the coefficient array. The array is of length numTaps.*/ const q31_t *pCoeffs; /**< points to the coefficient array. The array is of length numTaps.*/
q31_t *pState; /**< points to the state variable array. The array is of length numTaps+blockSize-1. */ q31_t *pState; /**< points to the state variable array. The array is of length numTaps+blockSize-1. */
} arm_fir_decimate_instance_q31; } arm_fir_decimate_instance_q31;
@ -3255,7 +3255,7 @@ void arm_rfft_fast_f32(
{ {
uint8_t M; /**< decimation factor. */ uint8_t M; /**< decimation factor. */
uint16_t numTaps; /**< number of coefficients in the filter. */ uint16_t numTaps; /**< number of coefficients in the filter. */
float32_t *pCoeffs; /**< points to the coefficient array. The array is of length numTaps.*/ const float32_t *pCoeffs; /**< points to the coefficient array. The array is of length numTaps.*/
float32_t *pState; /**< points to the state variable array. The array is of length numTaps+blockSize-1. */ float32_t *pState; /**< points to the state variable array. The array is of length numTaps+blockSize-1. */
} arm_fir_decimate_instance_f32; } arm_fir_decimate_instance_f32;
@ -3289,7 +3289,7 @@ void arm_rfft_fast_f32(
arm_fir_decimate_instance_f32 * S, arm_fir_decimate_instance_f32 * S,
uint16_t numTaps, uint16_t numTaps,
uint8_t M, uint8_t M,
float32_t * pCoeffs, const float32_t * pCoeffs,
float32_t * pState, float32_t * pState,
uint32_t blockSize); uint32_t blockSize);
@ -3337,7 +3337,7 @@ void arm_rfft_fast_f32(
arm_fir_decimate_instance_q15 * S, arm_fir_decimate_instance_q15 * S,
uint16_t numTaps, uint16_t numTaps,
uint8_t M, uint8_t M,
q15_t * pCoeffs, const q15_t * pCoeffs,
q15_t * pState, q15_t * pState,
uint32_t blockSize); uint32_t blockSize);
@ -3384,7 +3384,7 @@ void arm_rfft_fast_f32(
arm_fir_decimate_instance_q31 * S, arm_fir_decimate_instance_q31 * S,
uint16_t numTaps, uint16_t numTaps,
uint8_t M, uint8_t M,
q31_t * pCoeffs, const q31_t * pCoeffs,
q31_t * pState, q31_t * pState,
uint32_t blockSize); uint32_t blockSize);
@ -3396,7 +3396,7 @@ void arm_rfft_fast_f32(
{ {
uint8_t L; /**< upsample factor. */ uint8_t L; /**< upsample factor. */
uint16_t phaseLength; /**< length of each polyphase filter component. */ uint16_t phaseLength; /**< length of each polyphase filter component. */
q15_t *pCoeffs; /**< points to the coefficient array. The array is of length L*phaseLength. */ const q15_t *pCoeffs; /**< points to the coefficient array. The array is of length L*phaseLength. */
q15_t *pState; /**< points to the state variable array. The array is of length blockSize+phaseLength-1. */ q15_t *pState; /**< points to the state variable array. The array is of length blockSize+phaseLength-1. */
} arm_fir_interpolate_instance_q15; } arm_fir_interpolate_instance_q15;
@ -3407,7 +3407,7 @@ void arm_rfft_fast_f32(
{ {
uint8_t L; /**< upsample factor. */ uint8_t L; /**< upsample factor. */
uint16_t phaseLength; /**< length of each polyphase filter component. */ uint16_t phaseLength; /**< length of each polyphase filter component. */
q31_t *pCoeffs; /**< points to the coefficient array. The array is of length L*phaseLength. */ const q31_t *pCoeffs; /**< points to the coefficient array. The array is of length L*phaseLength. */
q31_t *pState; /**< points to the state variable array. The array is of length blockSize+phaseLength-1. */ q31_t *pState; /**< points to the state variable array. The array is of length blockSize+phaseLength-1. */
} arm_fir_interpolate_instance_q31; } arm_fir_interpolate_instance_q31;
@ -3418,7 +3418,7 @@ void arm_rfft_fast_f32(
{ {
uint8_t L; /**< upsample factor. */ uint8_t L; /**< upsample factor. */
uint16_t phaseLength; /**< length of each polyphase filter component. */ uint16_t phaseLength; /**< length of each polyphase filter component. */
float32_t *pCoeffs; /**< points to the coefficient array. The array is of length L*phaseLength. */ const float32_t *pCoeffs; /**< points to the coefficient array. The array is of length L*phaseLength. */
float32_t *pState; /**< points to the state variable array. The array is of length phaseLength+numTaps-1. */ float32_t *pState; /**< points to the state variable array. The array is of length phaseLength+numTaps-1. */
} arm_fir_interpolate_instance_f32; } arm_fir_interpolate_instance_f32;
@ -3452,7 +3452,7 @@ void arm_rfft_fast_f32(
arm_fir_interpolate_instance_q15 * S, arm_fir_interpolate_instance_q15 * S,
uint8_t L, uint8_t L,
uint16_t numTaps, uint16_t numTaps,
q15_t * pCoeffs, const q15_t * pCoeffs,
q15_t * pState, q15_t * pState,
uint32_t blockSize); uint32_t blockSize);
@ -3486,7 +3486,7 @@ void arm_rfft_fast_f32(
arm_fir_interpolate_instance_q31 * S, arm_fir_interpolate_instance_q31 * S,
uint8_t L, uint8_t L,
uint16_t numTaps, uint16_t numTaps,
q31_t * pCoeffs, const q31_t * pCoeffs,
q31_t * pState, q31_t * pState,
uint32_t blockSize); uint32_t blockSize);
@ -3520,7 +3520,7 @@ void arm_rfft_fast_f32(
arm_fir_interpolate_instance_f32 * S, arm_fir_interpolate_instance_f32 * S,
uint8_t L, uint8_t L,
uint16_t numTaps, uint16_t numTaps,
float32_t * pCoeffs, const float32_t * pCoeffs,
float32_t * pState, float32_t * pState,
uint32_t blockSize); uint32_t blockSize);
@ -3532,7 +3532,7 @@ void arm_rfft_fast_f32(
{ {
uint8_t numStages; /**< number of 2nd order stages in the filter. Overall order is 2*numStages. */ uint8_t numStages; /**< number of 2nd order stages in the filter. Overall order is 2*numStages. */
q63_t *pState; /**< points to the array of state coefficients. The array is of length 4*numStages. */ q63_t *pState; /**< points to the array of state coefficients. The array is of length 4*numStages. */
q31_t *pCoeffs; /**< points to the array of coefficients. The array is of length 5*numStages. */ const q31_t *pCoeffs; /**< points to the array of coefficients. The array is of length 5*numStages. */
uint8_t postShift; /**< additional shift, in bits, applied to each output sample. */ uint8_t postShift; /**< additional shift, in bits, applied to each output sample. */
} arm_biquad_cas_df1_32x64_ins_q31; } arm_biquad_cas_df1_32x64_ins_q31;
@ -3560,7 +3560,7 @@ void arm_rfft_fast_f32(
void arm_biquad_cas_df1_32x64_init_q31( void arm_biquad_cas_df1_32x64_init_q31(
arm_biquad_cas_df1_32x64_ins_q31 * S, arm_biquad_cas_df1_32x64_ins_q31 * S,
uint8_t numStages, uint8_t numStages,
q31_t * pCoeffs, const q31_t * pCoeffs,
q63_t * pState, q63_t * pState,
uint8_t postShift); uint8_t postShift);
@ -3572,7 +3572,7 @@ void arm_rfft_fast_f32(
{ {
uint8_t numStages; /**< number of 2nd order stages in the filter. Overall order is 2*numStages. */ uint8_t numStages; /**< number of 2nd order stages in the filter. Overall order is 2*numStages. */
float32_t *pState; /**< points to the array of state coefficients. The array is of length 2*numStages. */ float32_t *pState; /**< points to the array of state coefficients. The array is of length 2*numStages. */
float32_t *pCoeffs; /**< points to the array of coefficients. The array is of length 5*numStages. */ const float32_t *pCoeffs; /**< points to the array of coefficients. The array is of length 5*numStages. */
} arm_biquad_cascade_df2T_instance_f32; } arm_biquad_cascade_df2T_instance_f32;
/** /**
@ -3582,7 +3582,7 @@ void arm_rfft_fast_f32(
{ {
uint8_t numStages; /**< number of 2nd order stages in the filter. Overall order is 2*numStages. */ uint8_t numStages; /**< number of 2nd order stages in the filter. Overall order is 2*numStages. */
float32_t *pState; /**< points to the array of state coefficients. The array is of length 4*numStages. */ float32_t *pState; /**< points to the array of state coefficients. The array is of length 4*numStages. */
float32_t *pCoeffs; /**< points to the array of coefficients. The array is of length 5*numStages. */ const float32_t *pCoeffs; /**< points to the array of coefficients. The array is of length 5*numStages. */
} arm_biquad_cascade_stereo_df2T_instance_f32; } arm_biquad_cascade_stereo_df2T_instance_f32;
/** /**
@ -3648,7 +3648,7 @@ void arm_rfft_fast_f32(
void arm_biquad_cascade_df2T_init_f32( void arm_biquad_cascade_df2T_init_f32(
arm_biquad_cascade_df2T_instance_f32 * S, arm_biquad_cascade_df2T_instance_f32 * S,
uint8_t numStages, uint8_t numStages,
float32_t * pCoeffs, const float32_t * pCoeffs,
float32_t * pState); float32_t * pState);
@ -3662,7 +3662,7 @@ void arm_rfft_fast_f32(
void arm_biquad_cascade_stereo_df2T_init_f32( void arm_biquad_cascade_stereo_df2T_init_f32(
arm_biquad_cascade_stereo_df2T_instance_f32 * S, arm_biquad_cascade_stereo_df2T_instance_f32 * S,
uint8_t numStages, uint8_t numStages,
float32_t * pCoeffs, const float32_t * pCoeffs,
float32_t * pState); float32_t * pState);
@ -3687,7 +3687,7 @@ void arm_rfft_fast_f32(
{ {
uint16_t numStages; /**< number of filter stages. */ uint16_t numStages; /**< number of filter stages. */
q15_t *pState; /**< points to the state variable array. The array is of length numStages. */ q15_t *pState; /**< points to the state variable array. The array is of length numStages. */
q15_t *pCoeffs; /**< points to the coefficient array. The array is of length numStages. */ const q15_t *pCoeffs; /**< points to the coefficient array. The array is of length numStages. */
} arm_fir_lattice_instance_q15; } arm_fir_lattice_instance_q15;
/** /**
@ -3697,7 +3697,7 @@ void arm_rfft_fast_f32(
{ {
uint16_t numStages; /**< number of filter stages. */ uint16_t numStages; /**< number of filter stages. */
q31_t *pState; /**< points to the state variable array. The array is of length numStages. */ q31_t *pState; /**< points to the state variable array. The array is of length numStages. */
q31_t *pCoeffs; /**< points to the coefficient array. The array is of length numStages. */ const q31_t *pCoeffs; /**< points to the coefficient array. The array is of length numStages. */
} arm_fir_lattice_instance_q31; } arm_fir_lattice_instance_q31;
/** /**
@ -3707,7 +3707,7 @@ void arm_rfft_fast_f32(
{ {
uint16_t numStages; /**< number of filter stages. */ uint16_t numStages; /**< number of filter stages. */
float32_t *pState; /**< points to the state variable array. The array is of length numStages. */ float32_t *pState; /**< points to the state variable array. The array is of length numStages. */
float32_t *pCoeffs; /**< points to the coefficient array. The array is of length numStages. */ const float32_t *pCoeffs; /**< points to the coefficient array. The array is of length numStages. */
} arm_fir_lattice_instance_f32; } arm_fir_lattice_instance_f32;
@ -3721,7 +3721,7 @@ void arm_rfft_fast_f32(
void arm_fir_lattice_init_q15( void arm_fir_lattice_init_q15(
arm_fir_lattice_instance_q15 * S, arm_fir_lattice_instance_q15 * S,
uint16_t numStages, uint16_t numStages,
q15_t * pCoeffs, const q15_t * pCoeffs,
q15_t * pState); q15_t * pState);
@ -3749,7 +3749,7 @@ void arm_rfft_fast_f32(
void arm_fir_lattice_init_q31( void arm_fir_lattice_init_q31(
arm_fir_lattice_instance_q31 * S, arm_fir_lattice_instance_q31 * S,
uint16_t numStages, uint16_t numStages,
q31_t * pCoeffs, const q31_t * pCoeffs,
q31_t * pState); q31_t * pState);
@ -3777,7 +3777,7 @@ void arm_rfft_fast_f32(
void arm_fir_lattice_init_f32( void arm_fir_lattice_init_f32(
arm_fir_lattice_instance_f32 * S, arm_fir_lattice_instance_f32 * S,
uint16_t numStages, uint16_t numStages,
float32_t * pCoeffs, const float32_t * pCoeffs,
float32_t * pState); float32_t * pState);
@ -3932,7 +3932,7 @@ void arm_rfft_fast_f32(
{ {
uint16_t numTaps; /**< number of coefficients in the filter. */ uint16_t numTaps; /**< number of coefficients in the filter. */
float32_t *pState; /**< points to the state variable array. The array is of length numTaps+blockSize-1. */ float32_t *pState; /**< points to the state variable array. The array is of length numTaps+blockSize-1. */
float32_t *pCoeffs; /**< points to the coefficient array. The array is of length numTaps. */ const float32_t *pCoeffs; /**< points to the coefficient array. The array is of length numTaps. */
float32_t mu; /**< step size that controls filter coefficient updates. */ float32_t mu; /**< step size that controls filter coefficient updates. */
} arm_lms_instance_f32; } arm_lms_instance_f32;
@ -3967,7 +3967,7 @@ void arm_rfft_fast_f32(
void arm_lms_init_f32( void arm_lms_init_f32(
arm_lms_instance_f32 * S, arm_lms_instance_f32 * S,
uint16_t numTaps, uint16_t numTaps,
float32_t * pCoeffs, const float32_t * pCoeffs,
float32_t * pState, float32_t * pState,
float32_t mu, float32_t mu,
uint32_t blockSize); uint32_t blockSize);
@ -3980,7 +3980,7 @@ void arm_rfft_fast_f32(
{ {
uint16_t numTaps; /**< number of coefficients in the filter. */ uint16_t numTaps; /**< number of coefficients in the filter. */
q15_t *pState; /**< points to the state variable array. The array is of length numTaps+blockSize-1. */ q15_t *pState; /**< points to the state variable array. The array is of length numTaps+blockSize-1. */
q15_t *pCoeffs; /**< points to the coefficient array. The array is of length numTaps. */ const q15_t *pCoeffs; /**< points to the coefficient array. The array is of length numTaps. */
q15_t mu; /**< step size that controls filter coefficient updates. */ q15_t mu; /**< step size that controls filter coefficient updates. */
uint32_t postShift; /**< bit shift applied to coefficients. */ uint32_t postShift; /**< bit shift applied to coefficients. */
} arm_lms_instance_q15; } arm_lms_instance_q15;
@ -3999,7 +3999,7 @@ void arm_rfft_fast_f32(
void arm_lms_init_q15( void arm_lms_init_q15(
arm_lms_instance_q15 * S, arm_lms_instance_q15 * S,
uint16_t numTaps, uint16_t numTaps,
q15_t * pCoeffs, const q15_t * pCoeffs,
q15_t * pState, q15_t * pState,
q15_t mu, q15_t mu,
uint32_t blockSize, uint32_t blockSize,
@ -4031,7 +4031,7 @@ void arm_rfft_fast_f32(
{ {
uint16_t numTaps; /**< number of coefficients in the filter. */ uint16_t numTaps; /**< number of coefficients in the filter. */
q31_t *pState; /**< points to the state variable array. The array is of length numTaps+blockSize-1. */ q31_t *pState; /**< points to the state variable array. The array is of length numTaps+blockSize-1. */
q31_t *pCoeffs; /**< points to the coefficient array. The array is of length numTaps. */ const q31_t *pCoeffs; /**< points to the coefficient array. The array is of length numTaps. */
q31_t mu; /**< step size that controls filter coefficient updates. */ q31_t mu; /**< step size that controls filter coefficient updates. */
uint32_t postShift; /**< bit shift applied to coefficients. */ uint32_t postShift; /**< bit shift applied to coefficients. */
} arm_lms_instance_q31; } arm_lms_instance_q31;
@ -4068,7 +4068,7 @@ void arm_rfft_fast_f32(
void arm_lms_init_q31( void arm_lms_init_q31(
arm_lms_instance_q31 * S, arm_lms_instance_q31 * S,
uint16_t numTaps, uint16_t numTaps,
q31_t * pCoeffs, const q31_t * pCoeffs,
q31_t * pState, q31_t * pState,
q31_t mu, q31_t mu,
uint32_t blockSize, uint32_t blockSize,
@ -4082,7 +4082,7 @@ void arm_rfft_fast_f32(
{ {
uint16_t numTaps; /**< number of coefficients in the filter. */ uint16_t numTaps; /**< number of coefficients in the filter. */
float32_t *pState; /**< points to the state variable array. The array is of length numTaps+blockSize-1. */ float32_t *pState; /**< points to the state variable array. The array is of length numTaps+blockSize-1. */
float32_t *pCoeffs; /**< points to the coefficient array. The array is of length numTaps. */ const float32_t *pCoeffs; /**< points to the coefficient array. The array is of length numTaps. */
float32_t mu; /**< step size that control filter coefficient updates. */ float32_t mu; /**< step size that control filter coefficient updates. */
float32_t energy; /**< saves previous frame energy. */ float32_t energy; /**< saves previous frame energy. */
float32_t x0; /**< saves previous input sample. */ float32_t x0; /**< saves previous input sample. */
@ -4119,7 +4119,7 @@ void arm_rfft_fast_f32(
void arm_lms_norm_init_f32( void arm_lms_norm_init_f32(
arm_lms_norm_instance_f32 * S, arm_lms_norm_instance_f32 * S,
uint16_t numTaps, uint16_t numTaps,
float32_t * pCoeffs, const float32_t * pCoeffs,
float32_t * pState, float32_t * pState,
float32_t mu, float32_t mu,
uint32_t blockSize); uint32_t blockSize);
@ -4132,7 +4132,7 @@ void arm_rfft_fast_f32(
{ {
uint16_t numTaps; /**< number of coefficients in the filter. */ uint16_t numTaps; /**< number of coefficients in the filter. */
q31_t *pState; /**< points to the state variable array. The array is of length numTaps+blockSize-1. */ q31_t *pState; /**< points to the state variable array. The array is of length numTaps+blockSize-1. */
q31_t *pCoeffs; /**< points to the coefficient array. The array is of length numTaps. */ const q31_t *pCoeffs; /**< points to the coefficient array. The array is of length numTaps. */
q31_t mu; /**< step size that controls filter coefficient updates. */ q31_t mu; /**< step size that controls filter coefficient updates. */
uint8_t postShift; /**< bit shift applied to coefficients. */ uint8_t postShift; /**< bit shift applied to coefficients. */
q31_t *recipTable; /**< points to the reciprocal initial value table. */ q31_t *recipTable; /**< points to the reciprocal initial value table. */
@ -4172,7 +4172,7 @@ void arm_rfft_fast_f32(
void arm_lms_norm_init_q31( void arm_lms_norm_init_q31(
arm_lms_norm_instance_q31 * S, arm_lms_norm_instance_q31 * S,
uint16_t numTaps, uint16_t numTaps,
q31_t * pCoeffs, const q31_t * pCoeffs,
q31_t * pState, q31_t * pState,
q31_t mu, q31_t mu,
uint32_t blockSize, uint32_t blockSize,
@ -4186,7 +4186,7 @@ void arm_rfft_fast_f32(
{ {
uint16_t numTaps; /**< Number of coefficients in the filter. */ uint16_t numTaps; /**< Number of coefficients in the filter. */
q15_t *pState; /**< points to the state variable array. The array is of length numTaps+blockSize-1. */ q15_t *pState; /**< points to the state variable array. The array is of length numTaps+blockSize-1. */
q15_t *pCoeffs; /**< points to the coefficient array. The array is of length numTaps. */ const q15_t *pCoeffs; /**< points to the coefficient array. The array is of length numTaps. */
q15_t mu; /**< step size that controls filter coefficient updates. */ q15_t mu; /**< step size that controls filter coefficient updates. */
uint8_t postShift; /**< bit shift applied to coefficients. */ uint8_t postShift; /**< bit shift applied to coefficients. */
q15_t *recipTable; /**< Points to the reciprocal initial value table. */ q15_t *recipTable; /**< Points to the reciprocal initial value table. */
@ -4226,7 +4226,7 @@ void arm_rfft_fast_f32(
void arm_lms_norm_init_q15( void arm_lms_norm_init_q15(
arm_lms_norm_instance_q15 * S, arm_lms_norm_instance_q15 * S,
uint16_t numTaps, uint16_t numTaps,
q15_t * pCoeffs, const q15_t * pCoeffs,
q15_t * pState, q15_t * pState,
q15_t mu, q15_t mu,
uint32_t blockSize, uint32_t blockSize,
@ -4395,7 +4395,7 @@ void arm_rfft_fast_f32(
uint16_t numTaps; /**< number of coefficients in the filter. */ uint16_t numTaps; /**< number of coefficients in the filter. */
uint16_t stateIndex; /**< state buffer index. Points to the oldest sample in the state buffer. */ uint16_t stateIndex; /**< state buffer index. Points to the oldest sample in the state buffer. */
float32_t *pState; /**< points to the state buffer array. The array is of length maxDelay+blockSize-1. */ float32_t *pState; /**< points to the state buffer array. The array is of length maxDelay+blockSize-1. */
float32_t *pCoeffs; /**< points to the coefficient array. The array is of length numTaps.*/ const float32_t *pCoeffs; /**< points to the coefficient array. The array is of length numTaps.*/
uint16_t maxDelay; /**< maximum offset specified by the pTapDelay array. */ uint16_t maxDelay; /**< maximum offset specified by the pTapDelay array. */
int32_t *pTapDelay; /**< points to the array of delay values. The array is of length numTaps. */ int32_t *pTapDelay; /**< points to the array of delay values. The array is of length numTaps. */
} arm_fir_sparse_instance_f32; } arm_fir_sparse_instance_f32;
@ -4408,7 +4408,7 @@ void arm_rfft_fast_f32(
uint16_t numTaps; /**< number of coefficients in the filter. */ uint16_t numTaps; /**< number of coefficients in the filter. */
uint16_t stateIndex; /**< state buffer index. Points to the oldest sample in the state buffer. */ uint16_t stateIndex; /**< state buffer index. Points to the oldest sample in the state buffer. */
q31_t *pState; /**< points to the state buffer array. The array is of length maxDelay+blockSize-1. */ q31_t *pState; /**< points to the state buffer array. The array is of length maxDelay+blockSize-1. */
q31_t *pCoeffs; /**< points to the coefficient array. The array is of length numTaps.*/ const q31_t *pCoeffs; /**< points to the coefficient array. The array is of length numTaps.*/
uint16_t maxDelay; /**< maximum offset specified by the pTapDelay array. */ uint16_t maxDelay; /**< maximum offset specified by the pTapDelay array. */
int32_t *pTapDelay; /**< points to the array of delay values. The array is of length numTaps. */ int32_t *pTapDelay; /**< points to the array of delay values. The array is of length numTaps. */
} arm_fir_sparse_instance_q31; } arm_fir_sparse_instance_q31;
@ -4421,7 +4421,7 @@ void arm_rfft_fast_f32(
uint16_t numTaps; /**< number of coefficients in the filter. */ uint16_t numTaps; /**< number of coefficients in the filter. */
uint16_t stateIndex; /**< state buffer index. Points to the oldest sample in the state buffer. */ uint16_t stateIndex; /**< state buffer index. Points to the oldest sample in the state buffer. */
q15_t *pState; /**< points to the state buffer array. The array is of length maxDelay+blockSize-1. */ q15_t *pState; /**< points to the state buffer array. The array is of length maxDelay+blockSize-1. */
q15_t *pCoeffs; /**< points to the coefficient array. The array is of length numTaps.*/ const q15_t *pCoeffs; /**< points to the coefficient array. The array is of length numTaps.*/
uint16_t maxDelay; /**< maximum offset specified by the pTapDelay array. */ uint16_t maxDelay; /**< maximum offset specified by the pTapDelay array. */
int32_t *pTapDelay; /**< points to the array of delay values. The array is of length numTaps. */ int32_t *pTapDelay; /**< points to the array of delay values. The array is of length numTaps. */
} arm_fir_sparse_instance_q15; } arm_fir_sparse_instance_q15;
@ -4434,7 +4434,7 @@ void arm_rfft_fast_f32(
uint16_t numTaps; /**< number of coefficients in the filter. */ uint16_t numTaps; /**< number of coefficients in the filter. */
uint16_t stateIndex; /**< state buffer index. Points to the oldest sample in the state buffer. */ uint16_t stateIndex; /**< state buffer index. Points to the oldest sample in the state buffer. */
q7_t *pState; /**< points to the state buffer array. The array is of length maxDelay+blockSize-1. */ q7_t *pState; /**< points to the state buffer array. The array is of length maxDelay+blockSize-1. */
q7_t *pCoeffs; /**< points to the coefficient array. The array is of length numTaps.*/ const q7_t *pCoeffs; /**< points to the coefficient array. The array is of length numTaps.*/
uint16_t maxDelay; /**< maximum offset specified by the pTapDelay array. */ uint16_t maxDelay; /**< maximum offset specified by the pTapDelay array. */
int32_t *pTapDelay; /**< points to the array of delay values. The array is of length numTaps. */ int32_t *pTapDelay; /**< points to the array of delay values. The array is of length numTaps. */
} arm_fir_sparse_instance_q7; } arm_fir_sparse_instance_q7;
@ -4469,7 +4469,7 @@ void arm_rfft_fast_f32(
void arm_fir_sparse_init_f32( void arm_fir_sparse_init_f32(
arm_fir_sparse_instance_f32 * S, arm_fir_sparse_instance_f32 * S,
uint16_t numTaps, uint16_t numTaps,
float32_t * pCoeffs, const float32_t * pCoeffs,
float32_t * pState, float32_t * pState,
int32_t * pTapDelay, int32_t * pTapDelay,
uint16_t maxDelay, uint16_t maxDelay,
@ -4505,7 +4505,7 @@ void arm_rfft_fast_f32(
void arm_fir_sparse_init_q31( void arm_fir_sparse_init_q31(
arm_fir_sparse_instance_q31 * S, arm_fir_sparse_instance_q31 * S,
uint16_t numTaps, uint16_t numTaps,
q31_t * pCoeffs, const q31_t * pCoeffs,
q31_t * pState, q31_t * pState,
int32_t * pTapDelay, int32_t * pTapDelay,
uint16_t maxDelay, uint16_t maxDelay,
@ -4543,7 +4543,7 @@ void arm_rfft_fast_f32(
void arm_fir_sparse_init_q15( void arm_fir_sparse_init_q15(
arm_fir_sparse_instance_q15 * S, arm_fir_sparse_instance_q15 * S,
uint16_t numTaps, uint16_t numTaps,
q15_t * pCoeffs, const q15_t * pCoeffs,
q15_t * pState, q15_t * pState,
int32_t * pTapDelay, int32_t * pTapDelay,
uint16_t maxDelay, uint16_t maxDelay,
@ -4581,7 +4581,7 @@ void arm_rfft_fast_f32(
void arm_fir_sparse_init_q7( void arm_fir_sparse_init_q7(
arm_fir_sparse_instance_q7 * S, arm_fir_sparse_instance_q7 * S,
uint16_t numTaps, uint16_t numTaps,
q7_t * pCoeffs, const q7_t * pCoeffs,
q7_t * pState, q7_t * pState,
int32_t * pTapDelay, int32_t * pTapDelay,
uint16_t maxDelay, uint16_t maxDelay,

@ -61,7 +61,7 @@
*/ */
void arm_abs_f32( void arm_abs_f32(
float32_t * pSrc, const float32_t * pSrc,
float32_t * pDst, float32_t * pDst,
uint32_t blockSize) uint32_t blockSize)
{ {

@ -51,7 +51,7 @@
*/ */
void arm_abs_q15( void arm_abs_q15(
q15_t * pSrc, const q15_t * pSrc,
q15_t * pDst, q15_t * pDst,
uint32_t blockSize) uint32_t blockSize)
{ {

@ -52,7 +52,7 @@
*/ */
void arm_abs_q31( void arm_abs_q31(
q31_t * pSrc, const q31_t * pSrc,
q31_t * pDst, q31_t * pDst,
uint32_t blockSize) uint32_t blockSize)
{ {

@ -55,7 +55,7 @@
*/ */
void arm_abs_q7( void arm_abs_q7(
q7_t * pSrc, const q7_t * pSrc,
q7_t * pDst, q7_t * pDst,
uint32_t blockSize) uint32_t blockSize)
{ {

@ -59,8 +59,8 @@
*/ */
void arm_add_f32( void arm_add_f32(
float32_t * pSrcA, const float32_t * pSrcA,
float32_t * pSrcB, const float32_t * pSrcB,
float32_t * pDst, float32_t * pDst,
uint32_t blockSize) uint32_t blockSize)
{ {

@ -52,8 +52,8 @@
*/ */
void arm_add_q15( void arm_add_q15(
q15_t * pSrcA, const q15_t * pSrcA,
q15_t * pSrcB, const q15_t * pSrcB,
q15_t * pDst, q15_t * pDst,
uint32_t blockSize) uint32_t blockSize)
{ {

@ -53,8 +53,8 @@
*/ */
void arm_add_q31( void arm_add_q31(
q31_t * pSrcA, const q31_t * pSrcA,
q31_t * pSrcB, const q31_t * pSrcB,
q31_t * pDst, q31_t * pDst,
uint32_t blockSize) uint32_t blockSize)
{ {

@ -52,8 +52,8 @@
*/ */
void arm_add_q7( void arm_add_q7(
q7_t * pSrcA, const q7_t * pSrcA,
q7_t * pSrcB, const q7_t * pSrcB,
q7_t * pDst, q7_t * pDst,
uint32_t blockSize) uint32_t blockSize)
{ {

@ -61,8 +61,8 @@
void arm_dot_prod_f32( void arm_dot_prod_f32(
float32_t * pSrcA, const float32_t * pSrcA,
float32_t * pSrcB, const float32_t * pSrcB,
uint32_t blockSize, uint32_t blockSize,
float32_t * result) float32_t * result)
{ {

@ -55,8 +55,8 @@
*/ */
void arm_dot_prod_q15( void arm_dot_prod_q15(
q15_t * pSrcA, const q15_t * pSrcA,
q15_t * pSrcB, const q15_t * pSrcB,
uint32_t blockSize, uint32_t blockSize,
q63_t * result) q63_t * result)
{ {

@ -56,8 +56,8 @@
*/ */
void arm_dot_prod_q31( void arm_dot_prod_q31(
q31_t * pSrcA, const q31_t * pSrcA,
q31_t * pSrcB, const q31_t * pSrcB,
uint32_t blockSize, uint32_t blockSize,
q63_t * result) q63_t * result)
{ {

@ -55,8 +55,8 @@
*/ */
void arm_dot_prod_q7( void arm_dot_prod_q7(
q7_t * pSrcA, const q7_t * pSrcA,
q7_t * pSrcB, const q7_t * pSrcB,
uint32_t blockSize, uint32_t blockSize,
q31_t * result) q31_t * result)
{ {

@ -59,8 +59,8 @@
*/ */
void arm_mult_f32( void arm_mult_f32(
float32_t * pSrcA, const float32_t * pSrcA,
float32_t * pSrcB, const float32_t * pSrcB,
float32_t * pDst, float32_t * pDst,
uint32_t blockSize) uint32_t blockSize)
{ {

@ -53,8 +53,8 @@
*/ */
void arm_mult_q15( void arm_mult_q15(
q15_t * pSrcA, const q15_t * pSrcA,
q15_t * pSrcB, const q15_t * pSrcB,
q15_t * pDst, q15_t * pDst,
uint32_t blockSize) uint32_t blockSize)
{ {

@ -52,8 +52,8 @@
*/ */
void arm_mult_q31( void arm_mult_q31(
q31_t * pSrcA, const q31_t * pSrcA,
q31_t * pSrcB, const q31_t * pSrcB,
q31_t * pDst, q31_t * pDst,
uint32_t blockSize) uint32_t blockSize)
{ {

@ -52,8 +52,8 @@
*/ */
void arm_mult_q7( void arm_mult_q7(
q7_t * pSrcA, const q7_t * pSrcA,
q7_t * pSrcB, const q7_t * pSrcB,
q7_t * pDst, q7_t * pDst,
uint32_t blockSize) uint32_t blockSize)
{ {

@ -60,7 +60,7 @@
*/ */
void arm_negate_f32( void arm_negate_f32(
float32_t * pSrc, const float32_t * pSrc,
float32_t * pDst, float32_t * pDst,
uint32_t blockSize) uint32_t blockSize)
{ {

@ -55,7 +55,7 @@
*/ */
void arm_negate_q15( void arm_negate_q15(
q15_t * pSrc, const q15_t * pSrc,
q15_t * pDst, q15_t * pDst,
uint32_t blockSize) uint32_t blockSize)
{ {

@ -51,7 +51,7 @@
*/ */
void arm_negate_q31( void arm_negate_q31(
q31_t * pSrc, const q31_t * pSrc,
q31_t * pDst, q31_t * pDst,
uint32_t blockSize) uint32_t blockSize)
{ {

@ -51,7 +51,7 @@
*/ */
void arm_negate_q7( void arm_negate_q7(
q7_t * pSrc, const q7_t * pSrc,
q7_t * pDst, q7_t * pDst,
uint32_t blockSize) uint32_t blockSize)
{ {

@ -62,7 +62,7 @@
void arm_offset_f32( void arm_offset_f32(
float32_t * pSrc, const float32_t * pSrc,
float32_t offset, float32_t offset,
float32_t * pDst, float32_t * pDst,
uint32_t blockSize) uint32_t blockSize)

@ -52,7 +52,7 @@
*/ */
void arm_offset_q15( void arm_offset_q15(
q15_t * pSrc, const q15_t * pSrc,
q15_t offset, q15_t offset,
q15_t * pDst, q15_t * pDst,
uint32_t blockSize) uint32_t blockSize)

@ -52,7 +52,7 @@
*/ */
void arm_offset_q31( void arm_offset_q31(
q31_t * pSrc, const q31_t * pSrc,
q31_t offset, q31_t offset,
q31_t * pDst, q31_t * pDst,
uint32_t blockSize) uint32_t blockSize)

@ -52,7 +52,7 @@
*/ */
void arm_offset_q7( void arm_offset_q7(
q7_t * pSrc, const q7_t * pSrc,
q7_t offset, q7_t offset,
q7_t * pDst, q7_t * pDst,
uint32_t blockSize) uint32_t blockSize)

@ -75,7 +75,7 @@
void arm_scale_f32( void arm_scale_f32(
float32_t * pSrc, const float32_t * pSrc,
float32_t scale, float32_t scale,
float32_t * pDst, float32_t * pDst,
uint32_t blockSize) uint32_t blockSize)

@ -54,7 +54,7 @@
void arm_scale_q15( void arm_scale_q15(
q15_t * pSrc, const q15_t * pSrc,
q15_t scaleFract, q15_t scaleFract,
int8_t shift, int8_t shift,
q15_t * pDst, q15_t * pDst,

@ -53,7 +53,7 @@
*/ */
void arm_scale_q31( void arm_scale_q31(
q31_t * pSrc, const q31_t * pSrc,
q31_t scaleFract, q31_t scaleFract,
int8_t shift, int8_t shift,
q31_t * pDst, q31_t * pDst,

@ -53,7 +53,7 @@
*/ */
void arm_scale_q7( void arm_scale_q7(
q7_t * pSrc, const q7_t * pSrc,
q7_t scaleFract, q7_t scaleFract,
int8_t shift, int8_t shift,
q7_t * pDst, q7_t * pDst,

@ -52,7 +52,7 @@
*/ */
void arm_shift_q15( void arm_shift_q15(
q15_t * pSrc, const q15_t * pSrc,
int8_t shiftBits, int8_t shiftBits,
q15_t * pDst, q15_t * pDst,
uint32_t blockSize) uint32_t blockSize)

@ -70,7 +70,7 @@
*/ */
void arm_shift_q31( void arm_shift_q31(
q31_t * pSrc, const q31_t * pSrc,
int8_t shiftBits, int8_t shiftBits,
q31_t * pDst, q31_t * pDst,
uint32_t blockSize) uint32_t blockSize)

@ -57,7 +57,7 @@
*/ */
void arm_shift_q7( void arm_shift_q7(
q7_t * pSrc, const q7_t * pSrc,
int8_t shiftBits, int8_t shiftBits,
q7_t * pDst, q7_t * pDst,
uint32_t blockSize) uint32_t blockSize)

@ -60,8 +60,8 @@
*/ */
void arm_sub_f32( void arm_sub_f32(
float32_t * pSrcA, const float32_t * pSrcA,
float32_t * pSrcB, const float32_t * pSrcB,
float32_t * pDst, float32_t * pDst,
uint32_t blockSize) uint32_t blockSize)
{ {

@ -52,8 +52,8 @@
*/ */
void arm_sub_q15( void arm_sub_q15(
q15_t * pSrcA, const q15_t * pSrcA,
q15_t * pSrcB, const q15_t * pSrcB,
q15_t * pDst, q15_t * pDst,
uint32_t blockSize) uint32_t blockSize)
{ {

@ -52,8 +52,8 @@
*/ */
void arm_sub_q31( void arm_sub_q31(
q31_t * pSrcA, const q31_t * pSrcA,
q31_t * pSrcB, const q31_t * pSrcB,
q31_t * pDst, q31_t * pDst,
uint32_t blockSize) uint32_t blockSize)
{ {

@ -52,8 +52,8 @@
*/ */
void arm_sub_q7( void arm_sub_q7(
q7_t * pSrcA, const q7_t * pSrcA,
q7_t * pSrcB, const q7_t * pSrcB,
q7_t * pDst, q7_t * pDst,
uint32_t blockSize) uint32_t blockSize)
{ {

@ -69,7 +69,7 @@
*/ */
void arm_cmplx_conj_f32( void arm_cmplx_conj_f32(
float32_t * pSrc, const float32_t * pSrc,
float32_t * pDst, float32_t * pDst,
uint32_t numSamples) uint32_t numSamples)
{ {

@ -51,7 +51,7 @@
*/ */
void arm_cmplx_conj_q15( void arm_cmplx_conj_q15(
q15_t * pSrc, const q15_t * pSrc,
q15_t * pDst, q15_t * pDst,
uint32_t numSamples) uint32_t numSamples)
{ {

@ -51,7 +51,7 @@
*/ */
void arm_cmplx_conj_q31( void arm_cmplx_conj_q31(
q31_t * pSrc, const q31_t * pSrc,
q31_t * pDst, q31_t * pDst,
uint32_t numSamples) uint32_t numSamples)
{ {

@ -74,8 +74,8 @@
*/ */
void arm_cmplx_dot_prod_f32( void arm_cmplx_dot_prod_f32(
float32_t * pSrcA, const float32_t * pSrcA,
float32_t * pSrcB, const float32_t * pSrcB,
uint32_t numSamples, uint32_t numSamples,
float32_t * realResult, float32_t * realResult,
float32_t * imagResult) float32_t * imagResult)

@ -56,8 +56,8 @@
*/ */
void arm_cmplx_dot_prod_q15( void arm_cmplx_dot_prod_q15(
q15_t * pSrcA, const q15_t * pSrcA,
q15_t * pSrcB, const q15_t * pSrcB,
uint32_t numSamples, uint32_t numSamples,
q31_t * realResult, q31_t * realResult,
q31_t * imagResult) q31_t * imagResult)

@ -57,8 +57,8 @@
*/ */
void arm_cmplx_dot_prod_q31( void arm_cmplx_dot_prod_q31(
q31_t * pSrcA, const q31_t * pSrcA,
q31_t * pSrcB, const q31_t * pSrcB,
uint32_t numSamples, uint32_t numSamples,
q63_t * realResult, q63_t * realResult,
q63_t * imagResult) q63_t * imagResult)

@ -70,7 +70,7 @@
void arm_cmplx_mag_f32( void arm_cmplx_mag_f32(
float32_t * pSrc, const float32_t * pSrc,
float32_t * pDst, float32_t * pDst,
uint32_t numSamples) uint32_t numSamples)
{ {

@ -51,7 +51,7 @@
*/ */
void arm_cmplx_mag_q15( void arm_cmplx_mag_q15(
q15_t * pSrc, const q15_t * pSrc,
q15_t * pDst, q15_t * pDst,
uint32_t numSamples) uint32_t numSamples)
{ {

@ -51,7 +51,7 @@
*/ */
void arm_cmplx_mag_q31( void arm_cmplx_mag_q31(
q31_t * pSrc, const q31_t * pSrc,
q31_t * pDst, q31_t * pDst,
uint32_t numSamples) uint32_t numSamples)
{ {

@ -71,7 +71,7 @@
*/ */
void arm_cmplx_mag_squared_f32( void arm_cmplx_mag_squared_f32(
float32_t * pSrc, const float32_t * pSrc,
float32_t * pDst, float32_t * pDst,
uint32_t numSamples) uint32_t numSamples)
{ {

@ -50,7 +50,7 @@
*/ */
void arm_cmplx_mag_squared_q15( void arm_cmplx_mag_squared_q15(
q15_t * pSrc, const q15_t * pSrc,
q15_t * pDst, q15_t * pDst,
uint32_t numSamples) uint32_t numSamples)
{ {

@ -52,7 +52,7 @@
*/ */
void arm_cmplx_mag_squared_q31( void arm_cmplx_mag_squared_q31(
q31_t * pSrc, const q31_t * pSrc,
q31_t * pDst, q31_t * pDst,
uint32_t numSamples) uint32_t numSamples)
{ {

@ -70,8 +70,8 @@
*/ */
void arm_cmplx_mult_cmplx_f32( void arm_cmplx_mult_cmplx_f32(
float32_t * pSrcA, const float32_t * pSrcA,
float32_t * pSrcB, const float32_t * pSrcB,
float32_t * pDst, float32_t * pDst,
uint32_t numSamples) uint32_t numSamples)
{ {

@ -51,8 +51,8 @@
*/ */
void arm_cmplx_mult_cmplx_q15( void arm_cmplx_mult_cmplx_q15(
q15_t * pSrcA, const q15_t * pSrcA,
q15_t * pSrcB, const q15_t * pSrcB,
q15_t * pDst, q15_t * pDst,
uint32_t numSamples) uint32_t numSamples)
{ {

@ -53,8 +53,8 @@
*/ */
void arm_cmplx_mult_cmplx_q31( void arm_cmplx_mult_cmplx_q31(
q31_t * pSrcA, const q31_t * pSrcA,
q31_t * pSrcB, const q31_t * pSrcB,
q31_t * pDst, q31_t * pDst,
uint32_t numSamples) uint32_t numSamples)
{ {

@ -71,8 +71,8 @@
*/ */
void arm_cmplx_mult_real_f32( void arm_cmplx_mult_real_f32(
float32_t * pSrcCmplx, const float32_t * pSrcCmplx,
float32_t * pSrcReal, const float32_t * pSrcReal,
float32_t * pCmplxDst, float32_t * pCmplxDst,
uint32_t numSamples) uint32_t numSamples)
{ {

@ -53,8 +53,8 @@
*/ */
void arm_cmplx_mult_real_q15( void arm_cmplx_mult_real_q15(
q15_t * pSrcCmplx, const q15_t * pSrcCmplx,
q15_t * pSrcReal, const q15_t * pSrcReal,
q15_t * pCmplxDst, q15_t * pCmplxDst,
uint32_t numSamples) uint32_t numSamples)
{ {

@ -53,8 +53,8 @@
*/ */
void arm_cmplx_mult_real_q31( void arm_cmplx_mult_real_q31(
q31_t * pSrcCmplx, const q31_t * pSrcCmplx,
q31_t * pSrcReal, const q31_t * pSrcReal,
q31_t * pCmplxDst, q31_t * pCmplxDst,
uint32_t numSamples) uint32_t numSamples)
{ {

@ -73,7 +73,7 @@
void arm_biquad_cas_df1_32x64_init_q31( void arm_biquad_cas_df1_32x64_init_q31(
arm_biquad_cas_df1_32x64_ins_q31 * S, arm_biquad_cas_df1_32x64_ins_q31 * S,
uint8_t numStages, uint8_t numStages,
q31_t * pCoeffs, const q31_t * pCoeffs,
q63_t * pState, q63_t * pState,
uint8_t postShift) uint8_t postShift)
{ {

@ -174,14 +174,14 @@
void arm_biquad_cas_df1_32x64_q31( void arm_biquad_cas_df1_32x64_q31(
const arm_biquad_cas_df1_32x64_ins_q31 * S, const arm_biquad_cas_df1_32x64_ins_q31 * S,
q31_t * pSrc, const q31_t * pSrc,
q31_t * pDst, q31_t * pDst,
uint32_t blockSize) uint32_t blockSize)
{ {
q31_t *pIn = pSrc; /* input pointer initialization */ const q31_t *pIn = pSrc; /* input pointer initialization */
q31_t *pOut = pDst; /* output pointer initialization */ q31_t *pOut = pDst; /* output pointer initialization */
q63_t *pState = S->pState; /* state pointer initialization */ q63_t *pState = S->pState; /* state pointer initialization */
q31_t *pCoeffs = S->pCoeffs; /* coeff pointer initialization */ const q31_t *pCoeffs = S->pCoeffs; /* coeff pointer initialization */
q63_t acc; /* accumulator */ q63_t acc; /* accumulator */
q31_t Xn1, Xn2; /* Input Filter state variables */ q31_t Xn1, Xn2; /* Input Filter state variables */
q63_t Yn1, Yn2; /* Output Filter state variables */ q63_t Yn1, Yn2; /* Output Filter state variables */

@ -164,14 +164,14 @@
void arm_biquad_cascade_df1_f32( void arm_biquad_cascade_df1_f32(
const arm_biquad_casd_df1_inst_f32 * S, const arm_biquad_casd_df1_inst_f32 * S,
float32_t * pSrc, const float32_t * pSrc,
float32_t * pDst, float32_t * pDst,
uint32_t blockSize) uint32_t blockSize)
{ {
float32_t *pIn = pSrc; /* source pointer */ const float32_t *pIn = pSrc; /* source pointer */
float32_t *pOut = pDst; /* destination pointer */ float32_t *pOut = pDst; /* destination pointer */
float32_t *pState = S->pState; /* pState pointer */ float32_t *pState = S->pState; /* pState pointer */
float32_t *pCoeffs = S->pCoeffs; /* coefficient pointer */ const float32_t *pCoeffs = S->pCoeffs; /* coefficient pointer */
float32_t acc; /* Simulates the accumulator */ float32_t acc; /* Simulates the accumulator */
float32_t b0, b1, b2, a1, a2; /* Filter coefficients */ float32_t b0, b1, b2, a1, a2; /* Filter coefficients */
float32_t Xn1, Xn2, Yn1, Yn2; /* Filter pState variables */ float32_t Xn1, Xn2, Yn1, Yn2; /* Filter pState variables */

@ -61,11 +61,11 @@
void arm_biquad_cascade_df1_fast_q15( void arm_biquad_cascade_df1_fast_q15(
const arm_biquad_casd_df1_inst_q15 * S, const arm_biquad_casd_df1_inst_q15 * S,
q15_t * pSrc, const q15_t * pSrc,
q15_t * pDst, q15_t * pDst,
uint32_t blockSize) uint32_t blockSize)
{ {
q15_t *pIn = pSrc; /* Source pointer */ const q15_t *pIn = pSrc; /* Source pointer */
q15_t *pOut = pDst; /* Destination pointer */ q15_t *pOut = pDst; /* Destination pointer */
q31_t in; /* Temporary variable to hold input value */ q31_t in; /* Temporary variable to hold input value */
q31_t out; /* Temporary variable to hold output value */ q31_t out; /* Temporary variable to hold output value */
@ -75,7 +75,7 @@ void arm_biquad_cascade_df1_fast_q15(
q31_t acc; /* Accumulator */ q31_t acc; /* Accumulator */
int32_t shift = (int32_t) (15 - S->postShift); /* Post shift */ int32_t shift = (int32_t) (15 - S->postShift); /* Post shift */
q15_t *pState = S->pState; /* State pointer */ q15_t *pState = S->pState; /* State pointer */
q15_t *pCoeffs = S->pCoeffs; /* Coefficient pointer */ const q15_t *pCoeffs = S->pCoeffs; /* Coefficient pointer */
uint32_t sample, stage = S->numStages; /* Stage loop counter */ uint32_t sample, stage = S->numStages; /* Stage loop counter */

@ -63,17 +63,17 @@
void arm_biquad_cascade_df1_fast_q31( void arm_biquad_cascade_df1_fast_q31(
const arm_biquad_casd_df1_inst_q31 * S, const arm_biquad_casd_df1_inst_q31 * S,
q31_t * pSrc, const q31_t * pSrc,
q31_t * pDst, q31_t * pDst,
uint32_t blockSize) uint32_t blockSize)
{ {
q31_t acc = 0; /* accumulator */ q31_t acc = 0; /* accumulator */
q31_t Xn1, Xn2, Yn1, Yn2; /* Filter state variables */ q31_t Xn1, Xn2, Yn1, Yn2; /* Filter state variables */
q31_t b0, b1, b2, a1, a2; /* Filter coefficients */ q31_t b0, b1, b2, a1, a2; /* Filter coefficients */
q31_t *pIn = pSrc; /* input pointer initialization */ const q31_t *pIn = pSrc; /* input pointer initialization */
q31_t *pOut = pDst; /* output pointer initialization */ q31_t *pOut = pDst; /* output pointer initialization */
q31_t *pState = S->pState; /* pState pointer initialization */ q31_t *pState = S->pState; /* pState pointer initialization */
q31_t *pCoeffs = S->pCoeffs; /* coeff pointer initialization */ const q31_t *pCoeffs = S->pCoeffs; /* coeff pointer initialization */
q31_t Xn; /* temporary input */ q31_t Xn; /* temporary input */
int32_t shift = (int32_t) S->postShift + 1; /* Shift to be applied to the output */ int32_t shift = (int32_t) S->postShift + 1; /* Shift to be applied to the output */
uint32_t sample, stage = S->numStages; /* loop counters */ uint32_t sample, stage = S->numStages; /* loop counters */

@ -76,7 +76,7 @@
void arm_biquad_cascade_df1_init_f32( void arm_biquad_cascade_df1_init_f32(
arm_biquad_casd_df1_inst_f32 * S, arm_biquad_casd_df1_inst_f32 * S,
uint8_t numStages, uint8_t numStages,
float32_t * pCoeffs, const float32_t * pCoeffs,
float32_t * pState) float32_t * pState)
{ {
/* Assign filter stages */ /* Assign filter stages */

@ -74,7 +74,7 @@
void arm_biquad_cascade_df1_init_q15( void arm_biquad_cascade_df1_init_q15(
arm_biquad_casd_df1_inst_q15 * S, arm_biquad_casd_df1_inst_q15 * S,
uint8_t numStages, uint8_t numStages,
q15_t * pCoeffs, const q15_t * pCoeffs,
q15_t * pState, q15_t * pState,
int8_t postShift) int8_t postShift)
{ {

@ -73,7 +73,7 @@
void arm_biquad_cascade_df1_init_q31( void arm_biquad_cascade_df1_init_q31(
arm_biquad_casd_df1_inst_q31 * S, arm_biquad_casd_df1_inst_q31 * S,
uint8_t numStages, uint8_t numStages,
q31_t * pCoeffs, const q31_t * pCoeffs,
q31_t * pState, q31_t * pState,
int8_t postShift) int8_t postShift)
{ {

@ -61,7 +61,7 @@
void arm_biquad_cascade_df1_q15( void arm_biquad_cascade_df1_q15(
const arm_biquad_casd_df1_inst_q15 * S, const arm_biquad_casd_df1_inst_q15 * S,
q15_t * pSrc, const q15_t * pSrc,
q15_t * pDst, q15_t * pDst,
uint32_t blockSize) uint32_t blockSize)
{ {
@ -71,7 +71,7 @@ void arm_biquad_cascade_df1_q15(
/* Run the below code for Cortex-M4 and Cortex-M3 */ /* Run the below code for Cortex-M4 and Cortex-M3 */
q15_t *pIn = pSrc; /* Source pointer */ const q15_t *pIn = pSrc; /* Source pointer */
q15_t *pOut = pDst; /* Destination pointer */ q15_t *pOut = pDst; /* Destination pointer */
q31_t in; /* Temporary variable to hold input value */ q31_t in; /* Temporary variable to hold input value */
q31_t out; /* Temporary variable to hold output value */ q31_t out; /* Temporary variable to hold output value */
@ -82,7 +82,7 @@ void arm_biquad_cascade_df1_q15(
q63_t acc; /* Accumulator */ q63_t acc; /* Accumulator */
int32_t lShift = (15 - (int32_t) S->postShift); /* Post shift */ int32_t lShift = (15 - (int32_t) S->postShift); /* Post shift */
q15_t *pState = S->pState; /* State pointer */ q15_t *pState = S->pState; /* State pointer */
q15_t *pCoeffs = S->pCoeffs; /* Coefficient pointer */ const q15_t *pCoeffs = S->pCoeffs; /* Coefficient pointer */
uint32_t sample, stage = (uint32_t) S->numStages; /* Stage loop counter */ uint32_t sample, stage = (uint32_t) S->numStages; /* Stage loop counter */
int32_t uShift = (32 - lShift); int32_t uShift = (32 - lShift);
@ -309,7 +309,7 @@ void arm_biquad_cascade_df1_q15(
q63_t acc; /* Accumulator */ q63_t acc; /* Accumulator */
int32_t shift = (15 - (int32_t) S->postShift); /* Post shift */ int32_t shift = (15 - (int32_t) S->postShift); /* Post shift */
q15_t *pState = S->pState; /* State pointer */ q15_t *pState = S->pState; /* State pointer */
q15_t *pCoeffs = S->pCoeffs; /* Coefficient pointer */ const q15_t *pCoeffs = S->pCoeffs; /* Coefficient pointer */
uint32_t sample, stage = (uint32_t) S->numStages; /* Stage loop counter */ uint32_t sample, stage = (uint32_t) S->numStages; /* Stage loop counter */
do do

@ -60,17 +60,17 @@
void arm_biquad_cascade_df1_q31( void arm_biquad_cascade_df1_q31(
const arm_biquad_casd_df1_inst_q31 * S, const arm_biquad_casd_df1_inst_q31 * S,
q31_t * pSrc, const q31_t * pSrc,
q31_t * pDst, q31_t * pDst,
uint32_t blockSize) uint32_t blockSize)
{ {
q63_t acc; /* accumulator */ q63_t acc; /* accumulator */
uint32_t uShift = ((uint32_t) S->postShift + 1U); uint32_t uShift = ((uint32_t) S->postShift + 1U);
uint32_t lShift = 32U - uShift; /* Shift to be applied to the output */ uint32_t lShift = 32U - uShift; /* Shift to be applied to the output */
q31_t *pIn = pSrc; /* input pointer initialization */ const q31_t *pIn = pSrc; /* input pointer initialization */
q31_t *pOut = pDst; /* output pointer initialization */ q31_t *pOut = pDst; /* output pointer initialization */
q31_t *pState = S->pState; /* pState pointer initialization */ q31_t *pState = S->pState; /* pState pointer initialization */
q31_t *pCoeffs = S->pCoeffs; /* coeff pointer initialization */ const q31_t *pCoeffs = S->pCoeffs; /* coeff pointer initialization */
q31_t Xn1, Xn2, Yn1, Yn2; /* Filter state variables */ q31_t Xn1, Xn2, Yn1, Yn2; /* Filter state variables */
q31_t b0, b1, b2, a1, a2; /* Filter coefficients */ q31_t b0, b1, b2, a1, a2; /* Filter coefficients */
q31_t Xn; /* temporary input */ q31_t Xn; /* temporary input */

@ -141,15 +141,15 @@
LOW_OPTIMIZATION_ENTER LOW_OPTIMIZATION_ENTER
void arm_biquad_cascade_df2T_f32( void arm_biquad_cascade_df2T_f32(
const arm_biquad_cascade_df2T_instance_f32 * S, const arm_biquad_cascade_df2T_instance_f32 * S,
float32_t * pSrc, const float32_t * pSrc,
float32_t * pDst, float32_t * pDst,
uint32_t blockSize) uint32_t blockSize)
{ {
float32_t *pIn = pSrc; /* source pointer */ const float32_t *pIn = pSrc; /* source pointer */
float32_t *pOut = pDst; /* destination pointer */ float32_t *pOut = pDst; /* destination pointer */
float32_t *pState = S->pState; /* State pointer */ float32_t *pState = S->pState; /* State pointer */
float32_t *pCoeffs = S->pCoeffs; /* coefficient pointer */ const float32_t *pCoeffs = S->pCoeffs; /* coefficient pointer */
float32_t acc1; /* accumulator */ float32_t acc1; /* accumulator */
float32_t b0, b1, b2, a1, a2; /* Filter coefficients */ float32_t b0, b1, b2, a1, a2; /* Filter coefficients */
float32_t Xn1; /* temporary input */ float32_t Xn1; /* temporary input */

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save