PostGIS  3.4.0dev-r@@SVN_REVISION@@

◆ uint64_interleave_2()

static uint64_t uint64_interleave_2 ( uint64_t  x,
uint64_t  y 
)
inlinestatic

Definition at line 241 of file lwinline.h.

242 {
243  x = (x | (x << 16)) & 0x0000FFFF0000FFFFULL;
244  x = (x | (x << 8)) & 0x00FF00FF00FF00FFULL;
245  x = (x | (x << 4)) & 0x0F0F0F0F0F0F0F0FULL;
246  x = (x | (x << 2)) & 0x3333333333333333ULL;
247  x = (x | (x << 1)) & 0x5555555555555555ULL;
248 
249  y = (y | (y << 16)) & 0x0000FFFF0000FFFFULL;
250  y = (y | (y << 8)) & 0x00FF00FF00FF00FFULL;
251  y = (y | (y << 4)) & 0x0F0F0F0F0F0F0F0FULL;
252  y = (y | (y << 2)) & 0x3333333333333333ULL;
253  y = (y | (y << 1)) & 0x5555555555555555ULL;
254 
255  return x | (y << 1);
256 }

References pixval::x, and pixval::y.

Referenced by uint32_hilbert().

Here is the caller graph for this function: