<!--
{
  "availability" : [

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

# simd_ushort4

A vector of four 16-bit unsigned integer elements.

```
typealias simd_ushort4 = SIMD4<UInt16>
```

## Topics

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

[`simd_make_ushort4(_:)`](/documentation/simd/simd_make_ushort4(_:)-35tv2)

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

[`simd_make_ushort4(_:)`](/documentation/simd/simd_make_ushort4(_:)-38zbb)

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

[`simd_make_ushort4(_:)`](/documentation/simd/simd_make_ushort4(_:)-3qyfo)

Returns a new vector from the specified vector.

[`simd_make_ushort4(_:)`](/documentation/simd/simd_make_ushort4(_:)-45zew)

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

[`simd_make_ushort4(_:)`](/documentation/simd/simd_make_ushort4(_:)-2aylo)

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

[`simd_make_ushort4(_:)`](/documentation/simd/simd_make_ushort4(_:)-7bisx)

Returns a new vector by truncating the specified thirty two-element vector.

[`simd_make_ushort4(_:_:)`](/documentation/simd/simd_make_ushort4(_:_:)-33b7a)

Returns a new vector from the specified vectors.

[`vector4`](/documentation/simd/vector4-stby)

Returns a new vector from the specified vectors.

[`simd_make_ushort4_undef(_:)`](/documentation/simd/simd_make_ushort4_undef(_:)-263ji)

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

[`simd_make_ushort4_undef(_:)`](/documentation/simd/simd_make_ushort4_undef(_:)-22y87)

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_ushort4(_:)`](/documentation/simd/simd_make_ushort4(_:)-85y03)

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

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

Returns a new vector from the specified scalar values.

[`vector4`](/documentation/simd/vector4-vklr)

Returns a new vector from the specified scalar values.

[`simd_make_ushort4_undef(_:)`](/documentation/simd/simd_make_ushort4_undef(_:)-9xmiv)

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_ushort4(_:_:_:)`](/documentation/simd/simd_make_ushort4(_:_:_:)-5tiuy)

Returns a new vector from a vector and scalar values.

[`simd_make_ushort4(_:_:)`](/documentation/simd/simd_make_ushort4(_:_:)-44sd1)

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

[`vector4`](/documentation/simd/vector4-34nn6)

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

[`simd_make_ushort4(_:_:_:)`](/documentation/simd/simd_make_ushort4(_:_:_:)-3yjly)

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

[`simd_make_ushort4(_:_:_:)`](/documentation/simd/simd_make_ushort4(_:_:_:)-53g72)

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

[`simd_make_ushort4(_:_:)`](/documentation/simd/simd_make_ushort4(_:_:)-4t4aq)

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

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

[`simd_ushort`](/documentation/simd/simd_ushort-2yc4p)

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

[`simd_ushort`](/documentation/simd/simd_ushort-2y23t)

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

[`simd_ushort`](/documentation/simd/simd_ushort-2ygzt)

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

[`simd_ushort`](/documentation/simd/simd_ushort-2y70p)

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

[`simd_ushort`](/documentation/simd/simd_ushort-2yf49)

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

[`simd_ushort`](/documentation/simd/simd_ushort-2y555)

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

[`simd_ushort`](/documentation/simd/simd_ushort-2ygrr)

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

[`simd_ushort`](/documentation/simd/simd_ushort-2y6qv)

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

[`simd_ushort`](/documentation/simd/simd_ushort-2y3qr)

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

[`simd_ushort`](/documentation/simd/simd_ushort-2y4af)

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_ushort_sat`](/documentation/simd/simd_ushort_sat-82yk0)

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

[`simd_ushort_sat`](/documentation/simd/simd_ushort_sat-82omo)

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

[`simd_ushort_sat`](/documentation/simd/simd_ushort_sat-82tkg)

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

[`simd_ushort_sat`](/documentation/simd/simd_ushort_sat-82ju8)

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

[`simd_ushort_sat`](/documentation/simd/simd_ushort_sat-831o8)

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

[`simd_ushort_sat`](/documentation/simd/simd_ushort_sat-82ry0)

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

[`simd_ushort_sat`](/documentation/simd/simd_ushort_sat-832ro)

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

[`simd_ushort_sat`](/documentation/simd/simd_ushort_sat-82slg)

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

[`simd_ushort_sat`](/documentation/simd/simd_ushort_sat-82pos)

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

[`simd_ushort_sat`](/documentation/simd/simd_ushort_sat-82qc4)

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

### Common Functions

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

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

[`simd_equal(_:_:)`](/documentation/simd/simd_equal(_:_:)-9613j)

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

Returns the miniumum value in a vector.

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

Returns the maximum value in a vector.

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

Returns the sum of all elements in a vector.

### Extrema Functions

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

Returns the minimum value of each element in a vector.

[`simd_max(_:_:)`](/documentation/simd/simd_max(_:_:)-64jwl)

Returns the maximum value of each element in a vector.

### Logic and Bitwise Functions

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

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

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

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_ushort4`](/documentation/simd/vector_ushort4)



---

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)