def U8.checked_mul

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

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

801def U8.checked_mul(a: U8, b: U8) -> Maybe<&2, U8>:
802  match a b:
803    case U8{x} U8{y}:
804      U8.some(Nar.over(255, U32.mul(x, y)))

Uses (5)

Used by (0)

No other definition uses this definition.