PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ common_entry_cmp()

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

Definition at line 1758 of file gserialized_gist_2d.c.

References gserialized_gist_picksplit_2d(), and PG_FUNCTION_INFO_V1().

Referenced by gserialized_gist_picksplit_2d().

1759 {
1760  float delta1 = ((const CommonEntry *) i1)->delta,
1761  delta2 = ((const CommonEntry *) i2)->delta;
1762 
1763  if (delta1 < delta2)
1764  return -1;
1765  else if (delta1 > delta2)
1766  return 1;
1767  else
1768  return 0;
1769 }
Here is the call graph for this function:
Here is the caller graph for this function: