From e640ef7d93cc4aceb64ec3bfce41115e8a89fe9d Mon Sep 17 00:00:00 2001 From: John Sallay Date: Fri, 24 Jan 2025 21:48:27 -0500 Subject: [PATCH] Run clang-format --- kernels/volk/volk_32fc_index_max_16u.h | 15 +++++++++------ kernels/volk/volk_32fc_index_max_32u.h | 15 +++++++++------ ...olk_32fc_x2_s32f_square_dist_scalar_mult_32f.h | 4 ++-- kernels/volk/volk_32fc_x2_square_dist_32f.h | 4 ++-- 4 files changed, 22 insertions(+), 16 deletions(-) diff --git a/kernels/volk/volk_32fc_index_max_16u.h b/kernels/volk/volk_32fc_index_max_16u.h index 25a3f1ac..f0aebb2b 100644 --- a/kernels/volk/volk_32fc_index_max_16u.h +++ b/kernels/volk/volk_32fc_index_max_16u.h @@ -193,8 +193,9 @@ static inline void volk_32fc_index_max_16u_a_avx2_variant_1(uint16_t* target, #include #include -static inline void -volk_32fc_index_max_16u_a_sse3(uint16_t* target, const lv_32fc_t* src0, uint32_t num_points) +static inline void volk_32fc_index_max_16u_a_sse3(uint16_t* target, + const lv_32fc_t* src0, + uint32_t num_points) { num_points = (num_points > USHRT_MAX) ? USHRT_MAX : num_points; const uint32_t num_bytes = num_points * 8; @@ -308,8 +309,9 @@ volk_32fc_index_max_16u_a_sse3(uint16_t* target, const lv_32fc_t* src0, uint32_t #endif /*LV_HAVE_SSE3*/ #ifdef LV_HAVE_GENERIC -static inline void -volk_32fc_index_max_16u_generic(uint16_t* target, const lv_32fc_t* src0, uint32_t num_points) +static inline void volk_32fc_index_max_16u_generic(uint16_t* target, + const lv_32fc_t* src0, + uint32_t num_points) { num_points = (num_points > USHRT_MAX) ? USHRT_MAX : num_points; @@ -501,8 +503,9 @@ volk_32fc_index_max_16u_rvv(uint16_t* target, const lv_32fc_t* src0, uint32_t nu #include #include -static inline void -volk_32fc_index_max_16u_rvvseg(uint16_t* target, const lv_32fc_t* src0, uint32_t num_points) +static inline void volk_32fc_index_max_16u_rvvseg(uint16_t* target, + const lv_32fc_t* src0, + uint32_t num_points) { vfloat32m4_t vmax = __riscv_vfmv_v_f_f32m4(0, __riscv_vsetvlmax_e32m4()); vuint16m2_t vmaxi = __riscv_vmv_v_x_u16m2(0, __riscv_vsetvlmax_e16m2()); diff --git a/kernels/volk/volk_32fc_index_max_32u.h b/kernels/volk/volk_32fc_index_max_32u.h index 500aa760..7f824cdc 100644 --- a/kernels/volk/volk_32fc_index_max_32u.h +++ b/kernels/volk/volk_32fc_index_max_32u.h @@ -181,8 +181,9 @@ static inline void volk_32fc_index_max_32u_a_avx2_variant_1(uint32_t* target, #include #include -static inline void -volk_32fc_index_max_32u_a_sse3(uint32_t* target, const lv_32fc_t* src0, uint32_t num_points) +static inline void volk_32fc_index_max_32u_a_sse3(uint32_t* target, + const lv_32fc_t* src0, + uint32_t num_points) { const uint32_t num_bytes = num_points * 8; @@ -295,8 +296,9 @@ volk_32fc_index_max_32u_a_sse3(uint32_t* target, const lv_32fc_t* src0, uint32_t #endif /*LV_HAVE_SSE3*/ #ifdef LV_HAVE_GENERIC -static inline void -volk_32fc_index_max_32u_generic(uint32_t* target, const lv_32fc_t* src0, uint32_t num_points) +static inline void volk_32fc_index_max_32u_generic(uint32_t* target, + const lv_32fc_t* src0, + uint32_t num_points) { const uint32_t num_bytes = num_points * 8; @@ -542,8 +544,9 @@ volk_32fc_index_max_32u_rvv(uint32_t* target, const lv_32fc_t* src0, uint32_t nu #include #include -static inline void -volk_32fc_index_max_32u_rvvseg(uint32_t* target, const lv_32fc_t* src0, uint32_t num_points) +static inline void volk_32fc_index_max_32u_rvvseg(uint32_t* target, + const lv_32fc_t* src0, + uint32_t num_points) { vfloat32m4_t vmax = __riscv_vfmv_v_f_f32m4(0, __riscv_vsetvlmax_e32m4()); vuint32m4_t vmaxi = __riscv_vmv_v_x_u32m4(0, __riscv_vsetvlmax_e32m4()); diff --git a/kernels/volk/volk_32fc_x2_s32f_square_dist_scalar_mult_32f.h b/kernels/volk/volk_32fc_x2_s32f_square_dist_scalar_mult_32f.h index 781ce068..955ea4b0 100644 --- a/kernels/volk/volk_32fc_x2_s32f_square_dist_scalar_mult_32f.h +++ b/kernels/volk/volk_32fc_x2_s32f_square_dist_scalar_mult_32f.h @@ -17,8 +17,8 @@ * * Dispatcher Prototype * \code - * void volk_32fc_x2_s32f_square_dist_scalar_mult_32f(float* target, const lv_32fc_t* src0, - * const lv_32fc_t* points, float scalar, unsigned int num_points) \endcode + * void volk_32fc_x2_s32f_square_dist_scalar_mult_32f(float* target, const lv_32fc_t* + * src0, const lv_32fc_t* points, float scalar, unsigned int num_points) \endcode * * \b Inputs * \li src0: The complex input. Only the first point is used. diff --git a/kernels/volk/volk_32fc_x2_square_dist_32f.h b/kernels/volk/volk_32fc_x2_square_dist_32f.h index bfd44b58..7b3a5d47 100644 --- a/kernels/volk/volk_32fc_x2_square_dist_32f.h +++ b/kernels/volk/volk_32fc_x2_square_dist_32f.h @@ -17,8 +17,8 @@ * * Dispatcher Prototype * \code - * void volk_32fc_x2_square_dist_32f(float* target, const lv_32fc_t* src0, lv_32fc_t* points, - * unsigned int num_points) { \endcode + * void volk_32fc_x2_square_dist_32f(float* target, const lv_32fc_t* src0, lv_32fc_t* + * points, unsigned int num_points) { \endcode * * \b Inputs * \li src0: The complex input. Only the first point is used.