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

Definition at line 1355 of file gserialized_gist_2d.c.

Referenced by gserialized_gist_picksplit_2d().

1356 {
1357  float lower1 = ((const SplitInterval *) i1)->lower,
1358  lower2 = ((const SplitInterval *) i2)->lower;
1359 
1360  if (isnan(lower1))
1361  {
1362  if (isnan(lower2))
1363  return 0;
1364  else
1365  return 1;
1366  }
1367  else if (isnan(lower2))
1368  {
1369  return -1;
1370  }
1371  else
1372  {
1373  if (lower1 < lower2)
1374  return -1;
1375  else if (lower1 > lower2)
1376  return 1;
1377  else
1378  return 0;
1379  }
1380 }

Here is the caller graph for this function: