Lines Matching refs:bigint
6 use crate::bigint;
17 data: Vec<bigint::Limb>,
26 data: Vec::with_capacity(bigint::BIGINT_LIMBS),
32 pub fn try_from(x: &[bigint::Limb]) -> Option<Self> {
49 debug_assert!(len <= bigint::BIGINT_LIMBS);
73 pub fn try_push(&mut self, value: bigint::Limb) -> Option<()> {
80 pub fn pop(&mut self) -> Option<bigint::Limb> {
86 pub fn try_extend(&mut self, slc: &[bigint::Limb]) -> Option<()> {
96 pub fn try_resize(&mut self, len: usize, value: bigint::Limb) -> Option<()> {
106 bigint::hi64(&self.data)
114 bigint::from_u64(x)
122 bigint::normalize(self)
128 bigint::is_normalized(self)
133 pub fn add_small(&mut self, y: bigint::Limb) -> Option<()> {
134 bigint::small_add(self, y)
139 pub fn mul_small(&mut self, y: bigint::Limb) -> Option<()> {
140 bigint::small_mul(self, y)
159 Some(bigint::compare(self, other))
166 bigint::compare(self, other)
171 type Target = [bigint::Limb];
173 fn deref(&self) -> &[bigint::Limb] {
180 fn deref_mut(&mut self) -> &mut [bigint::Limb] {
185 impl ops::MulAssign<&[bigint::Limb]> for HeapVec {
187 fn mul_assign(&mut self, rhs: &[bigint::Limb]) {
188 bigint::large_mul(self, rhs).unwrap();