PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ interval_cmp_upper()

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

Definition at line 1585 of file gserialized_gist_2d.c.

Referenced by gserialized_gist_picksplit_2d().

1586 {
1587  float upper1 = ((const SplitInterval *) i1)->upper,
1588  upper2 = ((const SplitInterval *) i2)->upper;
1589 
1590  if (isnan(upper1))
1591  {
1592  if (isnan(upper2))
1593  return 0;
1594  else
1595  return -1;
1596  }
1597  else if (isnan(upper2))
1598  {
1599  return 1;
1600  }
1601  else
1602  {
1603  if (upper1 < upper2)
1604  return -1;
1605  else if (upper1 > upper2)
1606  return 1;
1607  else
1608  return 0;
1609  }
1610 }
Here is the caller graph for this function: