Merge pull request #4429 from martin-frbg/issue4428

Handle NAN and INF in ARM and generic/s390x ZSCAL
This commit is contained in:
Martin Kroeker 2024-01-15 11:26:12 +01:00 committed by GitHub
commit 2527afaaa2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -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] ;
}
}