Panther Search Documentation Tutorials Devlogs Downloads Source Code

Documentation > Panther Documentation > Intrinsics > @subSat

@subSat

Panther
Documentation


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

  Integer saturating subtraction.

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 subtraction

Example

(TODO)

See Also

@sub Integer subtraction
@subWrap Integer subtraction that returns if operation wrapped
@fsub Floating-point subtraction