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

5 lines · 158 bytes Raw Blame History
1fn reverse_digits_u32(n: u32) -> u32 {
2 let (mut v, mut r) = (n, 0u32);
3 while v != 0 { r = r.wrapping_mul(10).wrapping_add(v % 10); v /= 10; }
4 r
5}