Dag-Erling Smørgrav
|
bc8e9d67ba
|
In both mpi_add_abs() and mpi_sub_abs(), make sure that the target is
untouched if the operation fails. Also ensure that A = A +/- A works.
|
2014-12-29 23:44:34 +00:00 |
|
Dag-Erling Smørgrav
|
98c6349d4a
|
In mpi_zero(), save a memset() if the target is already zero.
|
2014-12-29 23:22:54 +00:00 |
|
Dag-Erling Smørgrav
|
1412dac680
|
Shifting any number by zero places is a no-op, but so is shifting zero by
any number of places.
|
2014-12-29 23:20:26 +00:00 |
|
Dag-Erling Smørgrav
|
8228f19d5a
|
In mpi_copy(), any failure should leave the target untouched.
|
2014-12-29 23:18:57 +00:00 |
|
Dag-Erling Smørgrav
|
82f5c5cf77
|
In mpi_load(), use be32dec() when possible.
In mpi_set(), it is impossible for the value being loaded to exceed
the minimum size of an mpi; thus, there is no need for mpi_grow().
|
2014-12-29 15:08:09 +00:00 |
|
Dag-Erling Smørgrav
|
d4fd9a1958
|
rm unused variable
|
2014-08-12 07:33:30 +00:00 |
|
Dag-Erling Smørgrav
|
be31515f5e
|
Start of a multiple-precision integer arithmetic library.
|
2014-08-12 07:30:31 +00:00 |
|