From af631d8f7ae33e50a130a0340dc0e57334338c26 Mon Sep 17 00:00:00 2001 From: Clayton Smith Date: Sat, 21 Oct 2023 22:49:54 -0400 Subject: [PATCH] Fix register size warnings in reverse kernel Signed-off-by: Clayton Smith --- kernels/volk/volk_32u_reverse_32u.h | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/kernels/volk/volk_32u_reverse_32u.h b/kernels/volk/volk_32u_reverse_32u.h index f65ec6098..f8dd57ee6 100644 --- a/kernels/volk/volk_32u_reverse_32u.h +++ b/kernels/volk/volk_32u_reverse_32u.h @@ -363,10 +363,20 @@ volk_32u_reverse_32u_neonv8(uint32_t* out, const uint32_t* in, unsigned int num_ } } -#else +#endif /* LV_HAVE_NEONV8 */ + #ifdef LV_HAVE_NEON #include +#if defined(__aarch64__) +#define DO_RBIT \ + __VOLK_ASM("rbit %w[result], %w[value]" \ + : [result] "=r"(*out_ptr) \ + : [value] "r"(*in_ptr) \ + :); \ + in_ptr++; \ + out_ptr++; +#else #define DO_RBIT \ __VOLK_ASM("rbit %[result], %[value]" \ : [result] "=r"(*out_ptr) \ @@ -374,6 +384,7 @@ volk_32u_reverse_32u_neonv8(uint32_t* out, const uint32_t* in, unsigned int num_ :); \ in_ptr++; \ out_ptr++; +#endif static inline void volk_32u_reverse_32u_arm(uint32_t* out, const uint32_t* in, unsigned int num_points) @@ -401,7 +412,6 @@ volk_32u_reverse_32u_arm(uint32_t* out, const uint32_t* in, unsigned int num_poi } #undef DO_RBIT #endif /* LV_HAVE_NEON */ -#endif /* LV_HAVE_NEONV8 */ #endif /* INCLUDED_volk_32u_reverse_32u_u_H */