<!--
{
  "availability" : [

  ],
  "documentType" : "symbol",
  "framework" : "Accelerate",
  "identifier" : "/documentation/simd/simd_bitselect(_:_:_:)-803fj",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "simd"
    ],
    "preciseIdentifier" : "c:@F@simd_bitselect#]8i#S0_#]8I#"
  },
  "title" : "simd_bitselect(_:_:_:)"
}
-->

# simd_bitselect(_:_:_:)

Returns a vector that contains elements from either the first or second parameter, based on the corresponding element in the third parameter.

```
func simd_bitselect(_ x: simd_uint8, _ y: simd_uint8, _ mask: simd_int8) -> simd_uint8
```

---

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)