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

# max(_:_:)

Returns the maximum value of each element in a vector.

## Declaration

```swift
func max(_ x: SIMD4<UInt32>, _ y: SIMD4<UInt32>) -> SIMD4<UInt32>
```

## See Also

### Extrema Functions

- [simd_min(_:_:)](simd/simd_min(_:_:)-7hpr6.md)
- [min(_:_:)](simd/min(_:_:)-7l4j0.md)
- [min(_:_:)](simd/min(_:_:)-7o4pn.md)
- [simd_max(_:_:)](simd/simd_max(_:_:)-6870v.md)
- [max(_:_:)](simd/max(_:_:)-2m7il.md)
