Int.I32.saturating_mul: def of bend-kit-int@0.2.0.0 Import: import bend-kit-int@0.2.0.0/int.bend as Int Lines 1345-1350 of bend-kit-int@0.2.0.0/int.bend: https://jend.leeeet.dev/read.txt?path=bend-kit-int@0.2.0.0/int.bend&start_line=1345&end_line=1350 import Base def I32.saturating_mul(a: I32, b: I32) -> I32: match a b: case I32{x} I32{y}: +v = {x : U32} +w = {y : U32} I32{S32.saturate(Bool.xor(S32.is_neg(v), S32.is_neg(w)), S32.mul_ov(v, w))} Uses (6): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool.xor https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=bend-kit-int@0.2.0.0/int.bend&name=I32 https://jend.leeeet.dev/definition.txt?path=bend-kit-int@0.2.0.0/int.bend&name=S32.is_neg https://jend.leeeet.dev/definition.txt?path=bend-kit-int@0.2.0.0/int.bend&name=S32.mul_ov https://jend.leeeet.dev/definition.txt?path=bend-kit-int@0.2.0.0/int.bend&name=S32.saturate