<!--
{
  "availability" : [

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

# simd_ulong4

A vector of four 64-bit unsigned integer elements.

```
typealias simd_ulong4 = SIMD4<simd_ulong1>
```

## Topics

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

[`simd_make_ulong4(_:)`](/documentation/simd/simd_make_ulong4(_:)-364ux)

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

[`simd_make_ulong4(_:)`](/documentation/simd/simd_make_ulong4(_:)-39may)

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

[`simd_make_ulong4(_:)`](/documentation/simd/simd_make_ulong4(_:)-2zv2b)

Returns a new vector from the specified vector.

[`simd_make_ulong4(_:)`](/documentation/simd/simd_make_ulong4(_:)-43wof)

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

[`simd_make_ulong4(_:_:)`](/documentation/simd/simd_make_ulong4(_:_:)-9oy4u)

Returns a new vector from the specified vectors.

[`vector4`](/documentation/simd/vector4-9qgza)

Returns a new vector from the specified vectors.

[`simd_make_ulong4_undef(_:)`](/documentation/simd/simd_make_ulong4_undef(_:)-o0j)

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

[`simd_make_ulong4_undef(_:)`](/documentation/simd/simd_make_ulong4_undef(_:)-9xbtd)

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

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

[`simd_make_ulong4(_:)`](/documentation/simd/simd_make_ulong4(_:)-6kawu)

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

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

Returns a new vector from the specified scalar values.

[`vector4`](/documentation/simd/vector4-8yxgu)

Returns a new vector from the specified scalar values.

[`simd_make_ulong4_undef(_:)`](/documentation/simd/simd_make_ulong4_undef(_:)-jgtr)

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_ulong4(_:_:_:)`](/documentation/simd/simd_make_ulong4(_:_:_:)-4du2m)

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

[`simd_make_ulong4(_:_:_:)`](/documentation/simd/simd_make_ulong4(_:_:_:)-8asm5)

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

[`simd_make_ulong4(_:_:)`](/documentation/simd/simd_make_ulong4(_:_:)-5mtth)

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

[`simd_make_ulong4(_:_:_:)`](/documentation/simd/simd_make_ulong4(_:_:_:)-8g4ch)

Returns a new vector from a vector and scalar values.

[`simd_make_ulong4(_:_:)`](/documentation/simd/simd_make_ulong4(_:_:)-cnt3)

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

[`vector4`](/documentation/simd/vector4-2st)

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

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

[`simd_ulong`](/documentation/simd/simd_ulong-1j7li)

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

[`simd_ulong`](/documentation/simd/simd_ulong-1ixkm)

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

[`simd_ulong`](/documentation/simd/simd_ulong-1jcja)

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

[`simd_ulong`](/documentation/simd/simd_ulong-1j2ly)

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

[`simd_ulong`](/documentation/simd/simd_ulong-1j9du)

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

[`simd_ulong`](/documentation/simd/simd_ulong-1izlu)

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

[`simd_ulong`](/documentation/simd/simd_ulong-1jazu)

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

[`simd_ulong`](/documentation/simd/simd_ulong-1j0ve)

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

[`simd_ulong`](/documentation/simd/simd_ulong-1iz4u)

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

[`simd_ulong`](/documentation/simd/simd_ulong-1iykq)

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_ulong_sat`](/documentation/simd/simd_ulong_sat-10sdw)

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

[`simd_ulong_sat`](/documentation/simd/simd_ulong_sat-112b8)

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

[`simd_ulong_sat`](/documentation/simd/simd_ulong_sat-10n78)

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

[`simd_ulong_sat`](/documentation/simd/simd_ulong_sat-10xbo)

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

[`simd_ulong_sat`](/documentation/simd/simd_ulong_sat-10p9o)

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

[`simd_ulong_sat`](/documentation/simd/simd_ulong_sat-10yzw)

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

[`simd_ulong_sat`](/documentation/simd/simd_ulong_sat-10pxs)

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

[`simd_ulong_sat`](/documentation/simd/simd_ulong_sat-11040)

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

[`simd_ulong_sat`](/documentation/simd/simd_ulong_sat-1137k)

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

[`simd_ulong_sat`](/documentation/simd/simd_ulong_sat-112e8)

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

### Common Functions

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

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

[`simd_equal(_:_:)`](/documentation/simd/simd_equal(_:_:)-8d8x)

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

Returns the miniumum value in a vector.

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

Returns the maximum value in a vector.

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

Returns the sum of all elements in a vector.

### Extrema Functions

[`simd_min(_:_:)`](/documentation/simd/simd_min(_:_:)-9meuw)

Returns the minimum value of each element in a vector.

[`simd_max(_:_:)`](/documentation/simd/simd_max(_:_:)-6x9fu)

Returns the maximum value of each element in a vector.

### Logic and Bitwise Functions

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

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

[`simd_bitselect(_:_:_:)`](/documentation/simd/simd_bitselect(_:_:_:)-6gszc)

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_ulong4`](/documentation/simd/vector_ulong4)



---

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)