Canonicalize creates a canonical version of the region which takes up the same space as its underlying morton. By detecting the most significant bit position in the morton, it should be possible to reverse the canonicalization process. This should be optimized using the bitwise crate to take advantage of bit twiddling CPU instructions.
Canonicalize creates a canonical version of the region which takes up the same space as its underlying morton. By detecting the most significant bit position in the morton, it should be possible to reverse the canonicalization process. This should be optimized using the
bitwise
crate to take advantage of bit twiddling CPU instructions.