PostGIS  2.5.2dev-r@@SVN_REVISION@@

◆ interval_cmp_lower()

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

Definition at line 1617 of file gserialized_gist_2d.c.

Referenced by gserialized_gist_picksplit_2d().

1618 {
1619  float lower1 = ((const SplitInterval *) i1)->lower,
1620  lower2 = ((const SplitInterval *) i2)->lower;
1621 
1622  if (isnan(lower1))
1623  {
1624  if (isnan(lower2))
1625  return 0;
1626  else
1627  return 1;
1628  }
1629  else if (isnan(lower2))
1630  {
1631  return -1;
1632  }
1633  else
1634  {
1635  if (lower1 < lower2)
1636  return -1;
1637  else if (lower1 > lower2)
1638  return 1;
1639  else
1640  return 0;
1641  }
1642 }
Here is the caller graph for this function: