PostGIS 3.6.2dev-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 1532 of file gserialized_gist_2d.c.

1533{
1534 float lower1 = ((const SplitInterval *) i1)->lower,
1535 lower2 = ((const SplitInterval *) i2)->lower;
1536
1537 if (isnan(lower1))
1538 {
1539 if (isnan(lower2))
1540 return 0;
1541 else
1542 return 1;
1543 }
1544 else if (isnan(lower2))
1545 {
1546 return -1;
1547 }
1548 else
1549 {
1550 if (lower1 < lower2)
1551 return -1;
1552 else if (lower1 > lower2)
1553 return 1;
1554 else
1555 return 0;
1556 }
1557}

References SplitInterval::lower.

Referenced by gserialized_gist_picksplit_2d().

Here is the caller graph for this function: