Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix register size warnings in reverse kernel #668

Merged
merged 1 commit into from
Oct 22, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions kernels/volk/volk_32u_reverse_32u.h
Original file line number Diff line number Diff line change
Expand Up @@ -363,17 +363,28 @@ 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 <arm_neon.h>

#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) \
: [value] "r"(*in_ptr) \
:); \
in_ptr++; \
out_ptr++;
#endif

static inline void
volk_32u_reverse_32u_arm(uint32_t* out, const uint32_t* in, unsigned int num_points)
Expand Down Expand Up @@ -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 */
Loading