Skip to content

Commit

Permalink
Merge pull request #644 from argilo/fix-conv-k7
Browse files Browse the repository at this point in the history
Add length checks to conv_k7 kernels
  • Loading branch information
jdemel authored Oct 22, 2023
2 parents da574b4 + 71cb6ea commit 8bd2e1d
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 8bd2e1d

Please sign in to comment.