From a3bc1e2c8394c3d97d38a162bbad5f8753d6e9e2 Mon Sep 17 00:00:00 2001 From: Richard Allen Date: Sat, 7 Jan 2023 14:23:31 -0600 Subject: [PATCH] Mark internal FFT functions as static This results in a slightly smaller overall FFT function when the compiler inlines the stage/merge functions, when it might not otherwise. This also resolves the GCC warnings: warning: no previous declaration for 'merge_rfft_f16' [-Wmissing-declarations] warning: no previous declaration for 'merge_rfft_f32' [-Wmissing-declarations] warning: no previous declaration for 'merge_rfft_f64' [-Wmissing-declarations] warning: no previous declaration for 'stage_rfft_f16' [-Wmissing-declarations] warning: no previous declaration for 'stage_rfft_f32' [-Wmissing-declarations] warning: no previous declaration for 'stage_rfft_f64' [-Wmissing-declarations] --- Source/TransformFunctions/arm_rfft_fast_f16.c | 8 ++++---- Source/TransformFunctions/arm_rfft_fast_f32.c | 8 ++++---- Source/TransformFunctions/arm_rfft_fast_f64.c | 4 ++-- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/Source/TransformFunctions/arm_rfft_fast_f16.c b/Source/TransformFunctions/arm_rfft_fast_f16.c index 1a603fad..e09ea62e 100755 --- a/Source/TransformFunctions/arm_rfft_fast_f16.c +++ b/Source/TransformFunctions/arm_rfft_fast_f16.c @@ -34,7 +34,7 @@ #if defined(ARM_MATH_MVE_FLOAT16) && !defined(ARM_MATH_AUTOVECTORIZE) -void stage_rfft_f16( +static void stage_rfft_f16( const arm_rfft_fast_instance_f16 * S, float16_t * p, float16_t * pOut) @@ -194,7 +194,7 @@ void stage_rfft_f16( } /* Prepares data for inverse cfft */ -void merge_rfft_f16( +static void merge_rfft_f16( const arm_rfft_fast_instance_f16 * S, float16_t * p, float16_t * pOut) @@ -313,7 +313,7 @@ void merge_rfft_f16( } #else -void stage_rfft_f16( +static void stage_rfft_f16( const arm_rfft_fast_instance_f16 * S, float16_t * p, float16_t * pOut) @@ -402,7 +402,7 @@ void stage_rfft_f16( } /* Prepares data for inverse cfft */ -void merge_rfft_f16( +static void merge_rfft_f16( const arm_rfft_fast_instance_f16 * S, float16_t * p, float16_t * pOut) diff --git a/Source/TransformFunctions/arm_rfft_fast_f32.c b/Source/TransformFunctions/arm_rfft_fast_f32.c index 3e94d5b4..e1f3e8dc 100644 --- a/Source/TransformFunctions/arm_rfft_fast_f32.c +++ b/Source/TransformFunctions/arm_rfft_fast_f32.c @@ -29,7 +29,7 @@ #include "dsp/transform_functions.h" #if defined(ARM_MATH_MVEF) && !defined(ARM_MATH_AUTOVECTORIZE) -void stage_rfft_f32( +static void stage_rfft_f32( const arm_rfft_fast_instance_f32 * S, float32_t * p, float32_t * pOut) @@ -188,7 +188,7 @@ void stage_rfft_f32( } /* Prepares data for inverse cfft */ -void merge_rfft_f32( +static void merge_rfft_f32( const arm_rfft_fast_instance_f32 * S, float32_t * p, float32_t * pOut) @@ -307,7 +307,7 @@ void merge_rfft_f32( } #else -void stage_rfft_f32( +static void stage_rfft_f32( const arm_rfft_fast_instance_f32 * S, float32_t * p, float32_t * pOut) @@ -396,7 +396,7 @@ void stage_rfft_f32( } /* Prepares data for inverse cfft */ -void merge_rfft_f32( +static void merge_rfft_f32( const arm_rfft_fast_instance_f32 * S, float32_t * p, float32_t * pOut) diff --git a/Source/TransformFunctions/arm_rfft_fast_f64.c b/Source/TransformFunctions/arm_rfft_fast_f64.c index a1e4ed01..da1056f7 100755 --- a/Source/TransformFunctions/arm_rfft_fast_f64.c +++ b/Source/TransformFunctions/arm_rfft_fast_f64.c @@ -28,7 +28,7 @@ #include "dsp/transform_functions.h" -void stage_rfft_f64( +static void stage_rfft_f64( const arm_rfft_fast_instance_f64 * S, float64_t * p, float64_t * pOut) @@ -115,7 +115,7 @@ void stage_rfft_f64( } /* Prepares data for inverse cfft */ -void merge_rfft_f64( +static void merge_rfft_f64( const arm_rfft_fast_instance_f64 * S, float64_t * p, float64_t * pOut)