Panther Search Documentation Tutorials Devlogs Downloads Source Code

Documentation > Panther Documentation > Intrinsics > @subWrap

@subWrap

Panther
Documentation


1: func @subWrap = <{T: Type}> (lhs: T, rhs: T) -> (result: T, wrapped: Bool);

  Integer subtraction that returns if operation wrapped.

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 Values

  result: result of the subtraction

  wrapped: true if the operation wrapped

Example

(TODO)

See Also

@sub Integer subtraction
@subSat Integer saturating subtraction
@fsub Floating-point subtraction