diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2019-01-18 20:39:13 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2019-01-18 20:39:13 -0800 |
commit | c96ba19397d9fbb444d87615d7e7bc9679e05688 (patch) | |
tree | 16a429dfd48ff8b61819cf558f36f1bbd9a49d1d /mpi/mpi.h | |
parent | c5ce3d4d4d86a27b0cd0d872a8f98d097d6216a6 (diff) | |
download | txr-c96ba19397d9fbb444d87615d7e7bc9679e05688.tar.gz txr-c96ba19397d9fbb444d87615d7e7bc9679e05688.tar.bz2 txr-c96ba19397d9fbb444d87615d7e7bc9679e05688.zip |
mpi: some params should be mp_size, not mp_digit.
* mpi/mpi.c (s_mp_2expt, mp_trunc_comp, mp_trunc, mp_bit):
Arguments that give a number of bits or bit position should be
mp_size; they are not related to digit values.
* mpi/mpi.h (mp_trunc_comp, mp_trunc, mp_bit): Declaration
updated.
Diffstat (limited to 'mpi/mpi.h')
-rw-r--r-- | mpi/mpi.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -153,10 +153,10 @@ mp_err mp_and(mp_int *a, mp_int *b, mp_int *c); mp_err mp_or(mp_int *a, mp_int *b, mp_int *c); mp_err mp_xor(mp_int *a, mp_int *b, mp_int *c); mp_err mp_comp(mp_int *a, mp_int *b); -mp_nign mp_err mp_trunc_comp(mp_int *a, mp_int *b, mp_digit bits); -mp_nign mp_err mp_trunc(mp_int *a, mp_int *b, mp_digit bits); +mp_nign mp_err mp_trunc_comp(mp_int *a, mp_int *b, mp_size bits); +mp_nign mp_err mp_trunc(mp_int *a, mp_int *b, mp_size bits); mp_nign mp_err mp_shift(mp_int *a, mp_int *b, int bits); /* + left, - right */ -mp_err mp_bit(mp_int *a, mp_digit bit); +mp_err mp_bit(mp_int *a, mp_size bit); mp_nign mp_err mp_to_double(mp_int *mp, double *d); |