Module i256

Source
Expand description

Signed 256-bit integer operations.

Enums§

Sign
Represents the sign of a 256-bit signed integer value.

Constants§

MAX_POSITIVE_VALUE
The maximum positive value for a 256-bit signed integer.
MIN_NEGATIVE_VALUE
The minimum negative value for a 256-bit signed integer.

Functions§

i256_cmp
Compares two 256-bit signed integers.
i256_div
Performs signed division of two 256-bit integers.
i256_mod
Performs signed modulo of two 256-bit integers.
i256_sign
Determines the sign of a 256-bit signed integer.
i256_sign_compl
Determines the sign of a 256-bit signed integer and converts it to its absolute value.
two_compl
Computes the two’s complement of a U256 value.
two_compl_mut
Computes the two’s complement of a U256 value in place.