Loading...
Searching...
No Matches
morton.hpp
90 x = (x | x << 32) & 0x001F00000000FFFF; // shift left 32 bits, OR with self, and 0000000000011111000000000000000000000000000000001111111111111111
91 x = (x | x << 16) & 0x001F0000FF0000FF; // shift left 16 bits, OR with self, and 0000000000011111000000000000000011111111000000000000000011111111
92 x = (x | x << 8) & 0x100F00F00F00F00F; // shift left 8 bits, OR with self, and 0001000000001111000000001111000000001111000000001111000000000000
93 x = (x | x << 4) & 0x10C30C30C30C30C3; // shift left 4 bits, OR with self, and 0001000011000011000011000011000011000011000011000011000100000000
94 x = (x | x << 2) & 0x1249249249249249; // shift left 2 bits, OR with self, and 0001001001001001001001001001001001001001001001001001001001001001
110 x = (x | x << 32) & 0x00000000FFFFFFFF; // shift left 32 bits, OR with self, and 0000000000000000000000000000000011111111111111111111111111111111
111 x = (x | x << 16) & 0x0000FFFF0000FFFF; // shift left 16 bits, OR with self, and 0000000000000000111111111111111100000000000000001111111111111111
112 x = (x | x << 8) & 0x00FF00FF00FF00FF; // shift left 8 bits, OR with self, and 0000000011111111000000001111111100000000111111110000000011111111
113 x = (x | x << 4) & 0x0F0F0F0F0F0F0F0F; // shift left 4 bits, OR with self, and 0000111100001111000011110000111100001111000011110000111100001111
114 x = (x | x << 2) & 0x3333333333333333; // shift left 2 bits, OR with self, and 0011001100110011001100110011001100110011001100110011001100110011
115 x = (x | x << 1) & 0x5555555555555555; // shift left 1 bits, OR with self, and 0101010101010101010101010101010101010101010101010101010101010101
