PostGIS  2.1.10dev-r@@SVN_REVISION@@
static int interval_cmp_lower ( const void *  i1,
const void *  i2 
)
static

Definition at line 1329 of file gserialized_gist_2d.c.

Referenced by gserialized_gist_picksplit_2d().

1330 {
1331  float lower1 = ((const SplitInterval *) i1)->lower,
1332  lower2 = ((const SplitInterval *) i2)->lower;
1333 
1334  if (isnan(lower1))
1335  {
1336  if (isnan(lower2))
1337  return 0;
1338  else
1339  return 1;
1340  }
1341  else if (isnan(lower2))
1342  {
1343  return -1;
1344  }
1345  else
1346  {
1347  if (lower1 < lower2)
1348  return -1;
1349  else if (lower1 > lower2)
1350  return 1;
1351  else
1352  return 0;
1353  }
1354 }

Here is the caller graph for this function: