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

Definition at line 1361 of file gserialized_gist_2d.c.

Referenced by gserialized_gist_picksplit_2d().

1362 {
1363  float upper1 = ((const SplitInterval *) i1)->upper,
1364  upper2 = ((const SplitInterval *) i2)->upper;
1365 
1366  if (isnan(upper1))
1367  {
1368  if (isnan(upper2))
1369  return 0;
1370  else
1371  return -1;
1372  }
1373  else if (isnan(upper2))
1374  {
1375  return 1;
1376  }
1377  else
1378  {
1379  if (upper1 < upper2)
1380  return -1;
1381  else if (upper1 > upper2)
1382  return 1;
1383  else
1384  return 0;
1385  }
1386 }

Here is the caller graph for this function: