<!--
{
  "availability" : [

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

# simd_int2

A vector of two 32-bit signed integer elements.

```
typealias simd_int2 = SIMD2<Int32>
```

## Topics

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

[`simd_make_int2(_:)`](/documentation/simd/simd_make_int2(_:)-1j0r7)

Returns a new vector from the specified vector.

[`simd_make_int2(_:)`](/documentation/simd/simd_make_int2(_:)-1mclu)

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

[`simd_make_int2(_:)`](/documentation/simd/simd_make_int2(_:)-1qyb9)

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

[`simd_make_int2(_:)`](/documentation/simd/simd_make_int2(_:)-23rr5)

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

[`simd_make_int2(_:)`](/documentation/simd/simd_make_int2(_:)-4okip)

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

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

[`simd_make_int2(_:)`](/documentation/simd/simd_make_int2(_:)-3zby)

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

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

Returns a new vector from the specified scalar values.

[`vector2`](/documentation/simd/vector2-9gvdx)

Returns a new vector from the specified scalar values.

[`simd_make_int2_undef(_:)`](/documentation/simd/simd_make_int2_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_int`](/documentation/simd/simd_int-9nfo0)

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

[`simd_int`](/documentation/simd/simd_int-9n5ow)

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

[`simd_int`](/documentation/simd/simd_int-9nkr4)

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

[`simd_int`](/documentation/simd/simd_int-9nas0)

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

[`simd_int`](/documentation/simd/simd_int-9nds0)

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

[`simd_int`](/documentation/simd/simd_int-9n3sw)

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

[`simd_int`](/documentation/simd/simd_int-9ncyc)

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

[`simd_int`](/documentation/simd/simd_int-9n2z8)

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

[`simd_int`](/documentation/simd/simd_int-9n4v0)

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

[`simd_int`](/documentation/simd/simd_int-9n5es)

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_int_sat`](/documentation/simd/simd_int_sat-6swof)

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

[`simd_int_sat`](/documentation/simd/simd_int_sat-6smr3)

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

[`simd_int_sat`](/documentation/simd/simd_int_sat-6t1vz)

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

[`simd_int_sat`](/documentation/simd/simd_int_sat-6srpr)

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

[`simd_int_sat`](/documentation/simd/simd_int_sat-6sztn)

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

[`simd_int_sat`](/documentation/simd/simd_int_sat-6sq1n)

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

[`simd_int_sat`](/documentation/simd/simd_int_sat-6t0ud)

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

[`simd_int_sat`](/documentation/simd/simd_int_sat-6sqyt)

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

[`simd_int_sat`](/documentation/simd/simd_int_sat-6snv1)

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

[`simd_int_sat`](/documentation/simd/simd_int_sat-6sohh)

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

### Functions to Perform Round-Half-to-Even Conversion From Single-Precision Vectors

[`simd_int_rte`](/documentation/simd/simd_int_rte-8zh34)

Returns a new vector from the specified two-element vector.

### Common Functions

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

Returns the absolute value of each element in a vector.

[`abs(_:)`](/documentation/simd/abs(_:)-770jg)

Returns the absolute value of each element in a vector.

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

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

[`clamp(_:min:max:)`](/documentation/simd/clamp(_:min:max:)-y596)

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

[`clamp(_:min:max:)`](/documentation/simd/clamp(_:min:max:)-11cyt)

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

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

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

Returns the minimum value in a vector.

[`reduce_min(_:)`](/documentation/simd/reduce_min(_:)-34ha7)

Returns the minimum value in a vector.

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

Returns the maximum value in a vector.

[`reduce_max(_:)`](/documentation/simd/reduce_max(_:)-6qw44)

Returns the maximum value in a vector.

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

Returns the sum of all elements in a vector.

[`reduce_add(_:)`](/documentation/simd/reduce_add(_:)-4edwc)

Returns the sum of all elements in a vector.

### Extrema Functions

[`simd_max(_:_:)`](/documentation/simd/simd_max(_:_:)-2xs4j)

Returns the maximum value of each element in a vector.

[`max(_:_:)`](/documentation/simd/max(_:_:)-9xpv0)

Returns the maximum value of each element in a vector.

[`max(_:_:)`](/documentation/simd/max(_:_:)-9uijf)

Returns the maximum value of each element in a vector.

[`simd_min(_:_:)`](/documentation/simd/simd_min(_:_:)-3focz)

Returns the minimum value of each element in a vector.

[`min(_:_:)`](/documentation/simd/min(_:_:)-jyi5)

Returns the minimum value of each element in a vector.

[`min(_:_:)`](/documentation/simd/min(_:_:)-goji)

Returns the minimum value of each element in a vector.

### Logic and Bitwise Functions

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

Returns true if the high-order bit of any element is set; false otherwise.

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

Returns true if the high-order bit of every element is set; false otherwise.

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

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

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

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



---

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)