1 #include "tommath_private.h"
3 /* LibTomMath, multiple-precision integer library -- Tom St Denis */
4 /* SPDX-License-Identifier: Unlicense */
6 static const int lnz[16] = {
7 4, 0, 1, 0, 2, 0, 1, 0, 3, 0, 1, 0, 2, 0, 1, 0
10 /* Counts the number of lsbs which are zero before the first zero bit */
11 int mp_cnt_lsb(const mp_int *a)
21 /* scan lower digits until non-zero */
22 for (x = 0; (x < a->used) && (a->dp[x] == 0u); x++) {}
26 /* now scan this digit until a 1 is found */