Product Type

Int

A signed integer value.

Members

Bindings

var value: ???

Functions

fun abs() -> Int

Returns the absolute value of self.

fun round_up(nearest_multiple_of stride: Int) -> Int

Returns self rounded up to the nearest multiple of stride.

fun round_up_nearest_power_two() -> Int

Returns the smallest power of two that is not smaller than self.

fun +() -> Int

Returns self.

fun ~() -> Int

Returns the bitwise inverse of self.

fun &*(_ other: Self) -> Int

Returns the product of self and `other, wrapping the result in case of any overflow.

Initializers

init()
init(bit_pattern other: UInt)

Creates an instance with the same memory representation as other.

init(bit_pattern address: PointerToMutable<Never>)

Creates an instance with the same memory representation as address.