Source/Packages

Accelerator.SM86.Immediate

packages/hardware/architectures/nvidia-sm86/src/Accelerator/SM86/Immediate.alpha

38 lines11 declarations1.4 KiBSHA-256 0f554edb3b93

def · lines 27–30

sm86Unsigned32FromNaturalTruncated

Full file
Encoding modulo 2^32 is explicit. Callers accepting unbounded values must admit their extents before using this transport conversion.
27def sm86Unsigned32FromNaturalTruncated =
28  (lambda unrestricted value : Nat .
29    (sm86Unsigned32 (nat-to-byte value) (nat-to-byte (nat-divide value 256))
30      (nat-to-byte (nat-divide value 65536)) (nat-to-byte (nat-divide value 16777216))))

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.