pub trait WrappingSquare {
type Output;
// Required method
fn wrapping_square(self) -> Self::Output;
}
Expand description
Squares a number, wrapping around at the boundary of the type.
Squares a number, wrapping around at the boundary of the type.
$f(x) = y$, where $y \equiv x^2 \mod 2^W$ and $W$ is Self::WIDTH
.
§Worst-case complexity
Constant time and additional memory.
§Examples
See here.
Squares a number, wrapping around at the boundary of the type.
$f(x) = y$, where $y \equiv x^2 \mod 2^W$ and $W$ is Self::WIDTH
.
§Worst-case complexity
Constant time and additional memory.
§Examples
See here.
Squares a number, wrapping around at the boundary of the type.
$f(x) = y$, where $y \equiv x^2 \mod 2^W$ and $W$ is Self::WIDTH
.
§Worst-case complexity
Constant time and additional memory.
§Examples
See here.
Squares a number, wrapping around at the boundary of the type.
$f(x) = y$, where $y \equiv x^2 \mod 2^W$ and $W$ is Self::WIDTH
.
§Worst-case complexity
Constant time and additional memory.
§Examples
See here.
Squares a number, wrapping around at the boundary of the type.
$f(x) = y$, where $y \equiv x^2 \mod 2^W$ and $W$ is Self::WIDTH
.
§Worst-case complexity
Constant time and additional memory.
§Examples
See here.
Squares a number, wrapping around at the boundary of the type.
$f(x) = y$, where $y \equiv x^2 \mod 2^W$ and $W$ is Self::WIDTH
.
§Worst-case complexity
Constant time and additional memory.
§Examples
See here.
Squares a number, wrapping around at the boundary of the type.
$f(x) = y$, where $y \equiv x^2 \mod 2^W$ and $W$ is Self::WIDTH
.
§Worst-case complexity
Constant time and additional memory.
§Examples
See here.
Squares a number, wrapping around at the boundary of the type.
$f(x) = y$, where $y \equiv x^2 \mod 2^W$ and $W$ is Self::WIDTH
.
§Worst-case complexity
Constant time and additional memory.
§Examples
See here.
Squares a number, wrapping around at the boundary of the type.
$f(x) = y$, where $y \equiv x^2 \mod 2^W$ and $W$ is Self::WIDTH
.
§Worst-case complexity
Constant time and additional memory.
§Examples
See here.
Squares a number, wrapping around at the boundary of the type.
$f(x) = y$, where $y \equiv x^2 \mod 2^W$ and $W$ is Self::WIDTH
.
§Worst-case complexity
Constant time and additional memory.
§Examples
See here.
Squares a number, wrapping around at the boundary of the type.
$f(x) = y$, where $y \equiv x^2 \mod 2^W$ and $W$ is Self::WIDTH
.
§Worst-case complexity
Constant time and additional memory.
§Examples
See here.
Squares a number, wrapping around at the boundary of the type.
$f(x) = y$, where $y \equiv x^2 \mod 2^W$ and $W$ is Self::WIDTH
.
§Worst-case complexity
Constant time and additional memory.
§Examples
See here.