Lines Matching refs:num_limbs

53     num_limbs: usize,  field
102 let num_limbs = (input.len() + LIMB_BYTES - 1) / LIMB_BYTES; in positive_minimal_width_from_be_bytes() localVariable
104 num_limbs, in positive_minimal_width_from_be_bytes()
139 limbs: vec![0; width.num_limbs].into_boxed_slice(), in zero()
146 num_limbs: self.limbs.len(), in width()
332 assert_eq!(self.width().num_limbs, l.width().num_limbs); in to_elem()
362 num_limbs: self.limbs.len(), in zero()
410 let num_limbs = m.width().num_limbs; in decode_once() localVariable
413 let one = &one[..num_limbs]; // assert!(num_limbs <= MODULUS_MAX_LIMBS); in decode_once()
485 fn LIMBS_shl_mod(r: *mut Limb, a: *const Limb, m: *const Limb, num_limbs: c::size_t); in elem_mul_by_2()
559 num_limbs: c::size_t, in elem_add()
583 num_limbs: c::size_t, in elem_sub()
820 let num_limbs = m.limbs.len(); in elem_exp_consttime() localVariable
822 let mut table = vec![0; TABLE_ENTRIES * num_limbs]; in elem_exp_consttime()
829 num_limbs: c::size_t, in elem_exp_consttime()
857 fn entry(table: &[Limb], i: usize, num_limbs: usize) -> &[Limb] { in elem_exp_consttime()
858 &table[(i * num_limbs)..][..num_limbs] in elem_exp_consttime()
860 fn entry_mut(table: &mut [Limb], i: usize, num_limbs: usize) -> &mut [Limb] { in elem_exp_consttime()
861 &mut table[(i * num_limbs)..][..num_limbs] in elem_exp_consttime()
863 let num_limbs = m.limbs.len(); in elem_exp_consttime() localVariable
864 entry_mut(&mut table, 0, num_limbs).copy_from_slice(&tmp.limbs); in elem_exp_consttime()
865 entry_mut(&mut table, 1, num_limbs).copy_from_slice(&base.limbs); in elem_exp_consttime()
872 let (previous, rest) = table.split_at_mut(num_limbs * i); in elem_exp_consttime()
873 let src1 = entry(previous, src1, num_limbs); in elem_exp_consttime()
874 let src2 = entry(previous, src2, num_limbs); in elem_exp_consttime()
875 let dst = entry_mut(rest, 0, num_limbs); in elem_exp_consttime()
925 let num_limbs = m.limbs.len(); in elem_exp_consttime() localVariable
929 let mut table = vec![0; ((TABLE_ENTRIES + 3) * num_limbs) + ALIGNMENT]; in elem_exp_consttime()
934 table.split_at_mut(TABLE_ENTRIES * num_limbs) in elem_exp_consttime()
937 fn entry(table: &[Limb], i: usize, num_limbs: usize) -> &[Limb] { in elem_exp_consttime()
938 &table[(i * num_limbs)..][..num_limbs] in elem_exp_consttime()
940 fn entry_mut(table: &mut [Limb], i: usize, num_limbs: usize) -> &mut [Limb] { in elem_exp_consttime()
941 &mut table[(i * num_limbs)..][..num_limbs] in elem_exp_consttime()
948 entry_mut(state, BASE, num_limbs).copy_from_slice(&base.limbs); in elem_exp_consttime()
949 entry_mut(state, M, num_limbs).copy_from_slice(&m.limbs); in elem_exp_consttime()
951 fn scatter(table: &mut [Limb], state: &[Limb], i: Window, num_limbs: usize) { in elem_exp_consttime()
957 entry(state, ACC, num_limbs).as_ptr(), in elem_exp_consttime()
958 num_limbs, in elem_exp_consttime()
965 fn gather(table: &[Limb], state: &mut [Limb], i: Window, num_limbs: usize) { in elem_exp_consttime()
971 entry_mut(state, ACC, num_limbs).as_mut_ptr(), in elem_exp_consttime()
972 num_limbs, in elem_exp_consttime()
979 fn gather_square(table: &[Limb], state: &mut [Limb], n0: &N0, i: Window, num_limbs: usize) { in elem_exp_consttime()
980 gather(table, state, i, num_limbs); in elem_exp_consttime()
982 let (acc, rest) = state.split_at_mut(num_limbs); in elem_exp_consttime()
983 let m = entry(rest, M - 1, num_limbs); in elem_exp_consttime()
987 fn gather_mul_base(table: &[Limb], state: &mut [Limb], n0: &N0, i: Window, num_limbs: usize) { in elem_exp_consttime()
1001 entry_mut(state, ACC, num_limbs).as_mut_ptr(), in elem_exp_consttime()
1002 entry(state, BASE, num_limbs).as_ptr(), in elem_exp_consttime()
1004 entry(state, M, num_limbs).as_ptr(), in elem_exp_consttime()
1006 num_limbs, in elem_exp_consttime()
1012 fn power(table: &[Limb], state: &mut [Limb], n0: &N0, i: Window, num_limbs: usize) { in elem_exp_consttime()
1026 entry_mut(state, ACC, num_limbs).as_mut_ptr(), in elem_exp_consttime()
1027 entry_mut(state, ACC, num_limbs).as_mut_ptr(), in elem_exp_consttime()
1029 entry(state, M, num_limbs).as_ptr(), in elem_exp_consttime()
1031 num_limbs, in elem_exp_consttime()
1039 let acc = entry_mut(state, ACC, num_limbs); in elem_exp_consttime()
1043 scatter(table, state, 0, num_limbs); in elem_exp_consttime()
1046 entry_mut(state, ACC, num_limbs).copy_from_slice(&base.limbs); in elem_exp_consttime()
1047 scatter(table, state, 1, num_limbs); in elem_exp_consttime()
1052 gather_square(table, state, &m.n0, i / 2, num_limbs); in elem_exp_consttime()
1054 gather_mul_base(table, state, &m.n0, i - 1, num_limbs) in elem_exp_consttime()
1056 scatter(table, state, i, num_limbs); in elem_exp_consttime()
1062 gather(table, state, initial_window, num_limbs); in elem_exp_consttime()
1066 power(table, state, &m.n0, window, num_limbs); in elem_exp_consttime()
1083 entry_mut(state, ACC, num_limbs).as_mut_ptr(), in elem_exp_consttime()
1084 entry(state, ACC, num_limbs).as_ptr(), in elem_exp_consttime()
1086 entry(state, M, num_limbs).as_ptr(), in elem_exp_consttime()
1088 num_limbs, in elem_exp_consttime()
1095 r.limbs.copy_from_slice(entry(state, ACC, num_limbs)); in elem_exp_consttime()
1377 num_limbs: c::size_t, in GFp_bn_mul_mont()
1391 fn GFp_limbs_mul_add_limb(r: *mut Limb, a: *const Limb, b: Limb, num_limbs: c::size_t) -> Limb; in GFp_limbs_mul_add_limb()
1557 num_limbs: usize, in consume_elem_unchecked()
1561 num_limbs, in consume_elem_unchecked()