<!--
{
  "availability" : [

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

# simd_char4

A vector of four 8-bit signed integer elements.

```
typealias simd_char4 = SIMD4<CChar>
```

## Topics

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

[`simd_make_char4(_:)`](/documentation/simd/simd_make_char4(_:)-mdlt)

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

[`simd_make_char4(_:)`](/documentation/simd/simd_make_char4(_:)-k1u0)

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

[`simd_make_char4(_:)`](/documentation/simd/simd_make_char4(_:)-gjz7)

Returns a new vector from the specified vector.

[`simd_make_char4(_:)`](/documentation/simd/simd_make_char4(_:)-1mbtb)

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

[`simd_make_char4(_:)`](/documentation/simd/simd_make_char4(_:)-4y0kh)

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

[`simd_make_char4(_:)`](/documentation/simd/simd_make_char4(_:)-3tnz9)

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

[`simd_make_char4(_:)`](/documentation/simd/simd_make_char4(_:)-69u9q)

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

[`simd_make_char4(_:_:)`](/documentation/simd/simd_make_char4(_:_:)-3vf4l)

Returns a new vector from the specified vectors.

[`vector4`](/documentation/simd/vector4-695o8)

Returns a new vector from the specified vectors.

[`simd_make_char4_undef(_:)`](/documentation/simd/simd_make_char4_undef(_:)-6zlek)

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

[`simd_make_char4_undef(_:)`](/documentation/simd/simd_make_char4_undef(_:)-73111)

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_char4(_:)`](/documentation/simd/simd_make_char4(_:)-8kfe3)

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

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

Returns a new vector from the specified scalar values.

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

Returns a new vector from the specified scalar values.

[`simd_make_char4_undef(_:)`](/documentation/simd/simd_make_char4_undef(_:)-99pql)

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 Value

[`simd_make_char4(_:_:_:)`](/documentation/simd/simd_make_char4(_:_:_:)-82ftd)

Returns a new vector from a vector and scalar values.

[`simd_make_char4(_:_:)`](/documentation/simd/simd_make_char4(_:_:)-226qq)

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

[`vector4`](/documentation/simd/vector4-4dfou)

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

[`simd_make_char4(_:_:_:)`](/documentation/simd/simd_make_char4(_:_:_:)-9mb46)

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

[`simd_make_char4(_:_:_:)`](/documentation/simd/simd_make_char4(_:_:_:)-94kun)

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

[`simd_make_char4(_:_:)`](/documentation/simd/simd_make_char4(_:_:)-76rpp)

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

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

[`simd_char`](/documentation/simd/simd_char-7q0xi)

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

[`simd_char`](/documentation/simd/simd_char-7pqwm)

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

[`simd_char`](/documentation/simd/simd_char-7q5x2)

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

[`simd_char`](/documentation/simd/simd_char-7pvsm)

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

[`simd_char`](/documentation/simd/simd_char-7pz0a)

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

[`simd_char`](/documentation/simd/simd_char-7pp6i)

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

[`simd_char`](/documentation/simd/simd_char-7pxci)

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

[`simd_char`](/documentation/simd/simd_char-7pnki)

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

[`simd_char`](/documentation/simd/simd_char-7pp9i)

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

[`simd_char`](/documentation/simd/simd_char-7pptu)

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_char_sat`](/documentation/simd/simd_char_sat-1z4wz)

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

[`simd_char_sat`](/documentation/simd/simd_char_sat-1yuzn)

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

[`simd_char_sat`](/documentation/simd/simd_char_sat-1z9tv)

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

[`simd_char_sat`](/documentation/simd/simd_char_sat-1yzyb)

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

[`simd_char_sat`](/documentation/simd/simd_char_sat-1z32v)

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

[`simd_char_sat`](/documentation/simd/simd_char_sat-1yt3r)

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

[`simd_char_sat`](/documentation/simd/simd_char_sat-1z4mp)

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

[`simd_char_sat`](/documentation/simd/simd_char_sat-1yupd)

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

[`simd_char_sat`](/documentation/simd/simd_char_sat-1ywi1)

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

[`simd_char_sat`](/documentation/simd/simd_char_sat-1yx5t)

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

### Common Functions

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

Returns the absolute value of each element in a vector.

[`simd_clamp(_:_:_:)`](/documentation/simd/simd_clamp(_:_:_:)-1lm34)

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

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

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

Returns the miniumum value in a vector.

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

Returns the maximum value in a vector.

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

Returns the sum of all elements in a vector.

### Extrema Functions

[`simd_min(_:_:)`](/documentation/simd/simd_min(_:_:)-2mbto)

Returns the minimum value of each element in a vector.

[`simd_max(_:_:)`](/documentation/simd/simd_max(_:_:)-7qdak)

Returns the maximum value of each element in a vector.

### Logic and Bitwise Functions

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

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

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

### Alternative Type Alias

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



---

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)