def U8.saturating_mul

bend-kit-int@0.2.0.0 · int.bend:826

import bend-kit-int@0.2.0.0/int.bend as Int
import Base

826def U8.saturating_mul(a: U8, b: U8) -> U8:
827  match a b:
828    case U8{x} U8{y}:
829      U8{U32.min(U32.mul(x, y), 255)}

Uses (3)

Used by (0)

No other definition uses this definition.