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

5 lines · 140 bytes Raw Blame History
1uint32_t power_mod_u32(uint32_t a, uint32_t b) {
2 uint32_t r = 1;
3 while (b) { if (b & 1u) r *= a; a *= a; b >>= 1; }
4 return r;
5}