Skip to content

Commit

Permalink
Correct issue #197 : missing prototypes
Browse files Browse the repository at this point in the history
  • Loading branch information
christophe0606 committed Jul 16, 2024
1 parent 89fa43d commit 60a6ec1
Show file tree
Hide file tree
Showing 13 changed files with 76 additions and 9 deletions.
17 changes: 17 additions & 0 deletions Source/DistanceFunctions/arm_boolean_distance_template.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,23 @@

#define FUNC(EXT) _FUNC(arm_boolean_distance, EXT)

extern void FUNC(EXT)(const uint32_t *pA
, const uint32_t *pB
, uint32_t numberOfBools
#ifdef TT
, uint32_t *cTT
#endif
#ifdef FF
, uint32_t *cFF
#endif
#ifdef TF
, uint32_t *cTF
#endif
#ifdef FT
, uint32_t *cFT
#endif
);

/**
* @brief Elements of boolean distances
*
Expand Down
4 changes: 2 additions & 2 deletions Source/FastMathFunctions/arm_vlog_f16.c
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ static float16_t lut_logf16[NB_LUT_LOGF16]={
0.0625,-0.00195305,0.0000804357};


float16_t logf16_scalar(float16_t x)
static float16_t logf16_scalar(float16_t x)
{
int16_t i = arm_typecast_s16_f16(x);

Expand Down Expand Up @@ -108,7 +108,7 @@ float16_t logf16_scalar(float16_t x)
#include "arm_vec_math_f16.h"


float16x8_t vlogq_lut_f16(float16x8_t vecIn)
static float16x8_t vlogq_lut_f16(float16x8_t vecIn)
{
int16x8_t i = vreinterpretq_s16_f16(vecIn);

Expand Down
2 changes: 1 addition & 1 deletion Source/FastMathFunctions/arm_vlog_q15.c
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ static uint16_t arm_scalar_log_q15(uint16_t src)
#if defined(ARM_MATH_MVEI) && !defined(ARM_MATH_AUTOVECTORIZE)


q15x8_t vlogq_q15(q15x8_t src)
static q15x8_t vlogq_q15(q15x8_t src)
{

int i;
Expand Down
2 changes: 1 addition & 1 deletion Source/FastMathFunctions/arm_vlog_q31.c
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ static uint32_t arm_scalar_log_q31(uint32_t src)
#if defined(ARM_MATH_MVEI) && !defined(ARM_MATH_AUTOVECTORIZE)


q31x4_t vlogq_q31(q31x4_t src)
static q31x4_t vlogq_q31(q31x4_t src)
{

int32_t i;
Expand Down
4 changes: 2 additions & 2 deletions Source/FilteringFunctions/arm_fir_q7.c
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ static void arm_fir_q7_49_64_mve(const arm_fir_instance_q7 * S,
}


ARM_DSP_ATTRIBUTE void arm_fir_q7_33_48_mve(const arm_fir_instance_q7 * S,
static void arm_fir_q7_33_48_mve(const arm_fir_instance_q7 * S,
const q7_t * __restrict pSrc,
q7_t * __restrict pDst, uint32_t blockSize)
{
Expand All @@ -175,7 +175,7 @@ static void arm_fir_q7_17_32_mve(const arm_fir_instance_q7 * S,
}


ARM_DSP_ATTRIBUTE void arm_fir_q7_1_16_mve(const arm_fir_instance_q7 * S,
static void arm_fir_q7_1_16_mve(const arm_fir_instance_q7 * S,
const q7_t * __restrict pSrc,
q7_t * __restrict pDst, uint32_t blockSize)
{
Expand Down
15 changes: 15 additions & 0 deletions Source/TransformFunctions/arm_bitreversal.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@
#include "dsp/transform_functions.h"
#include "arm_common_tables.h"

void arm_bitreversal_f32(
float32_t * pSrc,
uint16_t fftSize,
uint16_t bitRevFactor,
const uint16_t * pBitRevTab);

/**
@brief In-place floating-point bit reversal function.
Expand Down Expand Up @@ -99,6 +104,11 @@ ARM_DSP_ATTRIBUTE void arm_bitreversal_f32(
}
}

void arm_bitreversal_q31(
q31_t * pSrc,
uint32_t fftLen,
uint16_t bitRevFactor,
const uint16_t * pBitRevTab);

/**
@brief In-place Q31 bit reversal function.
Expand Down Expand Up @@ -168,6 +178,11 @@ ARM_DSP_ATTRIBUTE void arm_bitreversal_q31(
}
}

void arm_bitreversal_q15(
q15_t * pSrc16,
uint32_t fftLen,
uint16_t bitRevFactor,
const uint16_t * pBitRevTab);


/**
Expand Down
15 changes: 15 additions & 0 deletions Source/TransformFunctions/arm_bitreversal2.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@
#include "dsp/transform_functions.h"
#include "arm_common_tables.h"

void arm_bitreversal_64(
uint64_t *pSrc,
const uint16_t bitRevLen,
const uint16_t *pBitRevTab);


/**
@brief In-place 64 bit reversal function.
Expand Down Expand Up @@ -64,6 +69,11 @@ ARM_DSP_ATTRIBUTE void arm_bitreversal_64(
}
}

void arm_bitreversal_32(
uint32_t *pSrc,
const uint16_t bitRevLen,
const uint16_t *pBitRevTab);

/**
@brief In-place 32 bit reversal function.
@param[in,out] pSrc points to in-place buffer of unknown 32-bit data type
Expand Down Expand Up @@ -97,6 +107,11 @@ ARM_DSP_ATTRIBUTE void arm_bitreversal_32(
}
}

void arm_bitreversal_16(
uint16_t *pSrc,
const uint16_t bitRevLen,
const uint16_t *pBitRevTab);


/**
@brief In-place 16 bit reversal function.
Expand Down
6 changes: 6 additions & 0 deletions Source/TransformFunctions/arm_bitreversal_f16.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@

#include "dsp/transform_functions_f16.h"

void arm_bitreversal_f16(
float16_t * pSrc,
uint16_t fftSize,
uint16_t bitRevFactor,
const uint16_t * pBitRevTab);

/*
* @brief In-place bit reversal function.
* @param[in, out] *pSrc points to the in-place buffer of floating-point data type.
Expand Down
4 changes: 2 additions & 2 deletions Source/TransformFunctions/arm_cfft_f32.c
Original file line number Diff line number Diff line change
Expand Up @@ -754,7 +754,7 @@ extern void arm_bitreversal_32(
*/

ARM_DSP_ATTRIBUTE void arm_cfft_radix8by2_f32 (arm_cfft_instance_f32 * S, float32_t * p1)
static void arm_cfft_radix8by2_f32 (arm_cfft_instance_f32 * S, float32_t * p1)
{
uint32_t L = S->fftLen;
float32_t * pCol1, * pCol2, * pMid1, * pMid2;
Expand Down Expand Up @@ -868,7 +868,7 @@ ARM_DSP_ATTRIBUTE void arm_cfft_radix8by2_f32 (arm_cfft_instance_f32 * S, float3
arm_radix8_butterfly_f32 (pCol2, L, (float32_t *) S->pTwiddle, 2U);
}

ARM_DSP_ATTRIBUTE void arm_cfft_radix8by4_f32 (arm_cfft_instance_f32 * S, float32_t * p1)
static void arm_cfft_radix8by4_f32 (arm_cfft_instance_f32 * S, float32_t * p1)
{
uint32_t L = S->fftLen >> 1;
float32_t * pCol1, *pCol2, *pCol3, *pCol4, *pEnd1, *pEnd2, *pEnd3, *pEnd4;
Expand Down
2 changes: 1 addition & 1 deletion Source/TransformFunctions/arm_cfft_f64.c
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ ARM_DSP_ATTRIBUTE void arm_radix4_butterfly_f64(
* @param[in] twidCoefModifier twiddle coefficient modifier that supports different size FFTs with the same twiddle factor table.
*/

ARM_DSP_ATTRIBUTE void arm_cfft_radix4by2_f64(
static void arm_cfft_radix4by2_f64(
float64_t * pSrc,
uint32_t fftLen,
const float64_t * pCoef)
Expand Down
5 changes: 5 additions & 0 deletions Source/TransformFunctions/arm_cfft_radix8_f16.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@

#if defined(ARM_FLOAT16_SUPPORTED)

void arm_radix8_butterfly_f16(
float16_t * pSrc,
uint16_t fftLen,
const float16_t * pCoef,
uint16_t twidCoefModifier);

/* ----------------------------------------------------------------------
* Internal helper function used by the FFTs
Expand Down
6 changes: 6 additions & 0 deletions Source/TransformFunctions/arm_cfft_radix8_f32.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,12 @@
* Internal helper function used by the FFTs
* -------------------------------------------------------------------- */

void arm_radix8_butterfly_f32(
float32_t * pSrc,
uint16_t fftLen,
const float32_t * pCoef,
uint16_t twidCoefModifier);

/**
brief Core function for the floating-point CFFT butterfly process.
param[in,out] pSrc points to the in-place buffer of floating-point data type.
Expand Down
3 changes: 3 additions & 0 deletions Testing/cmsis_build/cdefault.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ default:
- -Wno-parentheses-equality
- -Wno-reserved-identifier
- -ffunction-sections
- -Wmissing-prototypes
- -DARM_DSP_ATTRIBUTE="__attribute__((weak))"
- -DARM_DSP_TABLE_ATTRIBUTE="__attribute__((section (\"dsp_table\")))"
CPP:
Expand Down Expand Up @@ -70,6 +71,7 @@ default:
- -Wno-maybe-uninitialized
- -fdata-sections
- -mfp16-format=ieee
- -Wmissing-prototypes
- -DARM_DSP_ATTRIBUTE="__attribute__((weak))"
- -DARM_DSP_TABLE_ATTRIBUTE="__attribute__((section (\"dsp_table\")))"
CPP:
Expand Down Expand Up @@ -120,6 +122,7 @@ default:
- -Wno-parentheses-equality
- -Wno-reserved-identifier
- -ffunction-sections
- -Wmissing-prototypes
- -DARM_DSP_ATTRIBUTE="__attribute__((weak))"
- -DARM_DSP_TABLE_ATTRIBUTE="__attribute__((section (\"dsp_table\")))"
CPP:
Expand Down

0 comments on commit 60a6ec1

Please sign in to comment.