From: Clifford Wolf Date: Wed, 23 Jul 2014 13:35:09 +0000 (+0200) Subject: Replaced RTLIL::SigSpec::operator!=() with inline version X-Git-Tag: yosys-0.4~476 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=85db102e13bbd6decda3f99ef640d0991ee24b33;p=yosys.git Replaced RTLIL::SigSpec::operator!=() with inline version --- diff --git a/kernel/rtlil.cc b/kernel/rtlil.cc index 6bb3e6126..f907ff642 100644 --- a/kernel/rtlil.cc +++ b/kernel/rtlil.cc @@ -1929,13 +1929,6 @@ bool RTLIL::SigSpec::operator ==(const RTLIL::SigSpec &other) const return true; } -bool RTLIL::SigSpec::operator !=(const RTLIL::SigSpec &other) const -{ - if (*this == other) - return false; - return true; -} - bool RTLIL::SigSpec::is_fully_const() const { pack(); diff --git a/kernel/rtlil.h b/kernel/rtlil.h index 832146594..80007ab8c 100644 --- a/kernel/rtlil.h +++ b/kernel/rtlil.h @@ -575,7 +575,7 @@ public: bool operator <(const RTLIL::SigSpec &other) const; bool operator ==(const RTLIL::SigSpec &other) const; - bool operator !=(const RTLIL::SigSpec &other) const; + inline bool operator !=(const RTLIL::SigSpec &other) const { return !(*this == other); } bool is_fully_const() const; bool is_fully_def() const;