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

# 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_double8, _ y: simd_double8, _ mask: simd_long8) -> simd_double8
```

## See Also

### Logic Functions

- [simd_bitselect(_:_:_:)](simd/simd_bitselect(_:_:_:)-1yj5q.md)
