38 x = ( x ^ ( x << 8 ) ) & 0x00ff00ff;
39 x = ( x ^ ( x << 4 ) ) & 0x0f0f0f0f;
40 x = ( x ^ ( x << 2 ) ) & 0x33333333;
41 x = ( x ^ ( x << 1 ) ) & 0x55555555;
51 x = ( x ^ ( x << 16 ) ) & 0xff0000ff;
52 x = ( x ^ ( x << 8 ) ) & 0x0300f00f;
53 x = ( x ^ ( x << 4 ) ) & 0x030c30c3;
54 x = ( x ^ ( x << 2 ) ) & 0x09249249;
64 x = ( x ^ ( x >> 1 ) ) & 0x33333333;
65 x = ( x ^ ( x >> 2 ) ) & 0x0f0f0f0f;
66 x = ( x ^ ( x >> 4 ) ) & 0x00ff00ff;
67 x = ( x ^ ( x >> 8 ) ) & 0x0000ffff;
77 x = ( x ^ ( x >> 2 ) ) & 0x030c30c3;
78 x = ( x ^ ( x >> 4 ) ) & 0x0300f00f;
79 x = ( x ^ ( x >> 8 ) ) & 0xff0000ff;
80 x = ( x ^ ( x >> 16 ) ) & 0x000003ff;
uint32_t Compact1By2(uint32_t x)
uint32_t DecodeMorton3Z(uint32_t code)
uint32_t DecodeMorton3Y(uint32_t code)
uint32_t EncodeMorton2(uint32_t x, uint32_t y)
uint32_t DecodeMorton2Y(uint32_t code)
uint32_t DecodeMorton2X(uint32_t code)
uint32_t Part1By2(uint32_t x)
uint32_t DecodeMorton3X(uint32_t code)
uint32_t Compact1By1(uint32_t x)
uint32_t EncodeMorton3(uint32_t x, uint32_t y, uint32_t z)
uint32_t Part1By1(uint32_t x)
Implements Morton Codes https://fgiesen.wordpress.com/2009/12/13/decoding-morton-codes/ http://www....