Commits

Anonymous committed 3c947eb

don't apply permutation if todo rows == 0

  • Participants
  • Parent commits 57ef83c

Comments (0)

Files changed (1)

File src/permutation.c

  */
 void _mzd_apply_p_right_even(mzd_t *A, mzp_t *P, size_t start_row, size_t start_col, int notrans) {
   assert(A->offset = 0);
+  if(A->nrows - start_row == 0)
+    return;
   const size_t length = MIN(P->length,A->ncols);
   const size_t width = A->width;
   size_t step_size = MIN(A->nrows-start_row, MAX((CPU_L1_CACHE>>3)/A->width,1));