Source/Packages

Accelerator.SM121.Lowering

packages/hardware/architectures/nvidia-sm121/src/Accelerator/SM121/Lowering.alpha

2,621 lines365 declarations134.1 KiBSHA-256 b7b3bbc05e9c

def · lines 2014–2025

sm121LowerLittleEndianBytes

Full file
--------------------------------------------------------------------------- The program
2014def sm121LowerLittleEndianBytes =
2015  (lambda unrestricted count : Nat .
2016    (nat-eliminate
2017      (lambda unrestricted current : Nat . (pi unrestricted value : Nat . Bytes))
2018      (lambda unrestricted value : Nat . b"")
2019      (lambda unrestricted predecessor : Nat .
2020        (lambda unrestricted induction : (pi unrestricted value : Nat . Bytes) .
2021          (lambda unrestricted value : Nat .
2022            (bytes-cons
2023              (nat-to-byte (nat-modulo value sm121LowerRegisterSpan))
2024              (induction (nat-divide value sm121LowerRegisterSpan))))))
2025      count))

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.