PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ gserialized_gist_picksplit_badratio()

static int gserialized_gist_picksplit_badratio ( int  x,
int  y 
)
static

Definition at line 1614 of file gserialized_gist_nd.c.

1615 {
1616  POSTGIS_DEBUGF(4, "[GIST] checking split ratio (%d, %d)", x, y);
1617  if ( (y == 0) || (((float)x / (float)y) < LIMIT_RATIO) ||
1618  (x == 0) || (((float)y / (float)x) < LIMIT_RATIO) )
1619  return true;
1620 
1621  return false;
1622 }
#define LIMIT_RATIO

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

Referenced by gserialized_gist_picksplit_badratios().

Here is the caller graph for this function: