diff options
author | gatecat <gatecat@ds0.me> | 2022-08-10 18:58:22 +0100 |
---|---|---|
committer | gatecat <gatecat@ds0.me> | 2022-08-10 18:58:22 +0100 |
commit | c60fb94b6c45ca74632e972995555170063b3a03 (patch) | |
tree | b6bc6fe3cecc6962e12e61b9febb5c85e06960ed /mistral/globals.cc | |
parent | a20d21bd135aceb9155eaee714488d1d76c60898 (diff) | |
download | nextpnr-c60fb94b6c45ca74632e972995555170063b3a03.tar.gz nextpnr-c60fb94b6c45ca74632e972995555170063b3a03.tar.bz2 nextpnr-c60fb94b6c45ca74632e972995555170063b3a03.zip |
refactor: Use IdString::in instead of || chains
Signed-off-by: gatecat <gatecat@ds0.me>
Diffstat (limited to 'mistral/globals.cc')
-rw-r--r-- | mistral/globals.cc | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/mistral/globals.cc b/mistral/globals.cc index 6af8920d..bdd835a7 100644 --- a/mistral/globals.cc +++ b/mistral/globals.cc @@ -38,10 +38,7 @@ void Arch::create_clkbuf(int x, int y) } } -bool Arch::is_clkbuf_cell(IdString cell_type) const -{ - return cell_type == id_MISTRAL_CLKENA || cell_type == id_MISTRAL_CLKBUF; -} +bool Arch::is_clkbuf_cell(IdString cell_type) const { return cell_type.in(id_MISTRAL_CLKENA, id_MISTRAL_CLKBUF); } void Arch::create_hps_mpu_general_purpose(int x, int y) { |