PostGIS  2.3.8dev-r@@SVN_REVISION@@

◆ gserialized_gist_picksplit_badratio()

static int gserialized_gist_picksplit_badratio ( int  x,
int  y 
)
static

Definition at line 1500 of file gserialized_gist_nd.c.

References FALSE, LIMIT_RATIO, and TRUE.

Referenced by gserialized_gist_picksplit_badratios().

1501 {
1502  POSTGIS_DEBUGF(4, "[GIST] checking split ratio (%d, %d)", x, y);
1503  if ( (y == 0) || (((float)x / (float)y) < LIMIT_RATIO) ||
1504  (x == 0) || (((float)y / (float)x) < LIMIT_RATIO) )
1505  return TRUE;
1506 
1507  return FALSE;
1508 }
#define LIMIT_RATIO
#define FALSE
Definition: dbfopen.c:168
#define TRUE
Definition: dbfopen.c:169
Here is the caller graph for this function: