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

Definition at line 1387 of file gserialized_gist_2d.c.

Referenced by gserialized_gist_picksplit_2d().

1388 {
1389  float upper1 = ((const SplitInterval *) i1)->upper,
1390  upper2 = ((const SplitInterval *) i2)->upper;
1391 
1392  if (isnan(upper1))
1393  {
1394  if (isnan(upper2))
1395  return 0;
1396  else
1397  return -1;
1398  }
1399  else if (isnan(upper2))
1400  {
1401  return 1;
1402  }
1403  else
1404  {
1405  if (upper1 < upper2)
1406  return -1;
1407  else if (upper1 > upper2)
1408  return 1;
1409  else
1410  return 0;
1411  }
1412 }

Here is the caller graph for this function: