Skip to content

Commit

Permalink
Add length checks to conv_k7 kernels
Browse files Browse the repository at this point in the history
Signed-off-by: Clayton Smith <[email protected]>
  • Loading branch information
argilo committed Oct 14, 2023
1 parent a26a1b8 commit 71cb6ea
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions kernels/volk/volk_8u_conv_k7_r2puppet_8u.h
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,9 @@ static inline void volk_8u_conv_k7_r2puppet_8u_spiral(unsigned char* syms,
unsigned char* dec,
unsigned int framebits)
{

if (framebits < 12) {
return;
}

static int once = 1;
int d_numstates = (1 << 6);
Expand Down Expand Up @@ -183,7 +185,9 @@ static inline void volk_8u_conv_k7_r2puppet_8u_neonspiral(unsigned char* syms,
unsigned char* dec,
unsigned int framebits)
{

if (framebits < 12) {
return;
}

static int once = 1;
int d_numstates = (1 << 6);
Expand Down Expand Up @@ -266,7 +270,9 @@ static inline void volk_8u_conv_k7_r2puppet_8u_neonspiral(unsigned char* syms,
// unsigned char* dec,
// unsigned int framebits)
//{
//
// if (framebits < 12) {
// return;
// }
//
// static int once = 1;
// int d_numstates = (1 << 6);
Expand Down Expand Up @@ -347,7 +353,9 @@ static inline void volk_8u_conv_k7_r2puppet_8u_generic(unsigned char* syms,
unsigned char* dec,
unsigned int framebits)
{

if (framebits < 12) {
return;
}

static int once = 1;
int d_numstates = (1 << 6);
Expand Down

0 comments on commit 71cb6ea

Please sign in to comment.