native.I8
Native methods on I8.
All modules · Writing docstrings
to_int
Section titled “to_int”func to_int(self: I8): IntConvert to an arbitrary-precision Int without losing value.
func hash(self: I8): U64Return the runtime hash. Hash values are not a stable serialization format.
func band(self: I8, other: I8): I8Apply bitwise & to two values of the same fixed-width integer type.
func ior(self: I8, other: I8): I8Apply bitwise | to two values of the same fixed-width integer type.
func xor(self: I8, other: I8): I8Apply bitwise ^ to two values of the same fixed-width integer type.
func inv(self: I8): I8Invert every bit, retaining the same fixed-width integer type.
func shl(self: I8, count: Int): I8Shift by a nonnegative count representable as U32. The count wraps modulo the integer width; signed right shifts extend the sign bit.
func shr(self: I8, count: Int): I8Shift by a nonnegative count representable as U32. The count wraps modulo the integer width; signed right shifts extend the sign bit.