From 85db102e13bbd6decda3f99ef640d0991ee24b33 Mon Sep 17 00:00:00 2001 From: Clifford Wolf Date: Wed, 23 Jul 2014 15:35:09 +0200 Subject: [PATCH] Replaced RTLIL::SigSpec::operator!=() with inline version --- kernel/rtlil.cc | 7 ------- kernel/rtlil.h | 2 +- 2 files changed, 1 insertion(+), 8 deletions(-) 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; -- 2.30.2