Lines Matching refs:bigint
6 use crate::bigint;
13 data: [mem::MaybeUninit<bigint::Limb>; bigint::BIGINT_LIMBS],
25 data: [mem::MaybeUninit::uninit(); bigint::BIGINT_LIMBS],
31 pub fn try_from(x: &[bigint::Limb]) -> Option<Self> {
50 debug_assert!(len <= bigint::BIGINT_LIMBS);
69 bigint::BIGINT_LIMBS as usize
78 pub unsafe fn push_unchecked(&mut self, value: bigint::Limb) {
89 pub fn try_push(&mut self, value: bigint::Limb) -> Option<()> {
105 pub unsafe fn pop_unchecked(&mut self) -> bigint::Limb {
115 pub fn pop(&mut self) -> Option<bigint::Limb> {
130 pub unsafe fn extend_unchecked(&mut self, slc: &[bigint::Limb]) {
145 pub fn try_extend(&mut self, slc: &[bigint::Limb]) -> Option<()> {
171 pub unsafe fn resize_unchecked(&mut self, len: usize, value: bigint::Limb) {
199 pub fn try_resize(&mut self, len: usize, value: bigint::Limb) -> Option<()> {
214 bigint::hi64(self)
222 bigint::from_u64(x)
230 bigint::normalize(self)
236 bigint::is_normalized(self)
241 pub fn add_small(&mut self, y: bigint::Limb) -> Option<()> {
242 bigint::small_add(self, y)
247 pub fn mul_small(&mut self, y: bigint::Limb) -> Option<()> {
248 bigint::small_mul(self, y)
267 Some(bigint::compare(self, other))
274 bigint::compare(self, other)
279 type Target = [bigint::Limb];
281 fn deref(&self) -> &[bigint::Limb] {
285 let ptr = self.data.as_ptr() as *const bigint::Limb;
293 fn deref_mut(&mut self) -> &mut [bigint::Limb] {
297 let ptr = self.data.as_mut_ptr() as *mut bigint::Limb;
303 impl ops::MulAssign<&[bigint::Limb]> for StackVec {
305 fn mul_assign(&mut self, rhs: &[bigint::Limb]) {
306 bigint::large_mul(self, rhs).unwrap();