---
title: "simd_max(_:_:)"
framework: simd
role: symbol
role_heading: Function
path: "simd/simd_max(_:_:)-9p9g1"
---

# simd_max(_:_:)

Returns the maximum value of each element in a vector.

## Declaration

```swift
func simd_max(_ x: simd_half16, _ y: simd_half16) -> simd_half16
```

## See Also

### Extrema functions

- [simd_min(_:_:)](simd/simd_min(_:_:)-4gxfx.md)
