Lines Matching refs:vli
109 static void vli_clear(u64 *vli, unsigned int ndigits) in vli_clear() argument
114 vli[i] = 0; in vli_clear()
118 bool vli_is_zero(const u64 *vli, unsigned int ndigits) in vli_is_zero() argument
123 if (vli[i]) in vli_is_zero()
132 static u64 vli_test_bit(const u64 *vli, unsigned int bit) in vli_test_bit() argument
134 return (vli[bit / 64] & ((u64)1 << (bit % 64))); in vli_test_bit()
137 static bool vli_is_negative(const u64 *vli, unsigned int ndigits) in vli_is_negative() argument
139 return vli_test_bit(vli, ndigits * 64 - 1); in vli_is_negative()
143 static unsigned int vli_num_digits(const u64 *vli, unsigned int ndigits) in vli_num_digits() argument
151 for (i = ndigits - 1; i >= 0 && vli[i] == 0; i--); in vli_num_digits()
157 static unsigned int vli_num_bits(const u64 *vli, unsigned int ndigits) in vli_num_bits() argument
162 num_digits = vli_num_digits(vli, ndigits); in vli_num_bits()
166 digit = vli[num_digits - 1]; in vli_num_bits()
239 static void vli_rshift1(u64 *vli, unsigned int ndigits) in vli_rshift1() argument
241 u64 *end = vli; in vli_rshift1()
244 vli += ndigits; in vli_rshift1()
246 while (vli-- > end) { in vli_rshift1()
247 u64 temp = *vli; in vli_rshift1()
248 *vli = (temp >> 1) | carry; in vli_rshift1()
853 #define EVEN(vli) (!(vli[0] & 1)) argument