Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Comment
by
emanuelev
· 10y ago · 0 comments
If you are referring to Morton's interleaving, then it's quite simple. You can compute the third operand's code and OR it with the others using the appropriate shift. Something like: (z << 2) | (y << 1) | x
Comments
No comments yet.
Better HN