Home
last modified time | relevance | path

Searched refs:Limb (Results 1 - 5 of 5) sorted by relevance

/third_party/rust/crates/minimal-lexical/src/
H A Dstackvec.rs13 data: [mem::MaybeUninit<bigint::Limb>; bigint::BIGINT_LIMBS],
31 pub fn try_from(x: &[bigint::Limb]) -> Option<Self> { in try_from()
78 pub unsafe fn push_unchecked(&mut self, value: bigint::Limb) { in push_unchecked()
89 pub fn try_push(&mut self, value: bigint::Limb) -> Option<()> { in try_push()
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()
145 pub fn try_extend(&mut self, slc: &[bigint::Limb]) -> Option<()> { in try_extend()
171 pub unsafe fn resize_unchecked(&mut self, len: usize, value: bigint::Limb) { in resize_unchecked()
199 pub fn try_resize(&mut self, len: usize, value: bigint::Limb)
[all...]
H A Dbigint.rs127 pub fn rview(x: &[Limb]) -> ReverseView<Limb> { in rview()
138 pub fn compare(x: &[Limb], y: &[Limb]) -> cmp::Ordering { in compare()
174 pub fn is_normalized(x: &[Limb]) -> bool { in is_normalized()
192 vec.try_push(x as Limb).unwrap(); in from_u64()
193 vec.try_push((x >> 32) as Limb).unwrap(); in from_u64()
195 vec.try_push(x as Limb).unwrap(); in from_u64()
210 pub fn nonzero(x: &[Limb], rindex: usize) -> bool { in nonzero()
310 pub fn hi64(x: &[Limb])
777 pub type Limb = u64; global() types
784 pub type Limb = u32; global() types
[all...]
H A Dheapvec.rs17 data: Vec<bigint::Limb>,
32 pub fn try_from(x: &[bigint::Limb]) -> Option<Self> { in try_from()
73 pub fn try_push(&mut self, value: bigint::Limb) -> Option<()> { in try_push()
80 pub fn pop(&mut self) -> Option<bigint::Limb> { in pop()
86 pub fn try_extend(&mut self, slc: &[bigint::Limb]) -> Option<()> { in try_extend()
96 pub fn try_resize(&mut self, len: usize, value: bigint::Limb) -> Option<()> { in try_resize()
133 pub fn add_small(&mut self, y: bigint::Limb) -> Option<()> { in add_small()
139 pub fn mul_small(&mut self, y: bigint::Limb) -> Option<()> { in mul_small()
171 type Target = [bigint::Limb];
173 fn deref(&self) -> &[bigint::Limb] { in deref()
[all...]
H A Dslow.rs9 use crate::bigint::{Bigint, Limb, LIMB_BITS};
187 $value *= 10 as Limb;
188 $value += digit as Limb;
211 add_temporary!(@mul $result, small_power as Limb, $value);
226 add_temporary!(@mul $result, small_power as Limb, $value);
280 let mut value: Limb = 0; in parse_mantissa()
290 let max_native = (10 as Limb).pow(step as u32); in parse_mantissa()
/third_party/rust/crates/minimal-lexical/tests/
H A Dstackvec.rs12 vec.try_push(xi as bigint::Limb).unwrap(); in vec_from_u32()
20 1 => vec.try_push(xi[0] as bigint::Limb).unwrap(), in vec_from_u32()
22 let xi0 = xi[0] as bigint::Limb; in vec_from_u32()
23 let xi1 = xi[1] as bigint::Limb; in vec_from_u32()

Completed in 3 milliseconds