---
title: "max(_:_:)"
framework: simd
role: symbol
role_heading: Function
path: "simd/max(_:_:)-960b9"
---

# max(_:_:)

Elementwise maximum of two vectors.  Each component of the result is the larger of the corresponding component of the inputs.

## Declaration

```swift
func max(_ x: simd_half4, _ y: simd_half4) -> simd_half4
```
