def U16.saturating_mul
import bend-kit-int@0.2.0.0/int.bend as Intimport Base
995def U16.saturating_mul(a: U16, b: U16) -> U16:
996 match a b:
997 case U16{x} U16{y}:
998 U16{U32.min(U32.mul(x, y), 65535)}
Uses (3)
Used by (0)
No other definition uses this definition.