pub trait ModShlAssign<RHS, M = Self> {
    fn mod_shl_assign(&mut self, other: RHS, m: M);
}
Expand description

Left-shifts a number (multiplies it by a power of 2) modulo another number $m$, in place. Assumes the input is already reduced modulo $m$.

Required Methods

Implementations on Foreign Types

Left-shifts a number (multiplies it by a power of 2) modulo a number $m$, in place. Assumes the input is already reduced modulo $m$.

$x \gets y$, where $x, y < m$ and $2^nx \equiv y \mod m$.

Worst-case complexity

$T(n) = O(n)$

$M(n) = O(1)$

where $T$ is time, $M$ is additional memory, and $n$ is other.significant_bits().

Examples

See here.

Left-shifts a number (multiplies it by a power of 2) modulo a number $m$, in place. Assumes the input is already reduced modulo $m$.

$x \gets y$, where $x, y < m$ and $2^nx \equiv y \mod m$.

Worst-case complexity

$T(n) = O(n)$

$M(n) = O(1)$

where $T$ is time, $M$ is additional memory, and $n$ is other.significant_bits().

Examples

See here.

Left-shifts a number (multiplies it by a power of 2) modulo a number $m$, in place. Assumes the input is already reduced modulo $m$.

$x \gets y$, where $x, y < m$ and $2^nx \equiv y \mod m$.

Worst-case complexity

$T(n) = O(n)$

$M(n) = O(1)$

where $T$ is time, $M$ is additional memory, and $n$ is other.significant_bits().

Examples

See here.

Left-shifts a number (multiplies it by a power of 2) modulo a number $m$, in place. Assumes the input is already reduced modulo $m$.

$x \gets y$, where $x, y < m$ and $2^nx \equiv y \mod m$.

Worst-case complexity

$T(n) = O(n)$

$M(n) = O(1)$

where $T$ is time, $M$ is additional memory, and $n$ is other.significant_bits().

Examples

See here.

Left-shifts a number (multiplies it by a power of 2) modulo a number $m$, in place. Assumes the input is already reduced modulo $m$.

$x \gets y$, where $x, y < m$ and $2^nx \equiv y \mod m$.

Worst-case complexity

$T(n) = O(n)$

$M(n) = O(1)$

where $T$ is time, $M$ is additional memory, and $n$ is other.significant_bits().

Examples

See here.

Left-shifts a number (multiplies it by a power of 2) modulo a number $m$, in place. Assumes the input is already reduced modulo $m$.

$x \gets y$, where $x, y < m$ and $2^nx \equiv y \mod m$.

Worst-case complexity

$T(n) = O(n)$

$M(n) = O(1)$

where $T$ is time, $M$ is additional memory, and $n$ is other.significant_bits().

Examples

See here.

Left-shifts a number (multiplies it by a power of 2) modulo a number $m$, in place. Assumes the input is already reduced modulo $m$.

$x \gets y$, where $x, y < m$ and $2^nx \equiv y \mod m$.

Worst-case complexity

$T(n) = O(n)$

$M(n) = O(1)$

where $T$ is time, $M$ is additional memory, and $n$ is other.significant_bits().

Examples

See here.

Left-shifts a number (multiplies it by a power of 2) modulo a number $m$, in place. Assumes the input is already reduced modulo $m$.

$x \gets y$, where $x, y < m$ and $2^nx \equiv y \mod m$.

Worst-case complexity

$T(n) = O(n)$

$M(n) = O(1)$

where $T$ is time, $M$ is additional memory, and $n$ is other.significant_bits().

Examples

See here.

Left-shifts a number (multiplies it by a power of 2) modulo a number $m$, in place. Assumes the input is already reduced modulo $m$.

$x \gets y$, where $x, y < m$ and $2^nx \equiv y \mod m$.

Worst-case complexity

$T(n) = O(n)$

$M(n) = O(1)$

where $T$ is time, $M$ is additional memory, and $n$ is other.significant_bits().

Examples

See here.

Left-shifts a number (multiplies it by a power of 2) modulo a number $m$, in place. Assumes the input is already reduced modulo $m$.

$x \gets y$, where $x, y < m$ and $2^nx \equiv y \mod m$.

Worst-case complexity

$T(n) = O(n)$

$M(n) = O(1)$

where $T$ is time, $M$ is additional memory, and $n$ is other.significant_bits().

Examples

See here.

Left-shifts a number (multiplies it by a power of 2) modulo a number $m$, in place. Assumes the input is already reduced modulo $m$.

$x \gets y$, where $x, y < m$ and $2^nx \equiv y \mod m$.

Worst-case complexity

$T(n) = O(n)$

$M(n) = O(1)$

where $T$ is time, $M$ is additional memory, and $n$ is other.significant_bits().

Examples

See here.

Left-shifts a number (multiplies it by a power of 2) modulo a number $m$, in place. Assumes the input is already reduced modulo $m$.

$x \gets y$, where $x, y < m$ and $2^nx \equiv y \mod m$.

Worst-case complexity

$T(n) = O(n)$

$M(n) = O(1)$

where $T$ is time, $M$ is additional memory, and $n$ is other.significant_bits().

Examples

See here.

Left-shifts a number (multiplies it by a power of 2) modulo a number $m$, in place. Assumes the input is already reduced modulo $m$.

$x \gets y$, where $x, y < m$ and $2^nx \equiv y \mod m$.

Worst-case complexity

$T(n) = O(n)$

$M(n) = O(1)$

where $T$ is time, $M$ is additional memory, and $n$ is other.significant_bits().

Examples

See here.

Left-shifts a number (multiplies it by a power of 2) modulo a number $m$, in place. Assumes the input is already reduced modulo $m$.

$x \gets y$, where $x, y < m$ and $2^nx \equiv y \mod m$.

Worst-case complexity

$T(n) = O(n)$

$M(n) = O(1)$

where $T$ is time, $M$ is additional memory, and $n$ is other.significant_bits().

Examples

See here.

Left-shifts a number (multiplies it by a power of 2) modulo a number $m$, in place. Assumes the input is already reduced modulo $m$.

$x \gets y$, where $x, y < m$ and $2^nx \equiv y \mod m$.

Worst-case complexity

$T(n) = O(n)$

$M(n) = O(1)$

where $T$ is time, $M$ is additional memory, and $n$ is other.significant_bits().

Examples

See here.

Left-shifts a number (multiplies it by a power of 2) modulo a number $m$, in place. Assumes the input is already reduced modulo $m$.

$x \gets y$, where $x, y < m$ and $2^nx \equiv y \mod m$.

Worst-case complexity

$T(n) = O(n)$

$M(n) = O(1)$

where $T$ is time, $M$ is additional memory, and $n$ is other.significant_bits().

Examples

See here.

Left-shifts a number (multiplies it by a power of 2) modulo a number $m$, in place. Assumes the input is already reduced modulo $m$.

$x \gets y$, where $x, y < m$ and $2^nx \equiv y \mod m$.

Worst-case complexity

$T(n) = O(n)$

$M(n) = O(1)$

where $T$ is time, $M$ is additional memory, and $n$ is other.significant_bits().

Examples

See here.

Left-shifts a number (multiplies it by a power of 2) modulo a number $m$, in place. Assumes the input is already reduced modulo $m$.

$x \gets y$, where $x, y < m$ and $2^nx \equiv y \mod m$.

Worst-case complexity

$T(n) = O(n)$

$M(n) = O(1)$

where $T$ is time, $M$ is additional memory, and $n$ is other.significant_bits().

Examples

See here.

Left-shifts a number (multiplies it by a power of 2) modulo a number $m$, in place. Assumes the input is already reduced modulo $m$.

$x \gets y$, where $x, y < m$ and $2^nx \equiv y \mod m$.

Worst-case complexity

$T(n) = O(n)$

$M(n) = O(1)$

where $T$ is time, $M$ is additional memory, and $n$ is other.significant_bits().

Examples

See here.

Left-shifts a number (multiplies it by a power of 2) modulo a number $m$, in place. Assumes the input is already reduced modulo $m$.

$x \gets y$, where $x, y < m$ and $2^nx \equiv y \mod m$.

Worst-case complexity

$T(n) = O(n)$

$M(n) = O(1)$

where $T$ is time, $M$ is additional memory, and $n$ is other.significant_bits().

Examples

See here.

Left-shifts a number (multiplies it by a power of 2) modulo a number $m$, in place. Assumes the input is already reduced modulo $m$.

$x \gets y$, where $x, y < m$ and $2^nx \equiv y \mod m$.

Worst-case complexity

$T(n) = O(n)$

$M(n) = O(1)$

where $T$ is time, $M$ is additional memory, and $n$ is other.significant_bits().

Examples

See here.

Left-shifts a number (multiplies it by a power of 2) modulo a number $m$, in place. Assumes the input is already reduced modulo $m$.

$x \gets y$, where $x, y < m$ and $2^nx \equiv y \mod m$.

Worst-case complexity

$T(n) = O(n)$

$M(n) = O(1)$

where $T$ is time, $M$ is additional memory, and $n$ is other.significant_bits().

Examples

See here.

Left-shifts a number (multiplies it by a power of 2) modulo a number $m$, in place. Assumes the input is already reduced modulo $m$.

$x \gets y$, where $x, y < m$ and $2^nx \equiv y \mod m$.

Worst-case complexity

$T(n) = O(n)$

$M(n) = O(1)$

where $T$ is time, $M$ is additional memory, and $n$ is other.significant_bits().

Examples

See here.

Left-shifts a number (multiplies it by a power of 2) modulo a number $m$, in place. Assumes the input is already reduced modulo $m$.

$x \gets y$, where $x, y < m$ and $2^nx \equiv y \mod m$.

Worst-case complexity

$T(n) = O(n)$

$M(n) = O(1)$

where $T$ is time, $M$ is additional memory, and $n$ is other.significant_bits().

Examples

See here.

Left-shifts a number (multiplies it by a power of 2) modulo a number $m$, in place. Assumes the input is already reduced modulo $m$.

$x \gets y$, where $x, y < m$ and $2^nx \equiv y \mod m$.

Worst-case complexity

$T(n) = O(n)$

$M(n) = O(1)$

where $T$ is time, $M$ is additional memory, and $n$ is other.significant_bits().

Examples

See here.

Left-shifts a number (multiplies it by a power of 2) modulo a number $m$, in place. Assumes the input is already reduced modulo $m$.

$x \gets y$, where $x, y < m$ and $2^nx \equiv y \mod m$.

Worst-case complexity

$T(n) = O(n)$

$M(n) = O(1)$

where $T$ is time, $M$ is additional memory, and $n$ is other.significant_bits().

Examples

See here.

Left-shifts a number (multiplies it by a power of 2) modulo a number $m$, in place. Assumes the input is already reduced modulo $m$.

$x \gets y$, where $x, y < m$ and $2^nx \equiv y \mod m$.

Worst-case complexity

$T(n) = O(n)$

$M(n) = O(1)$

where $T$ is time, $M$ is additional memory, and $n$ is other.significant_bits().

Examples

See here.

Left-shifts a number (multiplies it by a power of 2) modulo a number $m$, in place. Assumes the input is already reduced modulo $m$.

$x \gets y$, where $x, y < m$ and $2^nx \equiv y \mod m$.

Worst-case complexity

$T(n) = O(n)$

$M(n) = O(1)$

where $T$ is time, $M$ is additional memory, and $n$ is other.significant_bits().

Examples

See here.

Left-shifts a number (multiplies it by a power of 2) modulo a number $m$, in place. Assumes the input is already reduced modulo $m$.

$x \gets y$, where $x, y < m$ and $2^nx \equiv y \mod m$.

Worst-case complexity

$T(n) = O(n)$

$M(n) = O(1)$

where $T$ is time, $M$ is additional memory, and $n$ is other.significant_bits().

Examples

See here.

Left-shifts a number (multiplies it by a power of 2) modulo a number $m$, in place. Assumes the input is already reduced modulo $m$.

$x \gets y$, where $x, y < m$ and $2^nx \equiv y \mod m$.

Worst-case complexity

$T(n) = O(n)$

$M(n) = O(1)$

where $T$ is time, $M$ is additional memory, and $n$ is other.significant_bits().

Examples

See here.

Left-shifts a number (multiplies it by a power of 2) modulo a number $m$, in place. Assumes the input is already reduced modulo $m$.

$x \gets y$, where $x, y < m$ and $2^nx \equiv y \mod m$.

Worst-case complexity

$T(n) = O(n)$

$M(n) = O(1)$

where $T$ is time, $M$ is additional memory, and $n$ is other.significant_bits().

Examples

See here.

Left-shifts a number (multiplies it by a power of 2) modulo a number $m$, in place. Assumes the input is already reduced modulo $m$.

$x \gets y$, where $x, y < m$ and $2^nx \equiv y \mod m$.

Worst-case complexity

$T(n) = O(n)$

$M(n) = O(1)$

where $T$ is time, $M$ is additional memory, and $n$ is other.significant_bits().

Examples

See here.

Left-shifts a number (multiplies it by a power of 2) modulo a number $m$, in place. Assumes the input is already reduced modulo $m$.

$x \gets y$, where $x, y < m$ and $2^nx \equiv y \mod m$.

Worst-case complexity

$T(n) = O(n)$

$M(n) = O(1)$

where $T$ is time, $M$ is additional memory, and $n$ is other.significant_bits().

Examples

See here.

Left-shifts a number (multiplies it by a power of 2) modulo a number $m$, in place. Assumes the input is already reduced modulo $m$.

$x \gets y$, where $x, y < m$ and $2^nx \equiv y \mod m$.

Worst-case complexity

$T(n) = O(n)$

$M(n) = O(1)$

where $T$ is time, $M$ is additional memory, and $n$ is other.significant_bits().

Examples

See here.

Left-shifts a number (multiplies it by a power of 2) modulo a number $m$, in place. Assumes the input is already reduced modulo $m$.

$x \gets y$, where $x, y < m$ and $2^nx \equiv y \mod m$.

Worst-case complexity

$T(n) = O(n)$

$M(n) = O(1)$

where $T$ is time, $M$ is additional memory, and $n$ is other.significant_bits().

Examples

See here.

Left-shifts a number (multiplies it by a power of 2) modulo a number $m$, in place. Assumes the input is already reduced modulo $m$.

$x \gets y$, where $x, y < m$ and $2^nx \equiv y \mod m$.

Worst-case complexity

$T(n) = O(n)$

$M(n) = O(1)$

where $T$ is time, $M$ is additional memory, and $n$ is other.significant_bits().

Examples

See here.

Left-shifts a number (multiplies it by a power of 2) modulo a number $m$, in place. Assumes the input is already reduced modulo $m$.

$x \gets y$, where $x, y < m$ and $\lfloor 2^nx \rfloor \equiv y \mod m$.

Worst-case complexity

$T(n) = O(n)$

$M(n) = O(1)$

where $T$ is time, $M$ is additional memory, and $n$ is other.significant_bits().

Examples

See here.

Left-shifts a number (multiplies it by a power of 2) modulo a number $m$, in place. Assumes the input is already reduced modulo $m$.

$x \gets y$, where $x, y < m$ and $\lfloor 2^nx \rfloor \equiv y \mod m$.

Worst-case complexity

$T(n) = O(n)$

$M(n) = O(1)$

where $T$ is time, $M$ is additional memory, and $n$ is other.significant_bits().

Examples

See here.

Left-shifts a number (multiplies it by a power of 2) modulo a number $m$, in place. Assumes the input is already reduced modulo $m$.

$x \gets y$, where $x, y < m$ and $\lfloor 2^nx \rfloor \equiv y \mod m$.

Worst-case complexity

$T(n) = O(n)$

$M(n) = O(1)$

where $T$ is time, $M$ is additional memory, and $n$ is other.significant_bits().

Examples

See here.

Left-shifts a number (multiplies it by a power of 2) modulo a number $m$, in place. Assumes the input is already reduced modulo $m$.

$x \gets y$, where $x, y < m$ and $\lfloor 2^nx \rfloor \equiv y \mod m$.

Worst-case complexity

$T(n) = O(n)$

$M(n) = O(1)$

where $T$ is time, $M$ is additional memory, and $n$ is other.significant_bits().

Examples

See here.

Left-shifts a number (multiplies it by a power of 2) modulo a number $m$, in place. Assumes the input is already reduced modulo $m$.

$x \gets y$, where $x, y < m$ and $\lfloor 2^nx \rfloor \equiv y \mod m$.

Worst-case complexity

$T(n) = O(n)$

$M(n) = O(1)$

where $T$ is time, $M$ is additional memory, and $n$ is other.significant_bits().

Examples

See here.

Left-shifts a number (multiplies it by a power of 2) modulo a number $m$, in place. Assumes the input is already reduced modulo $m$.

$x \gets y$, where $x, y < m$ and $\lfloor 2^nx \rfloor \equiv y \mod m$.

Worst-case complexity

$T(n) = O(n)$

$M(n) = O(1)$

where $T$ is time, $M$ is additional memory, and $n$ is other.significant_bits().

Examples

See here.

Left-shifts a number (multiplies it by a power of 2) modulo a number $m$, in place. Assumes the input is already reduced modulo $m$.

$x \gets y$, where $x, y < m$ and $\lfloor 2^nx \rfloor \equiv y \mod m$.

Worst-case complexity

$T(n) = O(n)$

$M(n) = O(1)$

where $T$ is time, $M$ is additional memory, and $n$ is other.significant_bits().

Examples

See here.

Left-shifts a number (multiplies it by a power of 2) modulo a number $m$, in place. Assumes the input is already reduced modulo $m$.

$x \gets y$, where $x, y < m$ and $\lfloor 2^nx \rfloor \equiv y \mod m$.

Worst-case complexity

$T(n) = O(n)$

$M(n) = O(1)$

where $T$ is time, $M$ is additional memory, and $n$ is other.significant_bits().

Examples

See here.

Left-shifts a number (multiplies it by a power of 2) modulo a number $m$, in place. Assumes the input is already reduced modulo $m$.

$x \gets y$, where $x, y < m$ and $\lfloor 2^nx \rfloor \equiv y \mod m$.

Worst-case complexity

$T(n) = O(n)$

$M(n) = O(1)$

where $T$ is time, $M$ is additional memory, and $n$ is other.significant_bits().

Examples

See here.

Left-shifts a number (multiplies it by a power of 2) modulo a number $m$, in place. Assumes the input is already reduced modulo $m$.

$x \gets y$, where $x, y < m$ and $\lfloor 2^nx \rfloor \equiv y \mod m$.

Worst-case complexity

$T(n) = O(n)$

$M(n) = O(1)$

where $T$ is time, $M$ is additional memory, and $n$ is other.significant_bits().

Examples

See here.

Left-shifts a number (multiplies it by a power of 2) modulo a number $m$, in place. Assumes the input is already reduced modulo $m$.

$x \gets y$, where $x, y < m$ and $\lfloor 2^nx \rfloor \equiv y \mod m$.

Worst-case complexity

$T(n) = O(n)$

$M(n) = O(1)$

where $T$ is time, $M$ is additional memory, and $n$ is other.significant_bits().

Examples

See here.

Left-shifts a number (multiplies it by a power of 2) modulo a number $m$, in place. Assumes the input is already reduced modulo $m$.

$x \gets y$, where $x, y < m$ and $\lfloor 2^nx \rfloor \equiv y \mod m$.

Worst-case complexity

$T(n) = O(n)$

$M(n) = O(1)$

where $T$ is time, $M$ is additional memory, and $n$ is other.significant_bits().

Examples

See here.

Left-shifts a number (multiplies it by a power of 2) modulo a number $m$, in place. Assumes the input is already reduced modulo $m$.

$x \gets y$, where $x, y < m$ and $\lfloor 2^nx \rfloor \equiv y \mod m$.

Worst-case complexity

$T(n) = O(n)$

$M(n) = O(1)$

where $T$ is time, $M$ is additional memory, and $n$ is other.significant_bits().

Examples

See here.

Left-shifts a number (multiplies it by a power of 2) modulo a number $m$, in place. Assumes the input is already reduced modulo $m$.

$x \gets y$, where $x, y < m$ and $\lfloor 2^nx \rfloor \equiv y \mod m$.

Worst-case complexity

$T(n) = O(n)$

$M(n) = O(1)$

where $T$ is time, $M$ is additional memory, and $n$ is other.significant_bits().

Examples

See here.

Left-shifts a number (multiplies it by a power of 2) modulo a number $m$, in place. Assumes the input is already reduced modulo $m$.

$x \gets y$, where $x, y < m$ and $\lfloor 2^nx \rfloor \equiv y \mod m$.

Worst-case complexity

$T(n) = O(n)$

$M(n) = O(1)$

where $T$ is time, $M$ is additional memory, and $n$ is other.significant_bits().

Examples

See here.

Left-shifts a number (multiplies it by a power of 2) modulo a number $m$, in place. Assumes the input is already reduced modulo $m$.

$x \gets y$, where $x, y < m$ and $\lfloor 2^nx \rfloor \equiv y \mod m$.

Worst-case complexity

$T(n) = O(n)$

$M(n) = O(1)$

where $T$ is time, $M$ is additional memory, and $n$ is other.significant_bits().

Examples

See here.

Left-shifts a number (multiplies it by a power of 2) modulo a number $m$, in place. Assumes the input is already reduced modulo $m$.

$x \gets y$, where $x, y < m$ and $\lfloor 2^nx \rfloor \equiv y \mod m$.

Worst-case complexity

$T(n) = O(n)$

$M(n) = O(1)$

where $T$ is time, $M$ is additional memory, and $n$ is other.significant_bits().

Examples

See here.

Left-shifts a number (multiplies it by a power of 2) modulo a number $m$, in place. Assumes the input is already reduced modulo $m$.

$x \gets y$, where $x, y < m$ and $\lfloor 2^nx \rfloor \equiv y \mod m$.

Worst-case complexity

$T(n) = O(n)$

$M(n) = O(1)$

where $T$ is time, $M$ is additional memory, and $n$ is other.significant_bits().

Examples

See here.

Left-shifts a number (multiplies it by a power of 2) modulo a number $m$, in place. Assumes the input is already reduced modulo $m$.

$x \gets y$, where $x, y < m$ and $\lfloor 2^nx \rfloor \equiv y \mod m$.

Worst-case complexity

$T(n) = O(n)$

$M(n) = O(1)$

where $T$ is time, $M$ is additional memory, and $n$ is other.significant_bits().

Examples

See here.

Left-shifts a number (multiplies it by a power of 2) modulo a number $m$, in place. Assumes the input is already reduced modulo $m$.

$x \gets y$, where $x, y < m$ and $\lfloor 2^nx \rfloor \equiv y \mod m$.

Worst-case complexity

$T(n) = O(n)$

$M(n) = O(1)$

where $T$ is time, $M$ is additional memory, and $n$ is other.significant_bits().

Examples

See here.

Left-shifts a number (multiplies it by a power of 2) modulo a number $m$, in place. Assumes the input is already reduced modulo $m$.

$x \gets y$, where $x, y < m$ and $\lfloor 2^nx \rfloor \equiv y \mod m$.

Worst-case complexity

$T(n) = O(n)$

$M(n) = O(1)$

where $T$ is time, $M$ is additional memory, and $n$ is other.significant_bits().

Examples

See here.

Left-shifts a number (multiplies it by a power of 2) modulo a number $m$, in place. Assumes the input is already reduced modulo $m$.

$x \gets y$, where $x, y < m$ and $\lfloor 2^nx \rfloor \equiv y \mod m$.

Worst-case complexity

$T(n) = O(n)$

$M(n) = O(1)$

where $T$ is time, $M$ is additional memory, and $n$ is other.significant_bits().

Examples

See here.

Left-shifts a number (multiplies it by a power of 2) modulo a number $m$, in place. Assumes the input is already reduced modulo $m$.

$x \gets y$, where $x, y < m$ and $\lfloor 2^nx \rfloor \equiv y \mod m$.

Worst-case complexity

$T(n) = O(n)$

$M(n) = O(1)$

where $T$ is time, $M$ is additional memory, and $n$ is other.significant_bits().

Examples

See here.

Left-shifts a number (multiplies it by a power of 2) modulo a number $m$, in place. Assumes the input is already reduced modulo $m$.

$x \gets y$, where $x, y < m$ and $\lfloor 2^nx \rfloor \equiv y \mod m$.

Worst-case complexity

$T(n) = O(n)$

$M(n) = O(1)$

where $T$ is time, $M$ is additional memory, and $n$ is other.significant_bits().

Examples

See here.

Left-shifts a number (multiplies it by a power of 2) modulo a number $m$, in place. Assumes the input is already reduced modulo $m$.

$x \gets y$, where $x, y < m$ and $\lfloor 2^nx \rfloor \equiv y \mod m$.

Worst-case complexity

$T(n) = O(n)$

$M(n) = O(1)$

where $T$ is time, $M$ is additional memory, and $n$ is other.significant_bits().

Examples

See here.

Left-shifts a number (multiplies it by a power of 2) modulo a number $m$, in place. Assumes the input is already reduced modulo $m$.

$x \gets y$, where $x, y < m$ and $\lfloor 2^nx \rfloor \equiv y \mod m$.

Worst-case complexity

$T(n) = O(n)$

$M(n) = O(1)$

where $T$ is time, $M$ is additional memory, and $n$ is other.significant_bits().

Examples

See here.

Left-shifts a number (multiplies it by a power of 2) modulo a number $m$, in place. Assumes the input is already reduced modulo $m$.

$x \gets y$, where $x, y < m$ and $\lfloor 2^nx \rfloor \equiv y \mod m$.

Worst-case complexity

$T(n) = O(n)$

$M(n) = O(1)$

where $T$ is time, $M$ is additional memory, and $n$ is other.significant_bits().

Examples

See here.

Left-shifts a number (multiplies it by a power of 2) modulo a number $m$, in place. Assumes the input is already reduced modulo $m$.

$x \gets y$, where $x, y < m$ and $\lfloor 2^nx \rfloor \equiv y \mod m$.

Worst-case complexity

$T(n) = O(n)$

$M(n) = O(1)$

where $T$ is time, $M$ is additional memory, and $n$ is other.significant_bits().

Examples

See here.

Left-shifts a number (multiplies it by a power of 2) modulo a number $m$, in place. Assumes the input is already reduced modulo $m$.

$x \gets y$, where $x, y < m$ and $\lfloor 2^nx \rfloor \equiv y \mod m$.

Worst-case complexity

$T(n) = O(n)$

$M(n) = O(1)$

where $T$ is time, $M$ is additional memory, and $n$ is other.significant_bits().

Examples

See here.

Left-shifts a number (multiplies it by a power of 2) modulo a number $m$, in place. Assumes the input is already reduced modulo $m$.

$x \gets y$, where $x, y < m$ and $\lfloor 2^nx \rfloor \equiv y \mod m$.

Worst-case complexity

$T(n) = O(n)$

$M(n) = O(1)$

where $T$ is time, $M$ is additional memory, and $n$ is other.significant_bits().

Examples

See here.

Left-shifts a number (multiplies it by a power of 2) modulo a number $m$, in place. Assumes the input is already reduced modulo $m$.

$x \gets y$, where $x, y < m$ and $\lfloor 2^nx \rfloor \equiv y \mod m$.

Worst-case complexity

$T(n) = O(n)$

$M(n) = O(1)$

where $T$ is time, $M$ is additional memory, and $n$ is other.significant_bits().

Examples

See here.

Left-shifts a number (multiplies it by a power of 2) modulo a number $m$, in place. Assumes the input is already reduced modulo $m$.

$x \gets y$, where $x, y < m$ and $\lfloor 2^nx \rfloor \equiv y \mod m$.

Worst-case complexity

$T(n) = O(n)$

$M(n) = O(1)$

where $T$ is time, $M$ is additional memory, and $n$ is other.significant_bits().

Examples

See here.

Left-shifts a number (multiplies it by a power of 2) modulo a number $m$, in place. Assumes the input is already reduced modulo $m$.

$x \gets y$, where $x, y < m$ and $\lfloor 2^nx \rfloor \equiv y \mod m$.

Worst-case complexity

$T(n) = O(n)$

$M(n) = O(1)$

where $T$ is time, $M$ is additional memory, and $n$ is other.significant_bits().

Examples

See here.

Left-shifts a number (multiplies it by a power of 2) modulo a number $m$, in place. Assumes the input is already reduced modulo $m$.

$x \gets y$, where $x, y < m$ and $\lfloor 2^nx \rfloor \equiv y \mod m$.

Worst-case complexity

$T(n) = O(n)$

$M(n) = O(1)$

where $T$ is time, $M$ is additional memory, and $n$ is other.significant_bits().

Examples

See here.

Left-shifts a number (multiplies it by a power of 2) modulo a number $m$, in place. Assumes the input is already reduced modulo $m$.

$x \gets y$, where $x, y < m$ and $\lfloor 2^nx \rfloor \equiv y \mod m$.

Worst-case complexity

$T(n) = O(n)$

$M(n) = O(1)$

where $T$ is time, $M$ is additional memory, and $n$ is other.significant_bits().

Examples

See here.

Left-shifts a number (multiplies it by a power of 2) modulo a number $m$, in place. Assumes the input is already reduced modulo $m$.

$x \gets y$, where $x, y < m$ and $\lfloor 2^nx \rfloor \equiv y \mod m$.

Worst-case complexity

$T(n) = O(n)$

$M(n) = O(1)$

where $T$ is time, $M$ is additional memory, and $n$ is other.significant_bits().

Examples

See here.

Implementors