PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ interval_cmp_upper()

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

Definition at line 1649 of file gserialized_gist_2d.c.

1650 {
1651  float upper1 = ((const SplitInterval *) i1)->upper,
1652  upper2 = ((const SplitInterval *) i2)->upper;
1653 
1654  if (isnan(upper1))
1655  {
1656  if (isnan(upper2))
1657  return 0;
1658  else
1659  return -1;
1660  }
1661  else if (isnan(upper2))
1662  {
1663  return 1;
1664  }
1665  else
1666  {
1667  if (upper1 < upper2)
1668  return -1;
1669  else if (upper1 > upper2)
1670  return 1;
1671  else
1672  return 0;
1673  }
1674 }

Referenced by gserialized_gist_picksplit_2d().

Here is the caller graph for this function: