<!--
{
  "availability" : [

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

# simd_int4

A vector of four 32-bit signed integer elements.

```
typealias simd_int4 = SIMD4<Int32>
```

## Topics

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

[`simd_make_int4(_:)`](/documentation/simd/simd_make_int4(_:)-1suou)

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

[`simd_make_int4(_:)`](/documentation/simd/simd_make_int4(_:)-1wbev)

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

[`simd_make_int4(_:)`](/documentation/simd/simd_make_int4(_:)-1kx2w)

Returns a new vector from the specified vector.

[`simd_make_int4(_:)`](/documentation/simd/simd_make_int4(_:)-2qk04)

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

[`simd_make_int4(_:)`](/documentation/simd/simd_make_int4(_:)-2rtb0)

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

[`simd_make_int4(_:_:)`](/documentation/simd/simd_make_int4(_:_:)-4phxy)

Returns a new vector from the specified vectors.

[`vector4`](/documentation/simd/vector4-6k3t7)

Returns a new vector from the specified vectors.

[`simd_make_int4_undef(_:)`](/documentation/simd/simd_make_int4_undef(_:)-5g92f)

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

[`simd_make_int4_undef(_:)`](/documentation/simd/simd_make_int4_undef(_:)-5dw9q)

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_int4(_:)`](/documentation/simd/simd_make_int4(_:)-7vwve)

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

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

Returns a new vector from the specified scalar values.

[`vector4`](/documentation/simd/vector4-7j5gn)

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

[`simd_make_int4_undef(_:)`](/documentation/simd/simd_make_int4_undef(_:)-2wt72)

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_int4(_:_:_:)`](/documentation/simd/simd_make_int4(_:_:_:)-7cjm7)

Returns a new vector from a vector and scalar values.

[`simd_make_int4(_:_:)`](/documentation/simd/simd_make_int4(_:_:)-7rrqd)

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

[`vector4`](/documentation/simd/vector4-6wxif)

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

[`simd_make_int4(_:_:_:)`](/documentation/simd/simd_make_int4(_:_:_:)-9tjlm)

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

[`simd_make_int4(_:_:_:)`](/documentation/simd/simd_make_int4(_:_:_:)-8of8y)

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

[`simd_make_int4(_:_:)`](/documentation/simd/simd_make_int4(_:_:)-6p0ui)

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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-6820l)

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

[`simd_int_sat`](/documentation/simd/simd_int_sat-67sad)

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

[`simd_int_sat`](/documentation/simd/simd_int_sat-67x4l)

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

[`simd_int_sat`](/documentation/simd/simd_int_sat-67nat)

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

[`simd_int_sat`](/documentation/simd/simd_int_sat-68459)

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

[`simd_int_sat`](/documentation/simd/simd_int_sat-67tx9)

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

[`simd_int_sat`](/documentation/simd/simd_int_sat-684sf)

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

[`simd_int_sat`](/documentation/simd/simd_int_sat-67uyn)

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

[`simd_int_sat`](/documentation/simd/simd_int_sat-67t8j)

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

[`simd_int_sat`](/documentation/simd/simd_int_sat-67sbj)

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-8emhi)

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

### Common Functions

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

Returns the absolute value of each element in a vector.

[`abs(_:)`](/documentation/simd/abs(_:)-1b3qo)

Returns the absolute value of each element in a vector.

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

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

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

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

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

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

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

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

Returns the minimum value in a vector.

[`reduce_min(_:)`](/documentation/simd/reduce_min(_:)-6npco)

Returns the minimum value in a vector.

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

Returns the maximum value in a vector.

[`reduce_max(_:)`](/documentation/simd/reduce_max(_:)-5afy1)

Returns the maximum value in a vector.

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

Returns the sum of all elements in a vector.

[`reduce_add(_:)`](/documentation/simd/reduce_add(_:)-89ptt)

Returns the sum of all elements in a vector.

### Extrema Functions

[`simd_max(_:_:)`](/documentation/simd/simd_max(_:_:)-51txy)

Returns the maximum value of each element in a vector.

[`max(_:_:)`](/documentation/simd/max(_:_:)-696e3)

Returns the maximum value of each element in a vector.

[`max(_:_:)`](/documentation/simd/max(_:_:)-6cb9k)

Returns the maximum value of each element in a vector.

[`simd_min(_:_:)`](/documentation/simd/simd_min(_:_:)-1m8ma)

Returns the minimum value of each element in a vector.

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

Returns the minimum value of each element in a vector.

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

Returns the minimum value of each element in a vector.

### Logic and Bitwise Functions

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

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

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

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

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

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

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

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



---

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)