PostGIS  2.3.8dev-r@@SVN_REVISION@@

◆ interval_cmp_upper()

static int interval_cmp_upper ( const void *  i1,
const void *  i2 
)
static

Definition at line 1492 of file gserialized_gist_2d.c.

Referenced by gserialized_gist_picksplit_2d().

1493 {
1494  float upper1 = ((const SplitInterval *) i1)->upper,
1495  upper2 = ((const SplitInterval *) i2)->upper;
1496 
1497  if (isnan(upper1))
1498  {
1499  if (isnan(upper2))
1500  return 0;
1501  else
1502  return -1;
1503  }
1504  else if (isnan(upper2))
1505  {
1506  return 1;
1507  }
1508  else
1509  {
1510  if (upper1 < upper2)
1511  return -1;
1512  else if (upper1 > upper2)
1513  return 1;
1514  else
1515  return 0;
1516  }
1517 }
Here is the caller graph for this function: