fix index variable

This commit is contained in:
Martin Kroeker 2024-07-31 11:18:58 +02:00 committed by GitHub
parent bb992395f0
commit 3aab164f02
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 18 additions and 18 deletions

View File

@ -96,28 +96,28 @@ int CNAME(BLASLONG n, BLASLONG dummy0, BLASLONG dummy1, FLOAT da, FLOAT *x,
if (inc_x == 1) { if (inc_x == 1) {
if (da == 0.0) { if (da == 0.0) {
if (dummy2 == 0) { if (dummy2 == 0) {
BLASLONG n1 = n & -16; BLASLONG n1 = n & -16;
if (n1 > 0) { if (n1 > 0) {
dscal_kernel_16_zero(n1, x); dscal_kernel_16_zero(n1, x);
j = n1; j = n1;
} }
while (j < n) { while (j < n) {
x[j] = 0.0; x[j] = 0.0;
j++; j++;
} }
} else { } else {
while (j < n) { while (j < n) {
if (!isnan(x[i])&& !isinf(x[i])) if (isfinite(x[j]))
x[i] = 0.0; x[j] = 0.0;
else else
x[i] = NAN; x[j] = NAN;
j++; j++;
} }
} }
} else { } else {
BLASLONG n1 = n & -16; BLASLONG n1 = n & -16;