PostGIS  2.1.10dev-r@@SVN_REVISION@@
static int gserialized_gist_picksplit_badratio ( int  x,
int  y 
)
static

Definition at line 884 of file gserialized_gist_nd.c.

References FALSE, LIMIT_RATIO, and TRUE.

Referenced by gserialized_gist_picksplit_badratios().

885 {
886  POSTGIS_DEBUGF(4, "[GIST] checking split ratio (%d, %d)", x, y);
887  if ( (y == 0) || (((float)x / (float)y) < LIMIT_RATIO) ||
888  (x == 0) || (((float)y / (float)x) < LIMIT_RATIO) )
889  return TRUE;
890 
891  return FALSE;
892 }
#define LIMIT_RATIO
tuple x
Definition: pixval.py:53
#define FALSE
Definition: dbfopen.c:169
#define TRUE
Definition: dbfopen.c:170
tuple y
Definition: pixval.py:54

Here is the caller graph for this function: