<!--
{
  "availability" : [

  ],
  "documentType" : "symbol",
  "framework" : "Accelerate",
  "identifier" : "/documentation/simd/simd_long2",
  "metadataVersion" : "0.1.0",
  "role" : "Type Alias",
  "symbol" : {
    "kind" : "Type Alias",
    "modules" : [
      "simd"
    ],
    "preciseIdentifier" : "c:@T@simd_long2"
  },
  "title" : "simd_long2"
}
-->

# simd_long2

A vector of two 64-bit signed integer elements.

```
typealias simd_long2 = SIMD2<simd_long1>
```

## Topics

### Functions to Create Two-Element Vectors From Other Vectors

[`simd_make_long2(_:)`](/documentation/simd/simd_make_long2(_:)-96bn)

Returns a new vector from the specified vector.

[`simd_make_long2(_:)`](/documentation/simd/simd_make_long2(_:)-5ou8)

Returns a new vector by truncating the specified three-element vector.

[`simd_make_long2(_:)`](/documentation/simd/simd_make_long2(_:)-2abd)

Returns a new vector by truncating the specified four-element vector.

[`simd_make_long2(_:)`](/documentation/simd/simd_make_long2(_:)-9ozpw)

Returns a new vector by truncating the specified eight-element vector.

### Conversion to Signed 64-Bit (Round Half to Even) Functions

[`simd_long_rte`](/documentation/simd/simd_long_rte-80b73)

Returns a new two-element vector by rounding halves to the nearest even value.

### Functions to Create Two-Element Vectors From Scalar Values

[`simd_make_long2(_:)`](/documentation/simd/simd_make_long2(_:)-698vu)

Returns a new vector with the first element set to a scalar value, and other elements set to zero.

[`simd_make_long2(_:_:)`](/documentation/simd/simd_make_long2(_:_:))

Returns a new vector from the specified scalar values.

[`vector2`](/documentation/simd/vector2-8txip)

Returns a new vector from the specified scalar values.

[`simd_make_long2_undef(_:)`](/documentation/simd/simd_make_long2_undef(_:))

Returns a new vector with the first element set to a scalar value, and other elements undefined.

### Functions to Create Two-Element Vectors From Vectors of Other Types

[`simd_long`](/documentation/simd/simd_long-410r)

Returns a new vector from the specified vector of 8-bit, signed integer elements.

[`simd_long`](/documentation/simd/simd_long-4ay3)

Returns a new vector from the specified vector of 8-bit, unsigned integer elements.

[`simd_long`](/documentation/simd/simd_long-3w3v)

Returns a new vector from the specified vector of 16-bit, signed integer elements.

[`simd_long`](/documentation/simd/simd_long-462z)

Returns a new vector from the specified vector of 16-bit, unsigned integer elements.

[`simd_long`](/documentation/simd/simd_long-3z5r)

Returns a new vector from the specified vector of 32-bit, signed integer elements.

[`simd_long`](/documentation/simd/simd_long-49a7)

Returns a new vector from the specified vector of 32-bit, unsigned integer elements.

[`simd_long`](/documentation/simd/simd_long-3xox)

Returns a new vector from the specified vector of 64-bit, signed integer elements.

[`simd_long`](/documentation/simd/simd_long-47o1)

Returns a new vector from the specified vector of 64-bit, unsigned integer elements.

[`simd_long`](/documentation/simd/simd_long-49c1)

Returns a new vector from the specified vector of 32-bit, floating-point elements.

[`simd_long`](/documentation/simd/simd_long-4a75)

Returns a new vector from the specified vector of 64-bit, floating-point elements.

### Functions to Perform Saturating Conversion From Vectors of Other Types

[`simd_long_sat`](/documentation/simd/simd_long_sat-5sao0)

Returns a new vector from the specified vector of 8-bit, signed integer elements.

[`simd_long_sat`](/documentation/simd/simd_long_sat-5s0w0)

Returns a new vector from the specified vector of 8-bit, unsigned integer elements.

[`simd_long_sat`](/documentation/simd/simd_long_sat-5sfmo)

Returns a new vector from the specified vector of 16-bit, signed integer elements.

[`simd_long_sat`](/documentation/simd/simd_long_sat-5s5sw)

Returns a new vector from the specified vector of 16-bit, unsigned integer elements.

[`simd_long_sat`](/documentation/simd/simd_long_sat-5s900)

Returns a new vector from the specified vector of 32-bit, signed integer elements.

[`simd_long_sat`](/documentation/simd/simd_long_sat-5ryts)

Returns a new vector from the specified vector of 32-bit, unsigned integer elements.

[`simd_long_sat`](/documentation/simd/simd_long_sat-5s7z8)

Returns a new vector from the specified vector of 64-bit, signed integer elements.

[`simd_long_sat`](/documentation/simd/simd_long_sat-5ry5g)

Returns a new vector from the specified vector of 64-bit, unsigned integer elements.

[`simd_long_sat`](/documentation/simd/simd_long_sat-5rzv0)

Returns a new vector from the specified vector of 32-bit, floating-point elements.

[`simd_long_sat`](/documentation/simd/simd_long_sat-5s0fo)

Returns a new vector from the specified vector of 64-bit, floating-point elements.

### Common Functions

[`simd_abs(_:)`](/documentation/simd/simd_abs(_:)-88ipu)

Returns the absolute value of each element in a vector.

[`simd_clamp(_:_:_:)`](/documentation/simd/simd_clamp(_:_:_:)-4sik)

Returns each element in a vector clamped to a specified range.

[`simd_equal(_:_:)`](/documentation/simd/simd_equal(_:_:)-2qcs1)

Returns true if every element in a vector is exactly equal to the corresponding element in a second vector, and otherwise returns false.

### Reduce Functions

[`simd_reduce_min(_:)`](/documentation/simd/simd_reduce_min(_:)-49gjw)

Returns the miniumum value in a vector.

[`simd_reduce_max(_:)`](/documentation/simd/simd_reduce_max(_:)-4kq58)

Returns the maximum value in a vector.

[`simd_reduce_add(_:)`](/documentation/simd/simd_reduce_add(_:)-2qco6)

Returns the sum of all elements in a vector.

### Extrema Functions

[`simd_min(_:_:)`](/documentation/simd/simd_min(_:_:)-5lq3f)

Returns the minimum value of each element in a vector.

[`simd_max(_:_:)`](/documentation/simd/simd_max(_:_:)-439j5)

Returns the maximum value of each element in a vector.

### Logic and Bitwise Functions

[`simd_any(_:)`](/documentation/simd/simd_any(_:)-64pz3)

[`simd_all(_:)`](/documentation/simd/simd_all(_:)-1cyyp)

[`simd_bitselect(_:_:_:)`](/documentation/simd/simd_bitselect(_:_:_:)-8ffoo)

Returns a vector that contains elements from either the first or second parameter, based on the corresponding element in the third parameter.

### Alternative Type Alias

[`vector_long2`](/documentation/simd/vector_long2)



---

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)