PostGIS  2.5.0dev-r@@SVN_REVISION@@
static int interval_cmp_upper ( const void *  i1,
const void *  i2 
)
static

Definition at line 1640 of file gserialized_gist_2d.c.

Referenced by gserialized_gist_picksplit_2d().

1641 {
1642  float upper1 = ((const SplitInterval *) i1)->upper,
1643  upper2 = ((const SplitInterval *) i2)->upper;
1644 
1645  if (isnan(upper1))
1646  {
1647  if (isnan(upper2))
1648  return 0;
1649  else
1650  return -1;
1651  }
1652  else if (isnan(upper2))
1653  {
1654  return 1;
1655  }
1656  else
1657  {
1658  if (upper1 < upper2)
1659  return -1;
1660  else if (upper1 > upper2)
1661  return 1;
1662  else
1663  return 0;
1664  }
1665 }

Here is the caller graph for this function: