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/mathlibs/host_scalar.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 / mathlibs / host_scalar.om` 53 lines · 775 bytes Raw Blame History 1 note SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 2 note op ids are private to the effect adapter; all arithmetic remains in host.om. 3 fn native_mhval op ulong a ulong b ulong c ulong d ulong e ulong to ulong 4 if eq op 0 5 ret mh_time a b 6 end 7 if eq op 1 8 ret mh_sub a b 9 end 10 if eq op 2 11 ret mh_mul a b 12 end 13 if eq op 3 14 ret mh_add a b 15 end 16 if eq op 4 17 ret mh_min a b 18 end 19 if eq op 5 20 ret mh_overlap a b c d 21 end 22 if eq op 6 23 ret mh_rng a b c d 24 end 25 if eq op 7 26 ret mh_rngval a b c d 27 end 28 if eq op 8 29 ret mh_seed a b c 30 end 31 if eq op 9 32 ret mh_phil a b c d e 33 end 34 if eq op 10 35 ret mh_lg a b c 36 end 37 if eq op 11 38 ret mh_chunk a b c d e 39 end 40 if eq op 12 41 ret mh_fill a b 42 end 43 if eq op 13 44 ret mh_poison a b c d 45 end 46 if eq op 14 47 ret mh_div a b 48 end 49 if eq op 15 50 ret mh_basic a b c d 51 end 52 ret `4294967295` 53 end