Home
last modified time | relevance | path

Searched defs:Limb (Results 1 – 13 of 13) sorted by relevance

/external/rust/crates/serde_json/src/lexical/
Dmath.rs41 pub type Limb = u32; typedef
54 pub type Limb = u64; typedef
67 pub(crate) fn as_limb<T: Integer>(t: T) -> Limb { in as_limb()
215 pub fn add(x: Limb, y: Limb) -> (Limb, bool) { in add()
221 pub fn iadd(x: &mut Limb, y: Limb) -> bool { in iadd()
231 pub fn sub(x: Limb, y: Limb) -> (Limb, bool) { in sub()
237 pub fn isub(x: &mut Limb, y: Limb) -> bool { in isub()
249 pub fn mul(x: Limb, y: Limb, carry: Limb) -> (Limb, Limb) { in mul()
260 pub fn imul(x: &mut Limb, y: Limb, carry: Limb) -> Limb { in imul()
284 pub fn iadd_impl(x: &mut Vec<Limb>, y: Limb, xstart: usize) { in iadd_impl()
[all …]
Dbignum.rs25 fn data(&self) -> &Vec<Limb> { in data()
30 fn data_mut(&mut self) -> &mut Vec<Limb> { in data_mut()
/external/rust/crates/ring/src/ec/suite_b/ops/
Delem.rs51 f: unsafe extern "C" fn(r: *mut Limb, a: *const Limb, b: *const Limb), in mul_mont()
64 f: unsafe extern "C" fn(r: *mut Limb, a: *const Limb, b: *const Limb), in binary_op()
80 f: unsafe extern "C" fn(r: *mut Limb, a: *const Limb, b: *const Limb), in binary_op_assign()
90 f: unsafe extern "C" fn(r: *mut Limb, a: *const Limb), in unary_op()
105 f: unsafe extern "C" fn(r: *mut Limb, a: *const Limb), in unary_op_assign()
114 f: unsafe extern "C" fn(r: *mut Limb, a: *const Limb, b: *const Limb), in unary_op_from_binary_op_assign()
Dp256.rs198 fn sqr_mul(a: &Scalar<R>, squarings: Limb, b: &Scalar<R>) -> Scalar<R> { in p256_scalar_inv_to_mont()
206 fn sqr_mul_acc(acc: &mut Scalar<R>, squarings: Limb, b: &Scalar<R>) { in p256_scalar_inv_to_mont()
Dp384.rs328 r: *mut Limb, // [COMMON_OPS.num_limbs] in p384_elem_sqr_mont()
329 a: *const Limb, // [COMMON_OPS.num_limbs] in p384_elem_sqr_mont()
/external/rust/crates/ring/src/
Dlimb.rs31 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()
68 pub fn limbs_less_than_limbs_consttime(a: &[Limb], b: &[Limb]) -> LimbMask { in limbs_less_than_limbs_consttime()
74 pub fn limbs_less_than_limbs_vartime(a: &[Limb], b: &[Limb]) -> bool { in limbs_less_than_limbs_vartime()
80 pub fn limbs_less_than_limb_constant_time(a: &[Limb], b: Limb) -> LimbMask { in limbs_less_than_limb_constant_time()
97 pub fn limbs_equal_limb_constant_time(a: &[Limb], b: Limb) -> LimbMask { in limbs_equal_limb_constant_time()
133 pub fn limbs_reduce_once_constant_time(r: &mut [Limb], m: &[Limb]) { in limbs_reduce_once_constant_time()
153 m: &[Limb], in parse_big_endian_in_range_partially_reduced_and_pad_consttime()
154 result: &mut [Limb], in parse_big_endian_in_range_partially_reduced_and_pad_consttime()
[all …]
/external/rust/crates/minimal-lexical/src/
Dbigint.rs127 pub fn rview(x: &[Limb]) -> ReverseView<Limb> { in rview()
138 pub fn compare(x: &[Limb], y: &[Limb]) -> cmp::Ordering { in compare()
210 pub fn nonzero(x: &[Limb], rindex: usize) -> bool { in nonzero()
409 pub fn scalar_add(x: Limb, y: Limb) -> (Limb, bool) { in scalar_add()
417 pub fn scalar_mul(x: Limb, y: Limb, carry: Limb) -> (Limb, Limb) { in scalar_mul()
430 pub fn small_add_from(x: &mut VecType, y: Limb, start: usize) -> Option<()> { in small_add_from()
472 pub fn large_add_from(x: &mut VecType, y: &[Limb], start: usize) -> Option<()> { in large_add_from()
577 pub fn long_mul(x: &[Limb], y: &[Limb]) -> Option<VecType> { in long_mul()
777 pub type Limb = u64; typedef
784 pub type Limb = u32; typedef
Dstackvec.rs78 pub unsafe fn push_unchecked(&mut self, value: bigint::Limb) { in push_unchecked()
105 pub unsafe fn pop_unchecked(&mut self) -> bigint::Limb { in pop_unchecked()
115 pub fn pop(&mut self) -> Option<bigint::Limb> { in pop()
130 pub unsafe fn extend_unchecked(&mut self, slc: &[bigint::Limb]) { in extend_unchecked()
171 pub unsafe fn resize_unchecked(&mut self, len: usize, value: bigint::Limb) { in resize_unchecked()
281 fn deref(&self) -> &[bigint::Limb] { in deref()
293 fn deref_mut(&mut self) -> &mut [bigint::Limb] { in deref_mut()
305 fn mul_assign(&mut self, rhs: &[bigint::Limb]) { in mul_assign()
Dheapvec.rs80 pub fn pop(&mut self) -> Option<bigint::Limb> { in pop()
173 fn deref(&self) -> &[bigint::Limb] { in deref()
180 fn deref_mut(&mut self) -> &mut [bigint::Limb] { in deref_mut()
187 fn mul_assign(&mut self, rhs: &[bigint::Limb]) { in mul_assign()
/external/rust/crates/ring/src/arithmetic/
Dbigint.rs851 fn gather<M>(table: &[Limb], i: Window, r: &mut Elem<M, R>) { in elem_exp_consttime()
867 table: &[Limb], in elem_exp_consttime()
884 fn entry(table: &[Limb], i: usize, num_limbs: usize) -> &[Limb] { in elem_exp_consttime()
887 fn entry_mut(table: &mut [Limb], i: usize, num_limbs: usize) -> &mut [Limb] { in elem_exp_consttime()
964 fn entry(table: &[Limb], i: usize, num_limbs: usize) -> &[Limb] { in elem_exp_consttime()
967 fn entry_mut(table: &mut [Limb], i: usize, num_limbs: usize) -> &mut [Limb] { in elem_exp_consttime()
978 fn scatter(table: &mut [Limb], state: &[Limb], i: Window, num_limbs: usize) { in elem_exp_consttime()
992 fn gather(table: &[Limb], state: &mut [Limb], i: Window, num_limbs: usize) { in elem_exp_consttime()
1006 fn gather_square(table: &[Limb], state: &mut [Limb], n0: &N0, i: Window, num_limbs: usize) { in elem_exp_consttime()
1014 fn gather_mul_base(table: &[Limb], state: &mut [Limb], n0: &N0, i: Window, num_limbs: usize) { in elem_exp_consttime()
[all …]
/external/rust/crates/serde_json/tests/lexical/
Dmath.rs12 fn data(&self) -> &Vec<Limb> { in data()
16 fn data_mut(&mut self) -> &mut Vec<Limb> { in data_mut()
22 pub(crate) fn from_u32(x: &[u32]) -> Vec<Limb> { in from_u32()
27 pub(crate) fn from_u32(x: &[u32]) -> Vec<Limb> { in from_u32()
/external/rust/crates/ring/src/ec/suite_b/
Dops.rs408 max_exclusive: &[Limb], in parse_big_endian_fixed_consttime()
516 elem_sub: unsafe extern "C" fn(r: *mut Limb, a: *const Limb, b: *const Limb), in elem_sub_test()
567 elem_div_by_2: unsafe extern "C" fn(r: *mut Limb, a: *const Limb), in elem_div_by_2_test()
614 elem_neg: unsafe extern "C" fn(r: *mut Limb, a: *const Limb), in elem_neg_test()
716 sqr_rep: unsafe extern "C" fn(r: *mut Limb, a: *const Limb, rep: Limb), in scalar_square_test()
809 point_add_affine: unsafe extern "C" fn( in point_sum_mixed_test()
811 a: *const Limb, // [ops.num_limbs*3] in point_sum_mixed_test()
812 b: *const Limb, // [ops.num_limbs*2] in point_sum_mixed_test()
866 point_double: unsafe extern "C" fn( in point_double_test()
868 a: *const Limb, // [ops.num_limbs*3] in point_double_test()
[all …]
/external/rust/crates/ring/crypto/limbs/
Dlimbs.h22 typedef crypto_word Limb; typedef