1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-03-22 06:38:37 -05:00

Correct the comment in mpint_i.h.

At some point in mpint.c development I switched the main macro defined
by the ifdefs from BIGNUM_INT_BITS to the new BIGNUM_INT_BITS_BITS, so
I could loop from 0 to the latter in safe bit-shift loops that test
each bit of a shift count. But I forgot to change the comment
accordingly.
This commit is contained in:
Simon Tatham 2019-01-07 07:20:54 +00:00
parent 9a59666577
commit 48f4b0a36c

View File

@ -17,12 +17,12 @@
* type used to hold the carry flag taken as input and output by * type used to hold the carry flag taken as input and output by
* the BignumADC macro (see below). * the BignumADC macro (see below).
* *
* - four constant macros: BIGNUM_INT_BITS, BIGNUM_INT_BYTES, * - five constant macros:
* BIGNUM_TOP_BIT, BIGNUM_INT_MASK. These should be more or less * + BIGNUM_INT_BITS, the number of bits in BignumInt,
* self-explanatory, but just in case, they give the number of bits * + BIGNUM_INT_BYTES, the number of bytes that works out to
* in BignumInt, the number of bytes that works out to, the * + BIGNUM_TOP_BIT, the BignumInt value consisting of only the top bit
* BignumInt value consisting of only the top bit, and the * + BIGNUM_INT_MASK, the BignumInt value with all bits set
* BignumInt value with all bits set. * + BIGNUM_INT_BITS_BITS, log to the base 2 of BIGNUM_INT_BITS.
* *
* - four statement macros: BignumADC, BignumMUL, BignumMULADD, * - four statement macros: BignumADC, BignumMUL, BignumMULADD,
* BignumMULADD2. These do various kinds of multi-word arithmetic, * BignumMULADD2. These do various kinds of multi-word arithmetic,
@ -39,7 +39,7 @@
* halves of the double-width value a*b + addend1 + addend2. * halves of the double-width value a*b + addend1 + addend2.
* *
* Every branch of the main ifdef below defines the type BignumInt and * Every branch of the main ifdef below defines the type BignumInt and
* the value BIGNUM_INT_BITS. The other three constant macros are * the value BIGNUM_INT_BITS_BITS. The other constant macros are
* filled in by common code further down. * filled in by common code further down.
* *
* Most branches also define a macro DEFINE_BIGNUMDBLINT containing a * Most branches also define a macro DEFINE_BIGNUMDBLINT containing a