Trait wasmi_core::Integer

source ·
pub trait Integer<T>: ArithmeticOps<T> {
    fn leading_zeros(self) -> T;
    fn trailing_zeros(self) -> T;
    fn count_ones(self) -> T;
    fn rotl(self, other: T) -> T;
    fn rotr(self, other: T) -> T;
    fn rem(self, other: T) -> Result<T, TrapCode>;
}
Expand description

Integer value.

Required Methods§

Counts leading zeros in the bitwise representation of the value.

Counts trailing zeros in the bitwise representation of the value.

Counts 1-bits in the bitwise representation of the value.

Get left bit rotation result.

Get right bit rotation result.

Get division remainder.

Implementations on Foreign Types§

Implementors§