Fix some comments
This commit is contained in:
parent
5a0c39f52e
commit
b26bd5082e
2
mp_mul.c
2
mp_mul.c
@ -17,7 +17,7 @@ mp_err mp_mul(const mp_int *a, const mp_int *b, mp_int *c)
|
|||||||
* The bigger one needs to be at least about one MP_KARATSUBA_MUL_CUTOFF bigger
|
* The bigger one needs to be at least about one MP_KARATSUBA_MUL_CUTOFF bigger
|
||||||
* to make some sense, but it depends on architecture, OS, position of the
|
* to make some sense, but it depends on architecture, OS, position of the
|
||||||
* stars... so YMMV.
|
* stars... so YMMV.
|
||||||
* Using it to cut the input into slices small enough for fast_s_mp_mul_digs
|
* Using it to cut the input into slices small enough for s_mp_mul_digs_fast
|
||||||
* was actually slower on the author's machine, but YMMV.
|
* was actually slower on the author's machine, but YMMV.
|
||||||
*/
|
*/
|
||||||
(min_len >= MP_KARATSUBA_MUL_CUTOFF) &&
|
(min_len >= MP_KARATSUBA_MUL_CUTOFF) &&
|
||||||
|
@ -3,8 +3,8 @@
|
|||||||
/* LibTomMath, multiple-precision integer library -- Tom St Denis */
|
/* LibTomMath, multiple-precision integer library -- Tom St Denis */
|
||||||
/* SPDX-License-Identifier: Unlicense */
|
/* SPDX-License-Identifier: Unlicense */
|
||||||
|
|
||||||
/* this is a modified version of fast_s_mul_digs that only produces
|
/* this is a modified version of s_mp_mul_digs_fast that only produces
|
||||||
* output digits *above* digs. See the comments for fast_s_mul_digs
|
* output digits *above* digs. See the comments for s_mp_mul_digs_fast
|
||||||
* to see how it works.
|
* to see how it works.
|
||||||
*
|
*
|
||||||
* This is used in the Barrett reduction since for one of the multiplications
|
* This is used in the Barrett reduction since for one of the multiplications
|
||||||
|
Loading…
Reference in New Issue
Block a user