interplane.Get Omega
Read in your language

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

branch main Branches Tags History

omega-mv / gpu / nvidia / checks / apish-blk.om

19 lines · 614 bytes Raw Blame History
1note SPDX-License-Identifier: Apache-2.0
2note gpu/nvidia/checks/apish-blk.om: the block and block0 comparisons of CUDApp tests/api_shells_diff.c, for
3note apishb (gpu/nvidia/om/api/apish_blk.om), which has its own refb and so its own check. w is the first 128 of
4note the test's bytes i, x its 512 bytes i * 17. Composed before apish-lib.om.
5text t_name "APISH-BLK"
6text l_block "block"
7text l_block0 "block0"
8fn aprun to void
9w = new uchar 128 0
10for i ulong 128
11put w i uchar i
12end
13x = new uchar 512 0
14for i ulong 512
15put x i uchar and mul i 17 255
16end
17as6 l_block apishb w x 0x3f80
18as6 l_block0 apishb w x 0
19end