avoid overflow in division
This commit is contained in:
parent
a39ced0551
commit
3d27cbd9a3
|
@ -99,7 +99,8 @@ blasint CNAME(blas_arg_t *args, BLASLONG *range_m, BLASLONG *range_n, FLOAT *sa,
|
||||||
jp--;
|
jp--;
|
||||||
temp1 = *(b + jp);
|
temp1 = *(b + jp);
|
||||||
|
|
||||||
if (temp1 != ZERO) {
|
//if (temp1 != ZERO) {
|
||||||
|
if (fabs(temp1) > 1.e-305) {
|
||||||
temp1 = dp1 / temp1;
|
temp1 = dp1 / temp1;
|
||||||
|
|
||||||
if (jp != j) {
|
if (jp != j) {
|
||||||
|
|
Loading…
Reference in New Issue