Browse Source

Handle INF and NAN

tags/v0.3.27
Martin Kroeker GitHub 2 years ago
parent
commit
f637e12713
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      kernel/riscv64/zscal.c

+ 1
- 0
kernel/riscv64/zscal.c 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] ;
}
}


Loading…
Cancel
Save