<!--
{
  "availability" : [

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

# simd_char2

A vector of two 8-bit signed integer elements.

```
typealias simd_char2 = SIMD2<CChar>
```

## Topics

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

[`simd_make_char2(_:)`](/documentation/simd/simd_make_char2(_:)-3yugv)

Returns a new vector from the specified vector.

[`simd_make_char2(_:)`](/documentation/simd/simd_make_char2(_:)-3vcc6)

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

[`simd_make_char2(_:)`](/documentation/simd/simd_make_char2(_:)-3dx8l)

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

[`simd_make_char2(_:)`](/documentation/simd/simd_make_char2(_:)-2yw9d)

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

[`simd_make_char2(_:)`](/documentation/simd/simd_make_char2(_:)-2o33b)

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

[`simd_make_char2(_:)`](/documentation/simd/simd_make_char2(_:)-6vtvj)

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

[`simd_make_char2(_:)`](/documentation/simd/simd_make_char2(_:)-7bvq1)

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

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

[`simd_make_char2(_:)`](/documentation/simd/simd_make_char2(_:)-97vf3)

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

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

Returns a new vector from the specified scalar values.

[`vector2`](/documentation/simd/vector2-5sh4e)

Returns a new vector from the specified scalar values.

[`simd_make_char2_undef(_:)`](/documentation/simd/simd_make_char2_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_char`](/documentation/simd/simd_char-7vww4)

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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-2k22h)

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

[`simd_char_sat`](/documentation/simd/simd_char_sat-2kbzt)

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

[`simd_char_sat`](/documentation/simd/simd_char_sat-2jx4p)

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

[`simd_char_sat`](/documentation/simd/simd_char_sat-2k721)

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

[`simd_char_sat`](/documentation/simd/simd_char_sat-2jyx5)

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

[`simd_char_sat`](/documentation/simd/simd_char_sat-2k8w9)

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

[`simd_char_sat`](/documentation/simd/simd_char_sat-2jy2b)

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

[`simd_char_sat`](/documentation/simd/simd_char_sat-2k7zn)

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

[`simd_char_sat`](/documentation/simd/simd_char_sat-2kb3z)

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

[`simd_char_sat`](/documentation/simd/simd_char_sat-2kag3)

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

### Common Functions

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

Returns the absolute value of each element in a vector.

[`simd_clamp(_:_:_:)`](/documentation/simd/simd_clamp(_:_:_:)-5vl7)

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

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

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

Returns the miniumum value in a vector.

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

Returns the maximum value in a vector.

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

Returns the sum of all elements in a vector.

### Extrema Functions

[`simd_min(_:_:)`](/documentation/simd/simd_min(_:_:)-5di41)

Returns the minimum value of each element in a vector.

[`simd_max(_:_:)`](/documentation/simd/simd_max(_:_:)-6op8l)

Returns the maximum value of each element in a vector.

### Logic and Bitwise Functions

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

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

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

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_char2`](/documentation/simd/vector_char2)



---

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)