From: yu.dongliang <18588496441@163.com> Date: Mon, 30 Oct 2023 10:18:43 +0000 (+0800) Subject: __ses_xchg_cx2() X-Git-Url: http://baseworks.info/?a=commitdiff_plain;h=0bb0a24eaab80d2fb319f4c163fe4d299c56e9e0;p=ses.git __ses_xchg_cx2() --- diff --git a/ses_layout.c b/ses_layout.c index 511fa49..3e98f34 100644 --- a/ses_layout.c +++ b/ses_layout.c @@ -847,20 +847,12 @@ static inline void __ses_xchg_cx2(ScfEcomponent* c0, ScfEcomponent* c1) for (i = 0; i < c0->n_pins; i++) { p = c0->pins[i]; - - if (i < 2) - p->x = c0->x; - else - p->x = c0->x - cx0; + p->x += c0->x - cx0; } for (i = 0; i < c1->n_pins; i++) { p = c1->pins[i]; - - if (i < 2) - p->x = c1->x; - else - p->x = c1->x - cx1; + p->x += c1->x - cx1; } }