PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ interval_cmp_lower()

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

Definition at line 1553 of file gserialized_gist_2d.c.

Referenced by gserialized_gist_picksplit_2d().

1554 {
1555  float lower1 = ((const SplitInterval *) i1)->lower,
1556  lower2 = ((const SplitInterval *) i2)->lower;
1557 
1558  if (isnan(lower1))
1559  {
1560  if (isnan(lower2))
1561  return 0;
1562  else
1563  return 1;
1564  }
1565  else if (isnan(lower2))
1566  {
1567  return -1;
1568  }
1569  else
1570  {
1571  if (lower1 < lower2)
1572  return -1;
1573  else if (lower1 > lower2)
1574  return 1;
1575  else
1576  return 0;
1577  }
1578 }
Here is the caller graph for this function: