PostGIS  2.3.8dev-r@@SVN_REVISION@@

◆ interval_cmp_lower()

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

Definition at line 1460 of file gserialized_gist_2d.c.

Referenced by gserialized_gist_picksplit_2d().

1461 {
1462  float lower1 = ((const SplitInterval *) i1)->lower,
1463  lower2 = ((const SplitInterval *) i2)->lower;
1464 
1465  if (isnan(lower1))
1466  {
1467  if (isnan(lower2))
1468  return 0;
1469  else
1470  return 1;
1471  }
1472  else if (isnan(lower2))
1473  {
1474  return -1;
1475  }
1476  else
1477  {
1478  if (lower1 < lower2)
1479  return -1;
1480  else if (lower1 > lower2)
1481  return 1;
1482  else
1483  return 0;
1484  }
1485 }
Here is the caller graph for this function: