collab/polyglot-riscv-arm
what if the same machine code was valid riscv and arm asm
git clone https://git.julia.blue/collab/polyglot-riscv-arm
885cc4e
main
1package main 2 3func hilbertXY (s uint32 ,order int ) (uint32 ,uint32 ) { 4var state ,x ,y uint32 5 6for i := 2 * order - 2 ;i >= 0 ;i -= 2 { 7row := 4 * state | ((s >> i )& 3 ) 8x = (x << 1 )| ((0x936C >> row )& 1 ) 9y = (y << 1 )| ((0x39C6 >> row )& 1 ) 10state = (0x3E6B94C1 >> (2 * row ))& 3 11 } 12return x ,y 13}