interplane.Get Omega
Read in your language

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

branch main Branches Tags History

CUDApp / om / apirest / gseg.om

23 lines · 466 bytes Raw Blame History
1om2
2note SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
3fn argseg q edit ulong 16 y edit ulong * to ulong
4i = mul get q 10 4
5if gt add i 4 len y
6ret 1
7end
8n = sub get q 1 get q 0
9put y i get q 8
10put y add i 1 get q 9
11put y add i 2 or get q 0 shl n 32
12put y add i 3 0
13p = div add n sub get q 2 1 get q 2
14if gt p get q 5
15put q 5 p
16end
17w = mul get q 3 get q 4
18put q 6 add get q 6 mul p w
19put q 7 add get q 7 w
20put q 0 get q 1
21put q 10 add get q 10 1
22ret 0
23end