Source/Packages

Std.Byte

packages/foundation/standard/src/Std/Byte.alpha

108 lines19 declarations3.5 KiBSHA-256 bd71181271d6

def · lines 57–58

byteAnd

Full file
The bit operations are the L21 byte primitives (one machine operation on every lane). A shift amount is a Nat here, as it always was: an amount of eight or more yields zero, decided by the primitive comparison so that `nat-to-byte` never truncates an amount of 256 or more into a small one.
57def byteAnd =
58  (lambda unrestricted left : Byte . unrestricted right : Byte . byte-and left right)

The compiler supplied declaration spans and resolved links from this source snapshot. This page does not assert that this file belongs to a checked closure.