PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ gserialized_gist_picksplit_badratio()

static int gserialized_gist_picksplit_badratio ( int  x,
int  y 
)
static

Definition at line 1613 of file gserialized_gist_nd.c.

References FALSE, LIMIT_RATIO, and TRUE.

Referenced by gserialized_gist_picksplit_badratios().

1614 {
1615  POSTGIS_DEBUGF(4, "[GIST] checking split ratio (%d, %d)", x, y);
1616  if ( (y == 0) || (((float)x / (float)y) < LIMIT_RATIO) ||
1617  (x == 0) || (((float)y / (float)x) < LIMIT_RATIO) )
1618  return TRUE;
1619 
1620  return FALSE;
1621 }
#define LIMIT_RATIO
#define FALSE
Definition: dbfopen.c:168
#define TRUE
Definition: dbfopen.c:169
Here is the caller graph for this function: