From 0bb0a24eaab80d2fb319f4c163fe4d299c56e9e0 Mon Sep 17 00:00:00 2001 From: "yu.dongliang" <18588496441@163.com> Date: Mon, 30 Oct 2023 18:18:43 +0800 Subject: [PATCH] __ses_xchg_cx2() --- ses_layout.c | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) 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; } } -- 2.25.1