Bendtorch.mix32: def of bendtorch@1.3.0.0 Import: import bendtorch@1.3.0.0/main.bend as Bendtorch Lines 1235-1241 of bendtorch@1.3.0.0/main.bend: https://jend.leeeet.dev/read.txt?path=bendtorch@1.3.0.0/main.bend&start_line=1235&end_line=1241 import Base # lowbias32 (Chris Wellons): an invertible mix of the 32 bits def mix32(+x: U32) -> U32: +a = U32.xor(x, U32.shrn(x, 16n)) +b = (a * 2146121005 : U32) +c = U32.xor(b, U32.shrn(b, 15n)) +d = (c * 2221713035 : U32) U32.xor(d, U32.shrn(d, 16n)) Uses (4): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.mul https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.shrn https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.xor