<!--
{
  "availability" : [

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

# simd_ushort2

A vector of two 16-bit unsigned integer elements.

```
typealias simd_ushort2 = SIMD2<UInt16>
```

## Topics

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

[`simd_make_ushort2(_:)`](/documentation/simd/simd_make_ushort2(_:)-2dkjj)

Returns a new vector from the specified vector.

[`simd_make_ushort2(_:)`](/documentation/simd/simd_make_ushort2(_:)-2gsja)

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

[`simd_make_ushort2(_:)`](/documentation/simd/simd_make_ushort2(_:)-1sfxh)

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

[`simd_make_ushort2(_:)`](/documentation/simd/simd_make_ushort2(_:)-2yrlt)

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

[`simd_make_ushort2(_:)`](/documentation/simd/simd_make_ushort2(_:)-72vh1)

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

[`simd_make_ushort2(_:)`](/documentation/simd/simd_make_ushort2(_:)-8zwg1)

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

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

[`simd_make_ushort2(_:)`](/documentation/simd/simd_make_ushort2(_:)-4i2ym)

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

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

Returns a new vector from the specified scalar values.

[`vector2`](/documentation/simd/vector2-39jw3)

Returns a new vector from the specified scalar values.

[`simd_make_ushort2_undef(_:)`](/documentation/simd/simd_make_ushort2_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_ushort`](/documentation/simd/simd_ushort-3j95f)

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

[`simd_ushort`](/documentation/simd/simd_ushort-3jj4j)

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

[`simd_ushort`](/documentation/simd/simd_ushort-3j49f)

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

[`simd_ushort`](/documentation/simd/simd_ushort-3je8j)

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

[`simd_ushort`](/documentation/simd/simd_ushort-3jb1r)

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

[`simd_ushort`](/documentation/simd/simd_ushort-3jl2n)

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

[`simd_ushort`](/documentation/simd/simd_ushort-3ja7h)

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

[`simd_ushort`](/documentation/simd/simd_ushort-3jk19)

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

[`simd_ushort`](/documentation/simd/simd_ushort-3ji9x)

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

[`simd_ushort`](/documentation/simd/simd_ushort-3jhkd)

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-7h07e)

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

[`simd_ushort_sat`](/documentation/simd/simd_ushort_sat-7ha6i)

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

[`simd_ushort_sat`](/documentation/simd/simd_ushort_sat-7h54a)

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

[`simd_ushort_sat`](/documentation/simd/simd_ushort_sat-7hf1m)

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

[`simd_ushort_sat`](/documentation/simd/simd_ushort_sat-7h23i)

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

[`simd_ushort_sat`](/documentation/simd/simd_ushort_sat-7hc2m)

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

[`simd_ushort_sat`](/documentation/simd/simd_ushort_sat-7h2xq)

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

[`simd_ushort_sat`](/documentation/simd/simd_ushort_sat-7hcwu)

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

[`simd_ushort_sat`](/documentation/simd/simd_ushort_sat-7hb0i)

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

[`simd_ushort_sat`](/documentation/simd/simd_ushort_sat-7haim)

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

### Common Functions

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

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

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

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(_:)-49m28)

Returns the miniumum value in a vector.

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

Returns the maximum value in a vector.

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

Returns the sum of all elements in a vector.

### Extrema Functions

[`simd_min(_:_:)`](/documentation/simd/simd_min(_:_:)-717c8)

Returns the minimum value of each element in a vector.

[`simd_max(_:_:)`](/documentation/simd/simd_max(_:_:)-27z7q)

Returns the maximum value of each element in a vector.

### Logic and Bitwise Functions

[`simd_any(_:)`](/documentation/simd/simd_any(_:)-649i9)

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

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

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_ushort2`](/documentation/simd/vector_ushort2)



---

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)