CipherCore.lc.byte: def of bend-osdev-cipher-core@0.1.0.0 Import: import bend-osdev-cipher-core@0.1.0.0/cipher_core.bend as CipherCore Lines 42-44 of bend-osdev-cipher-core@0.1.0.0/cipher_core.bend: https://jend.leeeet.dev/read.txt?path=bend-osdev-cipher-core@0.1.0.0/cipher_core.bend&start_line=42&end_line=44 import Base # byte n of x, counting from the least significant (n = 0 to 3) def lc.byte(x: U32, n: Nat) -> U32: U32.and(255, U32.shrn(x, Nat.mul(8n, n))) Uses (5): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat.mul https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.and https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.shrn