Differences From Artifact [b31a9c741a]:
- File generic/tclStrToD.c — part of check-in [5293802fe6] at 2019-03-02 18:15:36 on branch core-8-branch — Various tommath/numeric related optimizations: - Remove the DD_STEEL formatter: it isn't used anywhere in Tcl, and not recommended. - Remove double limit-checks, which are already done inside mp_to_unsigned_bin_n() (user: jan.nijtmans size: 130981) [more...]
To Artifact [a31c07b90a]:
- File generic/tclStrToD.c — part of check-in [0d77fb2374] at 2019-03-08 19:54:37 on branch core-8-branch — Use mp_get_bit() instead of mp_iseven()/mp_isodd(): Those latter functions are macro's currently, but will be real function in next libtommath. Bad idea for Tcl to depend on ... (user: jan.nijtmans size: 130986) [more...]
| ︙ | ︙ | |||
4573 4574 4575 4576 4577 4578 4579 |
if (lsb == -1-shift) {
/*
* Round to even
*/
mp_div_2d(a, -shift, &b, NULL);
| | | 4573 4574 4575 4576 4577 4578 4579 4580 4581 4582 4583 4584 4585 4586 4587 |
if (lsb == -1-shift) {
/*
* Round to even
*/
mp_div_2d(a, -shift, &b, NULL);
if (mp_get_bit(&b, 0)) {
if (b.sign == MP_ZPOS) {
mp_add_d(&b, 1, &b);
} else {
mp_sub_d(&b, 1, &b);
}
}
} else {
|
| ︙ | ︙ |