Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/CUDApp/blob/main/om/apirest/slot.om # CUDApp CUDA++: AIEN’s GPU machine-code toolchain, runtime and driver client for NVIDIA GPUs without the CUDA toolkit. Hardware coverage and driver replacement limits are explicit. Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `CUDApp / om / apirest / slot.om` 28 lines · 736 bytes Raw Blame History 1 note SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 2 fn arslot q edit ulong 8 r edit ulong 3 st edit ulong 7 to long 3 rec = new ulong 16 0 4 put rec 0 and get r 0 `4294967295` 5 put rec 1 shr get r 0 32 6 put rec 2 get r 1 7 put rec 3 get r 2 8 put rec 4 get q 0 9 put rec 5 get q 1 10 if ne get q 2 0 11 put rec 6 1 12 end 13 for i ulong 6 14 put rec add i 8 get st i 15 end 16 put rec 14 and get st 6 `4294967295` 17 put rec 15 shr get st 6 32 18 rc = apishl get q 3 get q 4 rec 19 put r 0 or ulong uint and get rec 0 `4294967295` shl ulong uint and get rec 1 `4294967295` 32 20 put r 1 get rec 2 21 put r 2 get rec 3 22 put q 0 get rec 4 23 for i ulong 6 24 put st i get rec add i 8 25 end 26 put st 6 or ulong uint and get rec 14 `4294967295` shl ulong uint and get rec 15 `4294967295` 32 27 ret rc 28 end