Lines Matching refs:Limb
31 pub type Limb = u64; typedef
33 pub type Limb = u32; typedef
58 pub fn limbs_equal_limbs_consttime(a: &[Limb], b: &[Limb]) -> LimbMask { in limbs_equal_limbs_consttime() argument
60 fn LIMBS_equal(a: *const Limb, b: *const Limb, num_limbs: c::size_t) -> LimbMask; in limbs_equal_limbs_consttime() argument
68 pub fn limbs_less_than_limbs_consttime(a: &[Limb], b: &[Limb]) -> LimbMask { in limbs_less_than_limbs_consttime() argument
74 pub fn limbs_less_than_limbs_vartime(a: &[Limb], b: &[Limb]) -> bool { in limbs_less_than_limbs_vartime() argument
80 pub fn limbs_less_than_limb_constant_time(a: &[Limb], b: Limb) -> LimbMask { in limbs_less_than_limb_constant_time() argument
85 pub fn limbs_are_zero_constant_time(limbs: &[Limb]) -> LimbMask { in limbs_are_zero_constant_time()
91 pub fn limbs_are_even_constant_time(limbs: &[Limb]) -> LimbMask { in limbs_are_even_constant_time()
97 pub fn limbs_equal_limb_constant_time(a: &[Limb], b: Limb) -> LimbMask { in limbs_equal_limb_constant_time() argument
109 pub fn limbs_minimal_bits(a: &[Limb]) -> bits::BitLength { in limbs_minimal_bits()
133 pub fn limbs_reduce_once_constant_time(r: &mut [Limb], m: &[Limb]) { in limbs_reduce_once_constant_time() argument
153 m: &[Limb], in parse_big_endian_in_range_partially_reduced_and_pad_consttime() argument
154 result: &mut [Limb], in parse_big_endian_in_range_partially_reduced_and_pad_consttime() argument
177 max_exclusive: &[Limb], in parse_big_endian_in_range_and_pad_consttime() argument
178 result: &mut [Limb], in parse_big_endian_in_range_and_pad_consttime() argument
197 result: &mut [Limb], in parse_big_endian_and_pad_consttime() argument
229 let mut limb: Limb = 0; in parse_big_endian_and_pad_consttime()
231 let b: Limb = input.read_byte()?.into(); in parse_big_endian_and_pad_consttime()
241 pub fn big_endian_from_limbs(limbs: &[Limb], out: &mut [u8]) { in big_endian_from_limbs() argument
255 pub type Window = Limb;
271 limbs: &[Limb], in fold_5_bit_windows() argument
283 lower_limb: Limb, in fold_5_bit_windows() argument
284 higher_limb: Limb, in fold_5_bit_windows() argument
287 fn LIMBS_window5_unsplit_window(limb: Limb, index_within_word: BitIndex) -> Window; in fold_5_bit_windows() argument
336 fn LIMB_shr(a: Limb, shift: c::size_t) -> Limb; in LIMB_shr() argument
339 fn LIMBS_are_even(a: *const Limb, num_limbs: c::size_t) -> LimbMask; in LIMBS_are_even() argument
340 fn LIMBS_are_zero(a: *const Limb, num_limbs: c::size_t) -> LimbMask; in LIMBS_are_zero() argument
342 fn LIMBS_equal_limb(a: *const Limb, b: Limb, num_limbs: c::size_t) -> LimbMask; in LIMBS_equal_limb() argument
343 fn LIMBS_less_than(a: *const Limb, b: *const Limb, num_limbs: c::size_t) -> LimbMask; in LIMBS_less_than() argument
345 fn LIMBS_less_than_limb(a: *const Limb, b: Limb, num_limbs: c::size_t) -> LimbMask; in LIMBS_less_than_limb() argument
346 fn LIMBS_reduce_once(r: *mut Limb, m: *const Limb, num_limbs: c::size_t); in LIMBS_reduce_once() argument
353 const MAX: Limb = LimbMask::True as Limb;
357 static EVENS: &[&[Limb]] = &[ in test_limbs_are_even()
371 static ODDS: &[&[Limb]] = &[ in test_limbs_are_even()
386 static ZEROES: &[&[Limb]] = &[
398 static NONZEROES: &[&[Limb]] = &[
426 static EQUAL: &[(&[Limb], Limb)] = &[ in test_limbs_equal_limb()
437 static UNEQUAL: &[(&[Limb], Limb)] = &[ in test_limbs_equal_limb()
456 static LESSER: &[(&[Limb], Limb)] = &[ in test_limbs_less_than_limb_constant_time()
468 static EQUAL: &[(&[Limb], Limb)] = &[ in test_limbs_less_than_limb_constant_time()
475 static GREATER: &[(&[Limb], Limb)] = &[ in test_limbs_less_than_limb_constant_time()
583 const ALL_ONES: Limb = LimbMask::True as Limb; in test_limbs_minimal_bits()
584 static CASES: &[(&[Limb], usize)] = &[ in test_limbs_minimal_bits()