Instance Property

words

A collection containing the words of this value’s binary representation, in order from the least significant to most significant.

Declaration

var words: Int.Words { get }

Discussion

Negative values are returned in two’s complement representation, regardless of the type’s underlying implementation.

Relationships

From Protocol

See Also

Working with Binary Representation

static var bitWidth: Int

The number of bits used for the underlying binary representation of values of this type.

var bitWidth: Int

The number of bits in the binary representation of this value.

var nonzeroBitCount: Int

The number of bits equal to 1 in this value’s binary representation.

var leadingZeroBitCount: Int

The number of leading zeros in this value’s binary representation.

var trailingZeroBitCount: Int

The number of trailing zeros in this value’s binary representation.

struct Int.Words

A type that represents the words of this integer.