Skip to content

Commit

Permalink
Update zscal.c
Browse files Browse the repository at this point in the history
  • Loading branch information
martin-frbg authored Jul 31, 2024
1 parent 7caa356 commit 37e3c5f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion kernel/zarch/zscal.c
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,8 @@ int CNAME(BLASLONG n, BLASLONG dummy0, BLASLONG dummy1, FLOAT da_r, FLOAT da_i,
x[i + 1] = da_i * x[i];
else
x[i + 1] = NAN;
x[i] = temp0;
if (isfinite(x[i]))
x[i] = temp0;
i += 2;
j++;

Expand All @@ -396,6 +397,7 @@ int CNAME(BLASLONG n, BLASLONG dummy0, BLASLONG dummy1, FLOAT da_r, FLOAT da_i,
while (j < n) {

temp0 = da_r * x[i];
if (isinf(x[i])
x[i + 1] = da_r * x[i + 1];
x[i] = temp0;
i += 2;
Expand Down

0 comments on commit 37e3c5f

Please sign in to comment.