PostGIS  2.5.2dev-r@@SVN_REVISION@@

◆ common_entry_cmp()

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

Definition at line 1822 of file gserialized_gist_2d.c.

References gserialized_gist_picksplit_2d(), and PG_FUNCTION_INFO_V1().

Referenced by gserialized_gist_picksplit_2d().

1823 {
1824  float delta1 = ((const CommonEntry *) i1)->delta,
1825  delta2 = ((const CommonEntry *) i2)->delta;
1826 
1827  if (delta1 < delta2)
1828  return -1;
1829  else if (delta1 > delta2)
1830  return 1;
1831  else
1832  return 0;
1833 }
Here is the call graph for this function:
Here is the caller graph for this function: