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/omega-mv/blob/main/gpu/nvidia/checks/hostrest.om # omega-mv Omega: a language for verified programs, semantic identity and machine realization. Seed-born work and existing implementations have distinct provenance. Brought by drakestapleton Sign in to star 1 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `omega-mv / gpu / nvidia / checks / hostrest.om` 32 lines ยท 754 bytes Raw Blame History 1 note SPDX-License-Identifier: Apache-2.0 2 note gpu/nvidia/checks/hostrest.om: the Omega port of CUDApp tests/api_hostrest_test.c. Composed after 3 note gpu/nvidia/om/apiviews/hostrest.om (the ah_rest unit) and gpu/nvidia/checks/lib.om; run with 4 note gpu/nvidia/checks/hostrest.tsv. Row: OP P0 .. P8 R in lowercase hex; ah_rest OP over P (P9 .. P15 5 note zero) must be R. 6 text t_name "HOSTREST" 7 fn cname to void 8 for i ulong len t_name bound 64 9 ckoc ulong get t_name i 10 end 11 end 12 fn hrx i ulong to ulong 13 n = cklen i 14 if or eq n 0 gt n 16 15 ckbad 16 end 17 v = ulong 0 18 for j ulong n bound 16 19 v = or shl v 4 cknib ckch i j 20 end 21 ret v 22 end 23 fn crow to bool 24 if ne ckcnt 11 25 ckbad 26 end 27 p = new ulong 16 0 28 for k ulong 9 29 put p k hrx add k 1 30 end 31 ret eq ah_rest hrx 0 view p hrx 10 32 end