Lane.add: def of bend-collections@1.0.0.0 Import: import bend-collections@1.0.0.0/src/crypto/blake/blake2b/lane.bend as Lane Lines 5-10 of bend-collections@1.0.0.0/src/crypto/blake/blake2b/lane.bend: https://jend.leeeet.dev/read.txt?path=bend-collections@1.0.0.0/src/crypto/blake/blake2b/lane.bend&start_line=5&end_line=10 import Base import bend-collections@1.0.0.0/src/crypto/blake/blake2b/types.bend as T # 64-bit addition modulo 2^64: the low halves add, their carry-out enters the high half. def add(a: T.Lane, b: T.Lane) -> T.Lane: match a b: case T.W{+al,ah} T.W{bl,bh}: +lo = U32.add(al,bl) T.W{lo,U32.add(U32.add(ah,bh),Bool.to_u32(U32.is_lt(lo,al)))} Uses (4): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool.to_u32 https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.add https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.is_lt https://jend.leeeet.dev/definition.txt?path=bend-collections@1.0.0.0/src/crypto/blake/blake2b/types.bend&name=Lane