Int.S32.shr.if: def of bend-kit-int@0.2.0.0 Import: import bend-kit-int@0.2.0.0/int.bend as Int Lines 681-687 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=681&end_line=687 import Base # Shifts right are arithmetic: the sign bit fills in from the top. def S32.shr.if(neg: Bool, x: U32, k: Nat) -> U32: match neg: case True{}: U32.not(U32.shrn(U32.not(x), k)) case False{}: U32.shrn(x, k) Uses (5): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.not https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.shrn