saturating_add
Mojo function 🡭
saturating_add
➕
➖def saturating_add[data: DType, width: SIMDLength](lhs: SIMD[data, width], rhs: SIMD[data, width]) -> SIMD[data, width] where data.is_integral()Parameters:
- data (
DType) - width (
SIMDLength)
Args:
- lhs (
SIMD[data, width]) - rhs (
SIMD[data, width])
Returns:
SIMD[data, width]