Fix cppcheck warnings related to nullPointerArithmeticRedundantCheck

This commit is contained in:
Vaibhav Shrivastava
2023-08-13 18:35:18 +02:00
committed by Laurent THOMAS
parent 537605a6ea
commit efc5ce39d3
4 changed files with 38 additions and 19 deletions
+2 -1
View File
@@ -141,7 +141,8 @@ void rotate_cpx_vector(const c16_t *const x, const c16_t *const alpha, c16_t *y,
*yd=simde_mm256_shuffle_epi8(tmp,perm_mask);
}
c16_t* alpha16=(c16_t*) alpha, *yLast;
yLast=((c16_t*)y)+(N/8)*8;
if (y != NULL)
yLast = ((c16_t *)y) + (N / 8) * 8;
for (c16_t* xTail=(c16_t*) end;
xTail<((c16_t*) x)+N;
xTail++, yLast++) {