• Home
  • Raw
  • Download

Lines Matching refs:i

64     int i;  in lin_compare()  local
70 for (i = p_a->valid_word_len - 1; i >= 0; --i) { in lin_compare()
71 if (p_a->p_uint[i] != p_b->p_uint[i]) { in lin_compare()
72 if (p_a->p_uint[i] > p_b->p_uint[i]) { in lin_compare()
137 uint32_t i; in lin_update_valid_len() local
144 for (i = 0; i < p_a->valid_word_len; ++i) { in lin_update_valid_len()
150 p_a->valid_word_len -= i; in lin_update_valid_len()
207 uint32_t i; in lin_sub() local
212 for (i = 0; i < p_b->valid_word_len; ++i) { in lin_sub()
213 t = p_a->p_uint[i] < c; in lin_sub()
214 p_a->p_uint[i] = p_a->p_uint[i] - c; in lin_sub()
216 c = (p_a->p_uint[i] < p_b->p_uint[i]) + t; in lin_sub()
217 p_a->p_uint[i] = p_a->p_uint[i] - p_b->p_uint[i]; in lin_sub()
219 for (; i < p_a->valid_word_len && c; ++i) { in lin_sub()
220 t = p_a->p_uint[i] < c; in lin_sub()
221 p_a->p_uint[i] = p_a->p_uint[i] - c; in lin_sub()
243 uint32_t i; in montgomery_mul_add() local
254 for (i = 1; i < p_a->valid_word_len; ++i) { in montgomery_mul_add()
255 lin_mul_word(p_ad[i], b, &t_h, &t_l); in montgomery_mul_add()
256 dword_add_word(t, p_rd[i], t); in montgomery_mul_add()
259 lin_mul_word(d0, p_nd[i], &t_h, &t_l); in montgomery_mul_add()
263 p_rd[i - 1] = y_l; in montgomery_mul_add()
266 p_rd[i - 1] = x_h + y_h; in montgomery_mul_add()
269 if (p_rd[i - 1] < x_h) { in montgomery_mul_add()
277 uint32_t i; in montgomery_mod_mul() local
281 for (i = 0; i < p_b->valid_word_len; ++i) { in montgomery_mod_mul()
282 montgomery_mul_add(p_a, p_b->p_uint[i], p_n, n_n0_i, p_res); in montgomery_mod_mul()
292 int i; in montgomery_mod_exp() local
313 i = byte2bit(sizeof(exp)) - 1; in montgomery_mod_exp()
314 for (; i >= 0; --i) { in montgomery_mod_exp()
315 if (exp & (1UL << i)) { in montgomery_mod_exp()
322 for (--i; i > 0; --i) { in montgomery_mod_exp()
324 if (exp & (1UL << i)) { in montgomery_mod_exp()
346 int i; in lin_get_bitlen() local
355 for (i = p_a->valid_word_len - 1; i >= 0; --i) { in lin_get_bitlen()
356 if (p_data[i] != 0) { in lin_get_bitlen()
361 bit_len = (i + 1) * WORD_BIT_SIZE; in lin_get_bitlen()
367 for (value = p_data[i]; ((signed long)value) > 0; value = value << 1) { in lin_get_bitlen()