Skip to content

Commit 0a56038

Browse files
committed
move #define to power_spectrum file
Signed-off-by: Magnus Lundmark <[email protected]>
1 parent ac688d2 commit 0a56038

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

kernels/volk/volk_32fc_s32f_power_spectrum_32f.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,10 @@ volk_32fc_s32f_power_spectrum_32f_neon(float* logPowerOutput,
146146
#ifdef LV_HAVE_RVV
147147
#include <riscv_vector.h>
148148

149+
#ifndef LOG_POLY_DEGREE
150+
#define LOG_POLY_DEGREE 6
151+
#endif
152+
149153
static inline void volk_32fc_s32f_power_spectrum_32f_rvv(float* logPowerOutput,
150154
const lv_32fc_t* complexFFTInput,
151155
const float normalizationFactor,
@@ -226,6 +230,10 @@ static inline void volk_32fc_s32f_power_spectrum_32f_rvv(float* logPowerOutput,
226230
#ifdef LV_HAVE_RVVSEG
227231
#include <riscv_vector.h>
228232

233+
#ifndef LOG_POLY_DEGREE
234+
#define LOG_POLY_DEGREE 6
235+
#endif
236+
229237
static inline void
230238
volk_32fc_s32f_power_spectrum_32f_rvvseg(float* logPowerOutput,
231239
const lv_32fc_t* complexFFTInput,

lib/kernel_tests.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ std::vector<volk_test_case_t> init_test_list(volk_test_params_t test_params)
3838
{
3939
const float inf = std::numeric_limits<float>::infinity();
4040
const float nan = std::nanf("");
41-
41+
4242
// Some kernels need a lower tolerance
4343
volk_test_params_t test_params_inacc = test_params.make_tol(1e-2);
4444
volk_test_params_t test_params_inacc_tenth = test_params.make_tol(1e-1);

0 commit comments

Comments
 (0)