Panther Search Documentation Tutorials Devlogs Downloads Source Code

Documentation > Panther Documentation > Intrinsics > @mulSat

@mulSat

Panther
Documentation


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

  Integer saturating multiplication.

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 multiplication

Example

(TODO)

See Also

@mul Integer multiplication
@mulWrap Integer multiplication that returns if operation wrapped
@fmul Floating-point multiplication