Update zscal.c

This commit is contained in:
Martin Kroeker 2024-07-31 14:26:00 +02:00 committed by GitHub
parent 7caa35666d
commit 37e3c5ff9d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 1 deletions

View File

@ -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++;
@ -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;