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
omega-mv / bench / inference_cost / tasks / task14 / reference.c
| 1 | uint32_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 | } |