Lines Matching refs:DIGIT_BIT

395 		/ DIGIT_BIT) + 2;  in pstm_init_for_read_unsigned_bin()
457 / DIGIT_BIT) + 2; in pstm_read_unsigned_bin()
491 r = (a->used - 1) * DIGIT_BIT; in pstm_count_bits()
616 z = b / DIGIT_BIT; in pstm_2expt()
631 a->dp[z] = ((pstm_digit)1) << (b % DIGIT_BIT); in pstm_2expt()
671 rr = *tmpa >> ((pstm_digit)(DIGIT_BIT - 1)); in pstm_mul_2()
727 t = (t >> DIGIT_BIT)&1; in s_pstm_sub()
732 t = (t >> DIGIT_BIT); in s_pstm_sub()
777 t >>= DIGIT_BIT; in s_pstm_add()
893 *rho = (pstm_digit)(((pstm_word) 1 << ((pstm_word) DIGIT_BIT)) - in pstm_montgomery_setup()
909 bits = pstm_count_bits (b) % DIGIT_BIT; in pstm_montgomery_calc_normalization()
910 if (!bits) bits = DIGIT_BIT; in pstm_montgomery_calc_normalization()
914 if ((x = pstm_2expt (a, (b->used - 1) * DIGIT_BIT + bits - 1)) != in pstm_montgomery_calc_normalization()
924 for (x = bits - 1; x < (int32)DIGIT_BIT; x++) { in pstm_montgomery_calc_normalization()
953 if (b >= DIGIT_BIT) { in pstm_mul_2d()
954 if (pstm_lshd(c, b/DIGIT_BIT) != PSTM_OKAY) { in pstm_mul_2d()
958 b %= DIGIT_BIT; in pstm_mul_2d()
963 shift = DIGIT_BIT - b; in pstm_mul_2d()
1005 if (b >= (DIGIT_BIT * a->used)) { in pstm_mod_2d()
1010 for (x = (b / DIGIT_BIT) + ((b % DIGIT_BIT) == 0 ? 0 : 1); x < c->used; x++) in pstm_mod_2d()
1015 c->dp[b / DIGIT_BIT] &= ~((pstm_digit)0) >> (DIGIT_BIT - b); in pstm_mod_2d()
1045 w = w >> DIGIT_BIT; in pstm_mul_d()
1103 if (b >= (int32)DIGIT_BIT) { in pstm_div_2d()
1104 pstm_rshd (c, b / DIGIT_BIT); in pstm_div_2d()
1108 D = (pstm_digit) (b % DIGIT_BIT); in pstm_div_2d()
1116 shift = DIGIT_BIT - D; in pstm_div_2d()
1182 *tmpb-- = (*tmpa-- >> 1) | (r << (DIGIT_BIT - 1));
1368 norm = pstm_count_bits(&y) % DIGIT_BIT; in pstm_div()
1369 if (norm < (int32)(DIGIT_BIT-1)) { in pstm_div()
1370 norm = (DIGIT_BIT-1) - norm; in pstm_div()
1414 q.dp[i - t - 1] = (pstm_digit)((((pstm_word)1) << DIGIT_BIT) - 1); in pstm_div()
1417 tmp = ((pstm_word) x.dp[i]) << ((pstm_word) DIGIT_BIT); in pstm_div()
1725 bitcnt = (int32)DIGIT_BIT; in pstm_exptmod()
1729 y = (pstm_digit)(buf >> (DIGIT_BIT - 1)) & 1; in pstm_exptmod()