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 / task03 / reference.rs

6 lines · 124 bytes Raw Blame History
1fn popcount_u32(x: u32) -> u32 {
2 let mut v = x;
3 let mut c = 0u32;
4 while v != 0 { c += v & 1; v >>= 1; }
5 c
6}