Source/Packages

Accelerator.SM86.InstructionEncoding

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

2,937 lines191 declarations105.3 KiBSHA-256 0462dcc8328a

def · lines 245–265

sm86Unsigned32Natural

Full file
245def sm86Unsigned32Natural =
246  (lambda unrestricted value : SM86Unsigned32 .
247    eliminate
248      SM86Unsigned32
249      (lambda unrestricted current : SM86Unsigned32 . Nat)
250      value
251      (branch
252        SM86Unsigned32Value
253        byte0
254        byte1
255        byte2
256        byte3
257        .
258        then (naturalAdd (byte-to-nat byte0))
259          (naturalMultiply byteNaturalTwoHundredFiftySix)
260          (naturalAdd (byte-to-nat byte1))
261          (naturalMultiply byteNaturalTwoHundredFiftySix)
262          (naturalAdd (byte-to-nat byte2))
263          (naturalMultiply byteNaturalTwoHundredFiftySix)
264          byte-to-nat
265          byte3))

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.