PostGIS  2.5.2dev-r@@SVN_REVISION@@

◆ compareDoubles()

static int compareDoubles ( const void *  a,
const void *  b 
)
static

Definition at line 105 of file gserialized_spgist_2d.c.

References pixval::x, and pixval::y.

Referenced by gserialized_spgist_picksplit_2d().

106 {
107  double x = *(double *)a;
108  double y = *(double *)b;
109 
110  if (x == y)
111  return 0;
112  return (x > y) ? 1 : -1;
113 }
Here is the caller graph for this function: