---
title: "simd_bitselect(_:_:_:)"
framework: simd
role: symbol
role_heading: Function
path: "simd/simd_bitselect(_:_:_:)-92kfc"
---

# simd_bitselect(_:_:_:)

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

## Declaration

```swift
func simd_bitselect(_ x: simd_half16, _ y: simd_half16, _ mask: simd_short16) -> simd_half16
```

## See Also

### Logic functions

- [simd_select(_:_:_:)](simd/simd_select(_:_:_:)-7d7xj.md)
