Panther Search Documentation Tutorials Devlogs Downloads Source Code

Documentation > Panther Documentation > Intrinsics > @addSat

@addSat

Panther
Documentation


1: func @addSat = <{T: Type}> (lhs: T, rhs: T) -> T;

  Integer saturating addition.

Template Parameters

  T: type of arguments and output - must be integral or a vector of integral

Parameters

  lhs: left-hand-side value of operation

  rhs: right-hand-side value of operation

Return Value

  Result value of the addition

Example

(TODO)

See Also

@add Integer addition
@addWrap Integer addition that returns if operation wrapped
@fadd Floating-point addition