<!--
{
  "documentType" : "article",
  "framework" : "Swift",
  "identifier" : "/documentation/Swift/Int64/FixedWidthInteger-Implementations",
  "metadataVersion" : "0.1.0",
  "role" : "collectionGroup",
  "title" : "FixedWidthInteger Implementations"
}
-->

# FixedWidthInteger Implementations

## Topics

### Operators

[`static func &* (Self, Self) -> Self`](/documentation/Swift/Int64/&*(_:_:))

Returns the product of the two given values, wrapping the result in case
of any overflow.

[`static func &*= (inout Self, Self)`](/documentation/Swift/Int64/&*=(_:_:))

Multiplies two values and stores the result in the left-hand-side
variable, wrapping any overflow.

[`static func &+ (Self, Self) -> Self`](/documentation/Swift/Int64/&+(_:_:))

Returns the sum of the two given values, wrapping the result in case of
any overflow.

[`static func &+= (inout Self, Self)`](/documentation/Swift/Int64/&+=(_:_:))

Adds two values and stores the result in the left-hand-side variable,
wrapping any overflow.

[`static func &- (Self, Self) -> Self`](/documentation/Swift/Int64/&-(_:_:))

Returns the difference of the two given values, wrapping the result in
case of any overflow.

[`static func &-= (inout Self, Self)`](/documentation/Swift/Int64/&-=(_:_:))

Subtracts the second value from the first and stores the difference in the
left-hand-side variable, wrapping any overflow.

[`static func &<< <Other>(Self, Other) -> Self`](/documentation/Swift/Int64/&__(_:_:)-1vhcm)

Returns the result of shifting a value’s binary representation the
specified number of digits to the left, masking the shift amount to the
type’s bit width.

[`static func &>> <Other>(Self, Other) -> Self`](/documentation/Swift/Int64/&__(_:_:)-35gqp)

Returns the result of shifting a value’s binary representation the
specified number of digits to the right, masking the shift amount to the
type’s bit width.

[`static func &>> (Int64, Int64) -> Int64`](/documentation/Swift/Int64/&__(_:_:)-3uykh)

Returns the result of shifting a value’s binary representation the
specified number of digits to the right, masking the shift amount to the
type’s bit width.

[`static func &>> (Self, Self) -> Self`](/documentation/Swift/Int64/&__(_:_:)-5vfka)

Returns the result of shifting a value’s binary representation the
specified number of digits to the right, masking the shift amount to the
type’s bit width.

[`static func &<< (Self, Self) -> Self`](/documentation/Swift/Int64/&__(_:_:)-61wzt)

Returns the result of shifting a value’s binary representation the
specified number of digits to the left, masking the shift amount to the
type’s bit width.

[`static func &<< (Int64, Int64) -> Int64`](/documentation/Swift/Int64/&__(_:_:)-gclw)

Returns the result of shifting a value’s binary representation the
specified number of digits to the left, masking the shift amount to the
type’s bit width.

[`static func &>>= <Other>(inout Self, Other)`](/documentation/Swift/Int64/&__=(_:_:)-7fhnz)

Calculates the result of shifting a value’s binary representation the
specified number of digits to the right, masking the shift amount to the
type’s bit width, and stores the result in the left-hand-side variable.

[`static func &<<= <Other>(inout Self, Other)`](/documentation/Swift/Int64/&__=(_:_:)-o7l7)

Returns the result of shifting a value’s binary representation the
specified number of digits to the left, masking the shift amount to the
type’s bit width, and stores the result in the left-hand-side variable.

### Initializers

[`init?(String)`](/documentation/Swift/Int64/init(_:)-6esec)

Creates a new integer value from the given string.

[`init<T>(T)`](/documentation/Swift/Int64/init(_:)-9oso5)

[`init?<S>(S, radix: Int)`](/documentation/Swift/Int64/init(_:radix:))

Creates a new integer value from the given string and radix.

[`init(bigEndian: Self)`](/documentation/Swift/Int64/init(bigEndian:))

Creates an integer from its big-endian representation, changing the byte
order if necessary.

[`init?<T>(exactly: T)`](/documentation/Swift/Int64/init(exactly:)-7ihf2)

[`init(littleEndian: Self)`](/documentation/Swift/Int64/init(littleEndian:))

Creates an integer from its little-endian representation, changing the
byte order if necessary.

### Instance Properties

[`var bigEndian: Self`](/documentation/Swift/Int64/bigEndian)

The big-endian representation of this integer.

[`var littleEndian: Self`](/documentation/Swift/Int64/littleEndian)

The little-endian representation of this integer.

### Type Methods

[`static func random(in: Range<Self>) -> Self`](/documentation/Swift/Int64/random(in:)-4o9ko)

Returns a random value within the specified range.

[`static func random(in: ClosedRange<Self>) -> Self`](/documentation/Swift/Int64/random(in:)-5f9pk)

Returns a random value within the specified range.

[`static func random<T>(in: ClosedRange<Self>, using: inout T) -> Self`](/documentation/Swift/Int64/random(in:using:)-1ac76)

Returns a random value within the specified range, using the given
generator as a source for randomness.

[`static func random<T>(in: Range<Self>, using: inout T) -> Self`](/documentation/Swift/Int64/random(in:using:)-2tzae)

Returns a random value within the specified range, using the given
generator as a source for randomness.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)