PostGIS  3.4.0dev-r@@SVN_REVISION@@

◆ box2df_get_sortable_hash()

static uint64_t box2df_get_sortable_hash ( const BOX2DF *  b)
inlinestatic

Definition at line 456 of file gserialized_gist_2d.c.

457 {
458  union floatuint {
459  uint32_t u;
460  float f;
461  } x, y;
462 
463  x.f = (b->xmax + b->xmin) / 2;
464  y.f = (b->ymax + b->ymin) / 2;
465 
466  return uint32_hilbert(y.u, x.u);
467 }
static uint64_t uint32_hilbert(uint32_t px, uint32_t py)
Definition: lwinline.h:260

References uint32_hilbert(), pixval::x, and pixval::y.

Referenced by gserialized_gist_abbrev_convert_2d(), and gserialized_gist_cmp_full_2d().

Here is the call graph for this function:
Here is the caller graph for this function: