disallow subtraction/negation of error
This commit is contained in:
parent
c05a402b72
commit
581a8e26f1
@ -406,6 +406,9 @@ void negate_decn(dec80* x){
|
|||||||
#else
|
#else
|
||||||
static const exp_t xor_val = -(0x7f) - 1;
|
static const exp_t xor_val = -(0x7f) - 1;
|
||||||
#endif
|
#endif
|
||||||
|
if (decn_is_nan(x)){
|
||||||
|
return;
|
||||||
|
}
|
||||||
(x->exponent) ^= xor_val;
|
(x->exponent) ^= xor_val;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user