<!--
{
  "availability" : [

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

# simd_long4

A vector of four 64-bit signed integer elements.

```
typealias simd_long4 = SIMD4<simd_long1>
```

## Topics

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

[`simd_make_long4(_:)`](/documentation/simd/simd_make_long4(_:)-98er2)

Returns a new vector from the specified two-element vector, and other elements set to zero.

[`simd_make_long4(_:)`](/documentation/simd/simd_make_long4(_:)-94zwx)

Returns a new vector from the specified three-element vector, and other elements set to zero.

[`simd_make_long4(_:)`](/documentation/simd/simd_make_long4(_:)-8op7o)

Returns a new vector from the specified vector.

[`simd_make_long4(_:)`](/documentation/simd/simd_make_long4(_:)-9tamg)

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

[`simd_make_long4(_:_:)`](/documentation/simd/simd_make_long4(_:_:)-51qs4)

Returns a new vector from the specified vectors.

[`vector4`](/documentation/simd/vector4-5mcxh)

Returns a new vector from the specified vectors.

[`simd_make_long4_undef(_:)`](/documentation/simd/simd_make_long4_undef(_:)-31uo1)

Returns a new vector from the specified two-element vector, and other elements undefined.

[`simd_make_long4_undef(_:)`](/documentation/simd/simd_make_long4_undef(_:)-345km)

Returns a new vector from the specified three-element vector, and other elements undefined.

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

[`simd_long_rte`](/documentation/simd/simd_long_rte-7twh9)

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

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

[`simd_make_long4(_:)`](/documentation/simd/simd_make_long4(_:)-4ir93)

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

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

Returns a new vector from the specified scalar values.

[`vector4`](/documentation/simd/vector4-96he8)

Returns a new vector from the specified scalar values.

[`simd_make_long4_undef(_:)`](/documentation/simd/simd_make_long4_undef(_:)-6bf3i)

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

### Functions to Create Four-Element Vectors From Combinations of Vectors and Scalar Values

[`simd_make_long4(_:_:_:)`](/documentation/simd/simd_make_long4(_:_:_:)-5o04d)

Returns a new vector from two scalar values and a vector.

[`simd_make_long4(_:_:_:)`](/documentation/simd/simd_make_long4(_:_:_:)-1oyio)

Returns a new vector from a scalar value, a vector, and a scalar value.

[`simd_make_long4(_:_:)`](/documentation/simd/simd_make_long4(_:_:)-837pc)

Returns a new vector from a scalar value and a vector.

[`simd_make_long4(_:_:_:)`](/documentation/simd/simd_make_long4(_:_:_:)-6ici1)

Returns a new vector from a vector and scalar values.

[`simd_make_long4(_:_:)`](/documentation/simd/simd_make_long4(_:_:)-270ke)

Returns a new vector from a vector and a scalar value.

[`vector4`](/documentation/simd/vector4-5gopv)

Returns a new vector from a vector and a scalar value.

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

[`simd_long`](/documentation/simd/simd_long-9x5l)

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

[`simd_long`](/documentation/simd/simd_long-a715)

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

[`simd_long`](/documentation/simd/simd_long-a255)

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

[`simd_long`](/documentation/simd/simd_long-ac49)

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

[`simd_long`](/documentation/simd/simd_long-9yxd)

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

[`simd_long`](/documentation/simd/simd_long-a8wh)

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

[`simd_long`](/documentation/simd/simd_long-9xiz)

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

[`simd_long`](/documentation/simd/simd_long-a7cr)

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

[`simd_long`](/documentation/simd/simd_long-a5mn)

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

[`simd_long`](/documentation/simd/simd_long-a4uz)

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-5ldhe)

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

### Common Functions

[`simd_abs(_:)`](/documentation/simd/simd_abs(_:)-81f1k)

Returns the absolute value of each element in a vector.

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

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

[`simd_equal(_:_:)`](/documentation/simd/simd_equal(_:_:)-4wnv3)

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(_:)-4ua4m)

Returns the miniumum value in a vector.

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

Returns the maximum value in a vector.

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

Returns the sum of all elements in a vector.

### Extrema Functions

[`simd_min(_:_:)`](/documentation/simd/simd_min(_:_:)-4y4aq)

Returns the minimum value of each element in a vector.

[`simd_max(_:_:)`](/documentation/simd/simd_max(_:_:)-3enrf)

Returns the maximum value of each element in a vector.

### Logic and Bitwise Functions

[`simd_any(_:)`](/documentation/simd/simd_any(_:)-6cnfh)

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

[`simd_bitselect(_:_:_:)`](/documentation/simd/simd_bitselect(_:_:_:)-9f5q6)

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_long4`](/documentation/simd/vector_long4)



---

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)