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 / tests / one_layer / omegese / dev / dev03.omegese

11 lines · 119 bytes Raw Blame History
1fn popcount x ulong to uchar
2n = uchar 0
3for i uint 64
4b = and x 1
5if eq b 1
6n = add n 1
7end
8x = shr x 1
9end
10ret n
11end