Lines Matching refs:biexp
1079 static int find_max_exp_index(bigint *biexp) in find_max_exp_index() argument
1083 comp test = biexp->comps[biexp->size-1]; /* assume no leading zeroes */ in find_max_exp_index()
1085 check(biexp); in find_max_exp_index()
1091 return i+(biexp->size-1)*COMP_BIT_SIZE; in find_max_exp_index()
1104 static int exp_bit_is_one(bigint *biexp, int offset) in exp_bit_is_one() argument
1106 comp test = biexp->comps[offset / COMP_BIT_SIZE]; in exp_bit_is_one()
1111 check(biexp); in exp_bit_is_one()
1371 bigint *bi_mod_power(BI_CTX *ctx, bigint *bi, bigint *biexp) in bi_mod_power() argument
1373 int i = find_max_exp_index(biexp), j, window_size = 1; in bi_mod_power()
1389 check(biexp); in bi_mod_power()
1408 if (exp_bit_is_one(biexp, i)) in bi_mod_power()
1417 while (exp_bit_is_one(biexp, l) == 0) in bi_mod_power()
1425 if (exp_bit_is_one(biexp, j)) in bi_mod_power()
1452 bi_free(ctx, biexp); in bi_mod_power()
1472 bigint *bi_mod_power2(BI_CTX *ctx, bigint *bi, bigint *bim, bigint *biexp) in bi_mod_power2() argument
1484 bi_clone(tmp_ctx, biexp)); in bi_mod_power2()
1492 bi_free(ctx, biexp); in bi_mod_power2()