Skip to content

Commit

Permalink
Handle NAN and INF
Browse files Browse the repository at this point in the history
  • Loading branch information
martin-frbg authored Jan 15, 2024
1 parent a782103 commit 0d2e486
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions kernel/arm/zscal.c
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ int CNAME(BLASLONG n, BLASLONG dummy0, BLASLONG dummy1, FLOAT da_r,FLOAT da_i, F
else
{
temp = - da_i * x[ip+1] ;
if (isnan(x[ip]) || isinf(x[ip])) temp = NAN;
x[ip+1] = da_i * x[ip] ;
}
}
Expand Down

0 comments on commit 0d2e486

Please sign in to comment.