Skip to content

Commit

Permalink
Run clang-format
Browse files Browse the repository at this point in the history
  • Loading branch information
jsallay committed Jan 25, 2025
1 parent 468cf2a commit e640ef7
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 16 deletions.
15 changes: 9 additions & 6 deletions kernels/volk/volk_32fc_index_max_16u.h
Original file line number Diff line number Diff line change
Expand Up @@ -193,8 +193,9 @@ static inline void volk_32fc_index_max_16u_a_avx2_variant_1(uint16_t* target,
#include <pmmintrin.h>
#include <xmmintrin.h>

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;
Expand Down Expand Up @@ -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;

Expand Down Expand Up @@ -501,8 +503,9 @@ volk_32fc_index_max_16u_rvv(uint16_t* target, const lv_32fc_t* src0, uint32_t nu
#include <float.h>
#include <riscv_vector.h>

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());
Expand Down
15 changes: 9 additions & 6 deletions kernels/volk/volk_32fc_index_max_32u.h
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,9 @@ static inline void volk_32fc_index_max_32u_a_avx2_variant_1(uint32_t* target,
#include <pmmintrin.h>
#include <xmmintrin.h>

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;

Expand Down Expand Up @@ -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;

Expand Down Expand Up @@ -542,8 +544,9 @@ volk_32fc_index_max_32u_rvv(uint32_t* target, const lv_32fc_t* src0, uint32_t nu
#include <float.h>
#include <riscv_vector.h>

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());
Expand Down
4 changes: 2 additions & 2 deletions kernels/volk/volk_32fc_x2_s32f_square_dist_scalar_mult_32f.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
*
* <b>Dispatcher Prototype</b>
* \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.
Expand Down
4 changes: 2 additions & 2 deletions kernels/volk/volk_32fc_x2_square_dist_32f.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
*
* <b>Dispatcher Prototype</b>
* \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.
Expand Down

0 comments on commit e640ef7

Please sign in to comment.