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

# 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_float4, _ y: simd_float4, _ mask: simd_int4) -> simd_float4
```

## See Also

### Logic Functions

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