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 / task20 / reference.c

4 lines · 129 bytes Raw Blame History
1uint32_t rot_left_u32(uint32_t x, uint32_t k) {
2 uint32_t s = k % 32u;
3 return s == 0 ? x : (x << s) | (x >> (32u - s));
4}