Skip to content

Commit

Permalink
convert the beta=0 branch to a for loop as well
Browse files Browse the repository at this point in the history
  • Loading branch information
martin-frbg authored Jan 9, 2025
1 parent 8cc32f5 commit d91d4fa
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions kernel/generic/zgemm_beta.c
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ int CNAME(BLASLONG m, BLASLONG n, BLASLONG dummy1,
c_offset = c;

if (beta_r == 0. && beta_i == 0.) {
j = n;
do {

for (j=n;j>0;j--) {
c_offset1 = c_offset;
c_offset += ldc;

Expand Down Expand Up @@ -88,8 +88,7 @@ int CNAME(BLASLONG m, BLASLONG n, BLASLONG dummy1,
i--;
} while (i > 0);
}
j --;
} while (j > 0);
}

} else {

Expand Down

0 comments on commit d91d4fa

Please sign in to comment.