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 May 31, 2024
1 parent ab13cfe commit ce130f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kernel/x86_64/zscal.c
Original file line number Diff line number Diff line change
Expand Up @@ -260,15 +260,15 @@ int CNAME(BLASLONG n, BLASLONG dummy0, BLASLONG dummy1, FLOAT da_r, FLOAT da_i,
temp0 = -da_i * x[i+1];
if (!isinf(x[i+1]))
x[i+1] = da_i * x[i];
else x[i+1] = NaN;
else x[i+1] = NAN;
x[i] = temp0;
if (isnan(x[i+inc_x]) || isinf(x[i+inc_x]))
temp1 = NAN;
else
temp1 = -da_i * x[i+1+inc_x];
if (!isinf(x[i+1+inc_x]))
x[i+1+inc_x] = da_i * x[i+inc_x];
else x[i+1+inc_x] = NaN;
else x[i+1+inc_x] = NAN;
x[i+inc_x] = temp1;
i += 2*inc_x ;
j+=2;
Expand Down

0 comments on commit ce130f1

Please sign in to comment.