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 1178–1189

sm121LowerLittleEndian

Full file
A little-endian word of `count` bytes.
1178def sm121LowerLittleEndian =
1179  (lambda unrestricted count : Nat .
1180    (nat-eliminate
1181      (lambda unrestricted current : Nat . (pi unrestricted bytes : Bytes . Nat))
1182      (lambda unrestricted bytes : Bytes . zero)
1183      (lambda unrestricted predecessor : Nat .
1184        (lambda unrestricted induction : (pi unrestricted bytes : Bytes . Nat) .
1185          (lambda unrestricted bytes : Bytes .
1186            (nat-add
1187              (byte-to-nat (bytes-head bytes))
1188              (nat-multiply sm121LowerRegisterSpan (induction (bytes-tail bytes)))))))
1189      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.