Browse Source

avoid overflow in division

tags/v0.3.22^2
Martin Kroeker GitHub 2 years ago
parent
commit
3d27cbd9a3
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      lapack/getf2/getf2_k.c

+ 2
- 1
lapack/getf2/getf2_k.c View File

@@ -99,7 +99,8 @@ blasint CNAME(blas_arg_t *args, BLASLONG *range_m, BLASLONG *range_n, FLOAT *sa,
jp--;
temp1 = *(b + jp);

if (temp1 != ZERO) {
//if (temp1 != ZERO) {
if (fabs(temp1) > 1.e-305) {
temp1 = dp1 / temp1;

if (jp != j) {


Loading…
Cancel
Save