SIMD16Storage
Storage for a vector of 16 integers.
@frozen struct SIMD16Storage
Storage for a vector of 16 integers.
@frozen struct SIMD16Storage
import Swift
@frozen struct Int
A signed integer value type.
init(_ source: Double)
Creates an integer from the given floating-point value, rounding toward zero.
init(_ source: Float)
Creates an integer from the given floating-point value, rounding toward zero.
init(_ source: Float16)
Creates an integer from the given floating-point value, rounding toward zero.
init(bitPattern objectID: ObjectIdentifier)
Creates an integer that captures the full value of the given object identifier.
init(bitPattern x: UInt)
Creates a new instance with the same memory representation as the given value.
init(bitPattern pointer: OpaquePointer?)
Creates a new value with the bit pattern of the given pointer.
init<P>(bitPattern pointer: P?) where P : _Pointer
Creates a new value with the bit pattern of the given pointer.
init?<T>(codingKey: T) where T : CodingKey
init?(exactly source: Double)
Creates an integer from the given floating-point value, if it can be represented exactly.
init?(exactly source: Float)
Creates an integer from the given floating-point value, if it can be represented exactly.
init?(exactly source: Float16)
Creates an integer from the given floating-point value, if it can be represented exactly.
init(from decoder: any Decoder) throws
static var bitWidth: Int { get }
The number of bits used for the underlying binary representation of values of this type.
var byteSwapped: Int { get }
var codingKey: any CodingKey { get }
var customMirror: Mirror { get }
A mirror that reflects the Int
instance.
var leadingZeroBitCount: Int { get }
The number of leading zeros in this value’s binary representation.
var magnitude: UInt { get }
var nonzeroBitCount: Int { get }
var trailingZeroBitCount: Int { get }
The number of trailing zeros in this value’s binary representation.
var words: Int.Words { get }
static func != (lhs: Int, rhs: Int) -> Bool
static func % (lhs: Int, rhs: Int) -> Int
static func %= (lhs: inout Int, rhs: Int)
static func & (lhs: Int, rhs: Int) -> Int
static func &<< (lhs: Int, rhs: Int) -> Int
static func &<<= (lhs: inout Int, rhs: Int)
static func &= (lhs: inout Int, rhs: Int)
static func &>> (lhs: Int, rhs: Int) -> Int
static func &>>= (lhs: inout Int, rhs: Int)
static func * (lhs: Int, rhs: Int) -> Int
Multiplies two values and produces their product.
static func *= (lhs: inout Int, rhs: Int)
Multiplies two values and stores the result in the left-hand-side variable.
static func + (lhs: Int, rhs: Int) -> Int
Adds two values and produces their sum.
static func += (lhs: inout Int, rhs: Int)
Adds two values and stores the result in the left-hand-side variable.
static func - (lhs: Int, rhs: Int) -> Int
Subtracts one value from another and produces their difference.
static func -= (lhs: inout Int, rhs: Int)
Subtracts the second value from the first and stores the difference in the left-hand-side variable.
static func / (lhs: Int, rhs: Int) -> Int
static func /= (lhs: inout Int, rhs: Int)
static func < (lhs: Int, rhs: Int) -> Bool
static func <= (lhs: Int, rhs: Int) -> Bool
static func == (lhs: Int, rhs: Int) -> Bool
static func > (lhs: Int, rhs: Int) -> Bool
static func >= (lhs: Int, rhs: Int) -> Bool
static func ^ (lhs: Int, rhs: Int) -> Int
static func ^= (lhs: inout Int, rhs: Int)
static func | (lhs: Int, rhs: Int) -> Int
static func |= (lhs: inout Int, rhs: Int)
func addingReportingOverflow(_ other: Int) -> (partialValue: Int, overflow: Bool)
func advanced(by n: Int) -> Int
Returns a value that is offset the specified distance from this value.
func distance(to other: Int) -> Int
Returns the distance from this value to the given value, expressed as a stride.
func dividedReportingOverflow(by other: Int) -> (partialValue: Int, overflow: Bool)
func dividingFullWidth(_ dividend: (high: Int, low: Int.Magnitude)) -> (quotient: Int, remainder: Int)
Returns a tuple containing the quotient and remainder of dividing the given value by this value.
func encode(to encoder: any Encoder) throws
Encodes this value into the given encoder.
func hash(into hasher: inout Hasher)
Hashes the essential components of this value by feeding them into the given hasher.
func multipliedFullWidth(by other: Int) -> (high: Int, low: Int.Magnitude)
Returns a tuple containing the high and low parts of the result of multiplying this value by the given value.
func multipliedReportingOverflow(by other: Int) -> (partialValue: Int, overflow: Bool)
func remainderReportingOverflow(dividingBy other: Int) -> (partialValue: Int, overflow: Bool)
func signum() -> Int
func subtractingReportingOverflow(_ other: Int) -> (partialValue: Int, overflow: Bool)
@frozen struct SIMD2Storage
Storage for a vector of two integers.
@frozen struct SIMD32Storage
Storage for a vector of 32 integers.
@frozen struct SIMD4Storage
Storage for a vector of four integers.
@frozen struct SIMD64Storage
Storage for a vector of 64 integers.
@frozen struct SIMD8Storage
Storage for a vector of eight integers.
@frozen struct Words
A type that represents the words of this integer.
typealias IntegerLiteralType = Int
A type that represents an integer literal.
typealias Magnitude = UInt
A type that can represent the absolute value of any possible value of this type.
typealias SIMDMaskScalar = Int
var customPlaygroundQuickLook: _PlaygroundQuickLook { get }
A custom playground Quick Look for the Int
instance.
protocol BitwiseCopyable
protocol SIMDStorage
A type that can function as storage for a SIMD vector type.
protocol Sendable
init()
var scalarCount: Int { get }
subscript(index: Int) -> Int { get set }