PostGIS 3.0.6dev-r@@SVN_REVISION@@
Loading...
Searching...
No Matches

◆ interval_cmp_lower()

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

Definition at line 1385 of file gserialized_gist_2d.c.

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

References SplitInterval::lower.

Referenced by gserialized_gist_picksplit_2d().

Here is the caller graph for this function: