From c60fb94b6c45ca74632e972995555170063b3a03 Mon Sep 17 00:00:00 2001 From: gatecat Date: Wed, 10 Aug 2022 18:58:22 +0100 Subject: refactor: Use IdString::in instead of || chains Signed-off-by: gatecat --- gowin/globals.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'gowin/globals.cc') diff --git a/gowin/globals.cc b/gowin/globals.cc index 1794dd4c..21ee722a 100644 --- a/gowin/globals.cc +++ b/gowin/globals.cc @@ -32,8 +32,7 @@ NEXTPNR_NAMESPACE_BEGIN bool GowinGlobalRouter::is_clock_port(PortRef const &user) { - if ((user.cell->type == id_SLICE || user.cell->type == id_ODDR || user.cell->type == id_ODDRC) && - user.port == id_CLK) { + if ((user.cell->type.in(id_SLICE, id_ODDR, id_ODDRC)) && user.port == id_CLK) { return true; } return false; -- cgit v1.2.3