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 / bench / inference_cost / tasks / task19 / reference.om

9 lines · 139 bytes Raw Blame History
1fn hamming_dist_u32 a uint b uint to uint
2diff = xor a b
3c = uint 0
4while gt diff 0
5c = add c (and diff 1)
6diff = shr diff 1
7end
8ret c
9end