PostGIS  2.5.0dev-r@@SVN_REVISION@@

◆ common_entry_cmp()

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

Definition at line 1813 of file gserialized_gist_2d.c.

References gserialized_gist_picksplit_2d(), and PG_FUNCTION_INFO_V1().

Referenced by gserialized_gist_picksplit_2d().

1814 {
1815  float delta1 = ((const CommonEntry *) i1)->delta,
1816  delta2 = ((const CommonEntry *) i2)->delta;
1817 
1818  if (delta1 < delta2)
1819  return -1;
1820  else if (delta1 > delta2)
1821  return 1;
1822  else
1823  return 0;
1824 }
Here is the call graph for this function:
Here is the caller graph for this function: