PostGIS  3.0.0dev-r@@SVN_REVISION@@

◆ interval_cmp_lower()

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

Definition at line 1608 of file gserialized_gist_2d.c.

Referenced by gserialized_gist_picksplit_2d().

1609 {
1610  float lower1 = ((const SplitInterval *) i1)->lower,
1611  lower2 = ((const SplitInterval *) i2)->lower;
1612 
1613  if (isnan(lower1))
1614  {
1615  if (isnan(lower2))
1616  return 0;
1617  else
1618  return 1;
1619  }
1620  else if (isnan(lower2))
1621  {
1622  return -1;
1623  }
1624  else
1625  {
1626  if (lower1 < lower2)
1627  return -1;
1628  else if (lower1 > lower2)
1629  return 1;
1630  else
1631  return 0;
1632  }
1633 }
Here is the caller graph for this function: