---
title: "simd_select(_:_:_:)"
framework: simd
role: symbol
role_heading: Function
path: "simd/simd_select(_:_:_:)-63scw"
---

# simd_select(_:_:_:)

Returns a vector that contains elements from either the first or second parameter, based on the corresponding element’s high-order bit in the mask.

## Declaration

```swift
func simd_select(_ x: simd_half32, _ y: simd_half32, _ mask: simd_short32) -> simd_half32
```

## See Also

### Logic functions

- [simd_bitselect(_:_:_:)](simd/simd_bitselect(_:_:_:)-81xk8.md)
