Fields
w: [Chunk; 5]
Implementations
sourceimpl BIG
impl BIG
pub fn new() -> BIG
pub fn new_int(x: isize) -> BIG
pub fn new_ints(a: &[Chunk]) -> BIG
pub fn new_copy(y: &BIG) -> BIG
pub fn new_big(y: &BIG) -> BIG
pub fn new_dcopy(y: &DBIG) -> BIG
pub fn get(&self, i: usize) -> Chunk
pub fn set(&mut self, i: usize, x: Chunk)
pub fn xortop(&mut self, x: Chunk)
pub fn ortop(&mut self, x: Chunk)
pub fn iszilch(&self) -> bool
pub fn zero(&mut self)
pub fn isunity(&self) -> bool
pub fn one(&mut self)
pub fn copy(&mut self, x: &BIG)
pub fn dcopy(&mut self, x: &DBIG)
pub fn muladd(a: Chunk, b: Chunk, c: Chunk, r: Chunk) -> (Chunk, Chunk)
pub fn norm(&mut self) -> Chunk
pub fn cswap(&mut self, b: &mut BIG, d: isize)
pub fn cmove(&mut self, g: &BIG, d: isize)
pub fn fshr(&mut self, k: usize) -> isize
pub fn shr(&mut self, k: usize)
pub fn fshl(&mut self, k: usize) -> isize
pub fn shl(&mut self, k: usize)
pub fn nbits(&self) -> usize
pub fn tostring(&mut self) -> String
pub fn fromstring(val: String) -> BIG
pub fn from_hex(val: String) -> BIG
pub fn to_hex(&mut self) -> String
pub fn add(&mut self, r: &BIG)
pub fn or(&mut self, r: &BIG)
pub fn dbl(&mut self)
pub fn plus(&self, x: &BIG) -> BIG
pub fn inc(&mut self, x: isize)
pub fn minus(&self, x: &BIG) -> BIG
pub fn sub(&mut self, x: &BIG)
pub fn rsub(&mut self, x: &BIG)
pub fn dec(&mut self, x: isize)
pub fn imul(&mut self, c: isize)
pub fn tobytearray(&mut self, b: &mut [u8], n: usize)
pub fn frombytearray(b: &[u8], n: usize) -> BIG
pub fn tobytes(&mut self, b: &mut [u8])
pub fn frombytes(b: &[u8]) -> BIG
pub fn pmul(&mut self, c: isize) -> Chunk
pub fn pxmul(&mut self, c: isize) -> DBIG
pub fn div3(&mut self) -> Chunk
pub fn smul(a: &BIG, b: &BIG) -> BIG
pub fn comp(a: &BIG, b: &BIG) -> isize
pub fn mod2m(&mut self, m: usize)
pub fn invmod256(a: isize) -> isize
pub fn parity(&self) -> isize
pub fn bit(&self, n: usize) -> isize
pub fn lastbits(&mut self, n: usize) -> isize
pub fn invmod2m(&mut self)
pub fn rmod(&mut self, n: &BIG)
pub fn div(&mut self, n: &BIG)
pub fn random(rng: &mut RAND) -> BIG
pub fn randomnum(q: &BIG, rng: &mut RAND) -> BIG
pub fn jacobi(&mut self, p: &BIG) -> isize
pub fn invmodp(&mut self, p: &BIG)
pub fn mul(a: &BIG, b: &BIG) -> DBIG
pub fn sqr(a: &BIG) -> DBIG
pub fn monty(md: &BIG, mc: Chunk, d: &mut DBIG) -> BIG
pub fn ssn(r: &mut BIG, a: &BIG, m: &mut BIG) -> isize
pub fn modmul(a1: &BIG, b1: &BIG, m: &BIG) -> BIG
pub fn modsqr(a1: &BIG, m: &BIG) -> BIG
pub fn modneg(a1: &BIG, m: &BIG) -> BIG
pub fn powmod(&mut self, e1: &BIG, m: &BIG) -> BIG
Trait Implementations
sourceimpl Ord for BIG
impl Ord for BIG
1.21.0 · sourcefn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialOrd<BIG> for BIG
impl PartialOrd<BIG> for BIG
sourcefn partial_cmp(&self, other: &BIG) -> Option<Ordering>
fn partial_cmp(&self, other: &BIG) -> Option<Ordering>
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for BIG
impl Eq for BIG
Auto Trait Implementations
impl RefUnwindSafe for BIG
impl Send for BIG
impl Sync for BIG
impl Unpin for BIG
impl UnwindSafe for BIG
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more