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 / task07 / reference.py
| 1 | def bitrev_u16(x): |
| 2 | r = 0 |
| 3 | for _ in range(16): |
| 4 | r = (r << 1) | (x & 1) |
| 5 | x >>= 1 |
| 6 | return r |