From: yu.dongliang <18588496441@163.com> Date: Mon, 6 Nov 2023 05:19:06 +0000 (+0800) Subject: delete __ses_mov_pos() X-Git-Url: http://baseworks.info/?a=commitdiff_plain;h=1d25d9d1f146cf463de7ebd40c542683d63c7312;p=ses.git delete __ses_mov_pos() --- diff --git a/ses_layout.c b/ses_layout.c index e80bdec..8239358 100644 --- a/ses_layout.c +++ b/ses_layout.c @@ -1249,65 +1249,6 @@ static void __ses_xchg_ce(ScfEfunction* f, int d) } } -static void __ses_mov_pos(ScfEfunction* f, int d) -{ - ScfEcomponent* c; - ScfEpin* p; - - size_t i; - size_t j; - - int mx = 0; - int nx = INT_MIN; - int px = INT_MAX; - - for (i = 0; i < f->n_components; i++) { - c = f->components[i]; - - for (j = 0; j < c->n_pins; j++) { - p = c->pins[j]; - - if (p->x < 0) { - if (mx > p->x) - mx = p->x; - - if (nx < p->x) - nx = p->x; - - } else { - if (px > p->x) - px = p->x; - } - } - } - - if (INT_MIN == nx) - nx = 0; - - if (INT_MAX == px) - px = 0; - - scf_loge("mx: %d, nx: %d, px: %d\n", mx, nx, px); - - for (i = 0; i < f->n_components; i++) { - c = f->components[i]; - - for (j = 0; j < c->n_pins; j++) { - p = c->pins[j]; - - if (p->x > 0) - p->x -= px - nx - d; - - p->x -= mx - d; - } - - if (c->x > 0) - c->x -= px - nx - d; - - c->x -= mx - d; - } -} - int ses_layout_function(ScfEfunction* f, int d) { ScfEcomponent* c; @@ -1345,7 +1286,6 @@ int ses_layout_function(ScfEfunction* f, int d) __ses_xchg_cx(f, d); __ses_xchg_ce(f, d); -// __ses_mov_pos(f, d); __ses_layout_cx(f, d); int tx0 = INT_MAX;