From 03f740e2a4f71b856aa10b3d7a5f36b3d957c788 Mon Sep 17 00:00:00 2001 From: Akash Levy Date: Wed, 18 Sep 2024 22:05:23 -0700 Subject: [PATCH] Undo annoying commit bdc43c659262b4334694273cc6af082af4f10f81 --- kernel/rtlil.cc | 10 ---------- kernel/rtlil.h | 1 - 2 files changed, 11 deletions(-) diff --git a/kernel/rtlil.cc b/kernel/rtlil.cc index 0740ef297..7092eb0ed 100644 --- a/kernel/rtlil.cc +++ b/kernel/rtlil.cc @@ -224,16 +224,6 @@ RTLIL::Const::Const(int val, int width) } } -RTLIL::Const::Const(long long val, int width) -{ - flags = RTLIL::CONST_FLAG_NONE; - bits.reserve(width); - for (int i = 0; i < width; i++) { - bits.push_back((val & 1) != 0 ? State::S1 : State::S0); - val = val >> 1; - } -} - RTLIL::Const::Const(RTLIL::State bit, int width) { flags = RTLIL::CONST_FLAG_NONE; diff --git a/kernel/rtlil.h b/kernel/rtlil.h index 131c7a433..713718499 100644 --- a/kernel/rtlil.h +++ b/kernel/rtlil.h @@ -664,7 +664,6 @@ struct RTLIL::Const Const() : flags(RTLIL::CONST_FLAG_NONE) {} Const(const std::string &str); Const(int val, int width = 32); - Const(long long val, int width = 32); Const(RTLIL::State bit, int width = 1); Const(const std::vector &bits) : bits(bits) { flags = CONST_FLAG_NONE; } Const(const std::vector &bits);