• Home
  • Raw
  • Download

Lines Matching refs:USED

288   USED(mp) = 1;  in mp_init_size()
314 if((DIGITS(mp) = s_mp_alloc(USED(from), sizeof(mp_digit))) == NULL) in mp_init_copy()
317 s_mp_copy(DIGITS(from), DIGITS(mp), USED(from)); in mp_init_copy()
318 USED(mp) = USED(from); in mp_init_copy()
319 ALLOC(mp) = USED(from); in mp_init_copy()
355 if(ALLOC(to) >= USED(from)) { in mp_copy()
356 s_mp_setz(DIGITS(to) + USED(from), ALLOC(to) - USED(from)); in mp_copy()
357 s_mp_copy(DIGITS(from), DIGITS(to), USED(from)); in mp_copy()
360 if((tmp = s_mp_alloc(USED(from), sizeof(mp_digit))) == NULL) in mp_copy()
363 s_mp_copy(DIGITS(from), tmp, USED(from)); in mp_copy()
373 ALLOC(to) = USED(from); in mp_copy()
377 USED(to) = USED(from); in mp_copy()
435 USED(mp) = 0; in mp_clear()
469 USED(mp) = 1; in mp_zero()
946 if(USED(c) == 1 && DIGIT(c, 0) == 0) in mp_add()
1032 if(USED(c) == 1 && DIGIT(c, 0) == 0) in mp_sub()
1283 for(dig = 0; dig < (USED(b) - 1); dig++) { in mp_expt()
1471 if((res = mp_init_size(&t, USED(a))) != MP_OKAY) in mp_sqrt()
1478 s_mp_rshd(&x, (USED(&x)/2)+1); in mp_sqrt()
1639 mp_size ub = USED(b); in mp_exptmod()
1659 s_mp_lshd(&mu, 2 * USED(m)); in mp_exptmod()
1780 else if(USED(a) == 1 && DIGIT(a, 0) == 0) in mp_cmp_z()
2243 for(ix = USED(mp) - 1; ix >= 0; ix--) { in mp_print()
2352 if(USED(mp) == 1 && DIGIT(mp, 0) == 0) in mp_unsigned_bin_size()
2355 count = (USED(mp) - 1) * sizeof(mp_digit); in mp_unsigned_bin_size()
2356 topdig = DIGIT(mp, USED(mp) - 1); in mp_unsigned_bin_size()
2379 end = dp + USED(mp) - 1; in mp_to_unsigned_bin()
2434 len = DIGIT_BIT * (USED(mp) - 1); in mp_count_bits()
2435 d = DIGIT(mp, USED(mp) - 1); in mp_count_bits()
2665 s_mp_copy(DIGITS(mp), tmp, USED(mp)); in s_mp_grow()
2686 if(min > USED(mp)) { in s_mp_pad()
2694 USED(mp) = min; in s_mp_pad()
2775 mp_size du = USED(mp); in s_mp_clamp()
2781 USED(mp) = du; in s_mp_clamp()
2825 if((res = s_mp_pad(mp, USED(mp) + p)) != MP_OKAY) in s_mp_lshd()
2828 pos = USED(mp) - 1; in s_mp_lshd()
2862 if(p >= USED(mp)) { in s_mp_rshd()
2864 USED(mp) = 1; in s_mp_rshd()
2871 for(ix = p; ix < USED(mp); ix++) in s_mp_rshd()
2876 while(ix < USED(mp)) in s_mp_rshd()
2906 for(ix = 0; ix < USED(mp); ix++) { in s_mp_mul_2()
2922 USED(mp) += 1; in s_mp_mul_2()
2944 if(ndig >= USED(mp)) in s_mp_mod_2d()
2952 for(ix = ndig + 1; ix < USED(mp); ix++) in s_mp_mod_2d()
2978 dp = DIGITS(mp); used = USED(mp); in s_mp_mul_2d()
3004 USED(mp) += 1; in s_mp_mul_2d()
3032 for(ix = USED(mp) - 1; ix >= 0; ix--) { in s_mp_div_2d()
3064 t = DIGIT(b, USED(b) - 1); in s_mp_norm()
3091 mp_size ix = 1, used = USED(mp); in s_mp_add_d()
3108 if((res = s_mp_pad(mp, USED(mp) + 1)) != MP_OKAY) in s_mp_add_d()
3126 mp_size ix = 1, used = USED(mp); in s_mp_sub_d()
3173 max = USED(a); in s_mp_mul_d()
3192 USED(a) = max + 1; in s_mp_mul_d()
3224 if((res = mp_init_size(&quot, USED(mp))) != MP_OKAY) in s_mp_div_d()
3227 USED(&quot) = USED(mp); /* so clamping will work below */ in s_mp_div_d()
3231 for(ix = USED(mp) - 1; ix >= 0; ix--) { in s_mp_div_d()
3269 mp_size ix, used = USED(b); in s_mp_add()
3273 if((used > USED(a)) && (res = s_mp_pad(a, used)) != MP_OKAY) in s_mp_add()
3294 used = USED(a); in s_mp_add()
3326 mp_size ix, used = USED(b); in s_mp_sub()
3343 used = USED(a); in s_mp_sub()
3372 mp_size um = USED(m); in s_mp_reduce()
3428 mp_size ix, jx, ua = USED(a), ub = USED(b); in s_mp_mul()
3435 USED(&tmp) = ua + ub; in s_mp_mul()
3516 mp_size ix, jx, kx, used = USED(a); in s_mp_sqr()
3523 USED(&tmp) = 2 * used; in s_mp_sqr()
3647 if((res = mp_init_size(&quot, USED(a))) != MP_OKAY) in s_mp_div()
3651 if((res = mp_init_size(&t, USED(a))) != MP_OKAY) in s_mp_div()
3655 if((res = mp_init_size(&rem, USED(a))) != MP_OKAY) in s_mp_div()
3662 ix = USED(a) - 1; in s_mp_div()
3683 q = DIGIT(&rem, USED(&rem) - 1); in s_mp_div()
3684 if(q <= DIGIT(b, USED(b) - 1) && USED(&rem) > 1) in s_mp_div()
3685 q = (q << DIGIT_BIT) | DIGIT(&rem, USED(&rem) - 2); in s_mp_div()
3687 q /= DIGIT(b, USED(b) - 1); in s_mp_div()
3781 mp_size ua = USED(a), ub = USED(b); in s_mp_cmp()
3812 mp_size ua = USED(a); in s_mp_cmp_d()
3838 mp_size uv = USED(v); in s_mp_ispow2()