PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ gidx_validate()

void gidx_validate ( GIDX *  b)

Definition at line 137 of file gserialized_gist_nd.c.

138 {
139  uint32_t i;
140  Assert(b);
141  POSTGIS_DEBUGF(5, "validating gidx (%s)", gidx_to_string(b));
142  for (i = 0; i < GIDX_NDIMS(b); i++)
143  {
144  if (GIDX_GET_MIN(b, i) > GIDX_GET_MAX(b, i))
145  {
146  float tmp = GIDX_GET_MIN(b, i);
147  GIDX_SET_MIN(b, i, GIDX_GET_MAX(b, i));
148  GIDX_SET_MAX(b, i, tmp);
149  }
150  }
151  return;
152 }
unsigned int uint32_t
Definition: uthash.h:78

Referenced by gserialized_gist_compress().

Here is the caller graph for this function: