Lines Matching refs:USED
159 USED(mp) = 1; in mp_init_size()
189 s_mp_copy(DIGITS(from), DIGITS(mp), USED(from)); in mp_init_copy()
190 USED(mp) = USED(from); in mp_init_copy()
229 if(ALLOC(to) >= USED(from)) { in mp_copy()
230 s_mp_setz(DIGITS(to) + USED(from), ALLOC(to) - USED(from)); in mp_copy()
231 s_mp_copy(DIGITS(from), DIGITS(to), USED(from)); in mp_copy()
237 s_mp_copy(DIGITS(from), tmp, USED(from)); in mp_copy()
251 USED(to) = USED(from); in mp_copy()
310 USED(mp) = 0; in mp_clear()
331 USED(mp) = 1; in mp_zero()
854 if((res = s_mp_pad(c, USED(a) + USED(b))) != MP_OKAY) in mp_mul()
1153 for(dig = 0; dig < (USED(b) - 1); dig++) { in mp_expt()
1342 if((res = mp_init_size(&t, USED(a), FLAG(a))) != MP_OKAY) in mp_sqrt()
1531 s_mp_lshd(&mu, 2 * USED(m)); in s_mp_exptmod()
1536 for(dig = 0; dig < (USED(b) - 1); dig++) { in s_mp_exptmod()
1652 else if(USED(a) == 1 && DIGIT(a, 0) == 0) in mp_cmp_z()
2476 for(ix = USED(mp) - 1; ix >= 0; ix--) { in mp_print()
2533 return (USED(mp) * sizeof(mp_digit)) + 1; in mp_raw_size()
2550 for(ix = USED(mp) - 1; ix >= 0; ix--) { in mp_toraw()
2670 bits = USED(mp) * DIGIT_BIT - 1; in mp_radix_size()
2801 s_mp_copy(DIGITS(mp), tmp, USED(mp)); in s_mp_grow()
2822 if(min > USED(mp)) { in s_mp_pad()
2830 s_mp_setz(DIGITS(mp) + USED(mp), min - USED(mp)); in s_mp_pad()
2834 USED(mp) = min; in s_mp_pad()
2976 if((res = s_mp_pad(mp, USED(mp) + p)) != MP_OKAY) in s_mp_lshd()
2979 pos = USED(mp) - 1; in s_mp_lshd()
3054 if(p >= USED(mp)) { in s_mp_rshd()
3056 USED(mp) = 1; in s_mp_rshd()
3064 for (ix = USED(mp) - p; ix > 0; ix--) in s_mp_rshd()
3118 USED(mp) += 1; in s_mp_mul_2()
3140 if(ndig >= USED(mp)) in s_mp_mod_2d()
3148 for(ix = ndig + 1; ix < USED(mp); ix++) in s_mp_mod_2d()
3174 for(ix = USED(mp) - 1; ix >= 0; ix--) { in s_mp_div_2d()
3208 b_msd = DIGIT(b, USED(b) - 1); in s_mp_norm()
3244 while(ix < USED(mp) && k) { in s_mp_add_d()
3254 if((res = s_mp_pad(mp, USED(mp) + 1)) != MP_OKAY) in s_mp_add_d()
3303 while(b && ix < USED(mp)) { in s_mp_sub_d()
3415 MP_CHECKOK( mp_init_size(", USED(mp), FLAG(mp)) ); in s_mp_div_d()
3418 for(ix = USED(mp) - 1; ix >= 0; ix--) { in s_mp_div_d()
3449 for (ix = USED(&rem) - 1; ix >= 0; ix--) { in s_mp_div_d()
3508 if((USED(b) > USED(a)) && (res = s_mp_pad(a, USED(b))) != MP_OKAY) in s_mp_add()
3684 if((lim > USED(a)) && (res = s_mp_pad(a, lim)) != MP_OKAY) in s_mp_add_offset()
3694 lim = USED(b); in s_mp_add_offset()
3732 if((res = s_mp_pad(a, USED(a) + 1)) != MP_OKAY) in s_mp_add_offset()
4192 if((res = mp_init_size(&tmp, 2 * USED(a), FLAG(a))) != MP_OKAY) in s_mp_sqr()
4394 s_mp_rshd(&q, USED(m) - 1); /* q1 = x / b^(k-1) */ in s_mp_reduce()
4396 s_mp_rshd(&q, USED(m) + 1); /* q3 = q2 / b^(k+1) */ in s_mp_reduce()
4399 s_mp_mod_2d(x, DIGIT_BIT * (USED(m) + 1)); in s_mp_reduce()
4403 s_mp_mod_2d(&q, DIGIT_BIT * (USED(m) + 1)); in s_mp_reduce()
4412 if((res = s_mp_lshd(&q, USED(m) + 1)) != MP_OKAY) in s_mp_reduce()
4490 if(USED(a) > 1) in s_mp_cmp_d()
4733 bytes = (USED(mp) * sizeof(mp_digit)); in mp_unsigned_octet_size()
4737 for(ix = USED(mp) - 1; ix >= 0; ix--) { in mp_unsigned_octet_size()
4771 for(ix = USED(mp) - 1; ix >= 0; ix--) { in mp_to_unsigned_octets()
4803 for(ix = USED(mp) - 1; ix >= 0; ix--) { in mp_to_signed_octets()
4848 for(ix = USED(mp) - 1; ix >= 0; ix--) { in mp_to_fixlen_octets()