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 / tools / exp445 / arms / examples / hash_step / prompt
| 1 | Write a function hash_step that takes an unsigned 32-bit number h and an unsigned 8-bit number c |
| 2 | and returns h * 31 + c, computed in unsigned 32-bit arithmetic: the result wraps modulo 2^32. It |
| 3 | never traps. |