mirror of https://github.com/YosysHQ/yosys.git
Use long long int for pyosys
This commit is contained in:
parent
72de51a1b0
commit
503b0aae20
|
|
@ -273,7 +273,7 @@ RTLIL::Const::Const(const std::string &str)
|
|||
tag = backing_tag::string;
|
||||
}
|
||||
|
||||
RTLIL::Const::Const(long long val) // default width 32
|
||||
RTLIL::Const::Const(long long int val) // default width 32
|
||||
{
|
||||
flags = RTLIL::CONST_FLAG_NONE;
|
||||
char bytes[] = {
|
||||
|
|
@ -283,7 +283,7 @@ RTLIL::Const::Const(long long val) // default width 32
|
|||
tag = backing_tag::string;
|
||||
}
|
||||
|
||||
RTLIL::Const::Const(long long val, int width)
|
||||
RTLIL::Const::Const(long long int val, int width)
|
||||
{
|
||||
flags = RTLIL::CONST_FLAG_NONE;
|
||||
if ((width & 7) == 0) {
|
||||
|
|
|
|||
|
|
@ -862,8 +862,8 @@ private:
|
|||
public:
|
||||
Const() : flags(RTLIL::CONST_FLAG_NONE), tag(backing_tag::bits), bits_(std::vector<RTLIL::State>()) {}
|
||||
Const(const std::string &str);
|
||||
Const(long long val); // default width is 32
|
||||
Const(long long val, int width);
|
||||
Const(long long int val); // default width is 32
|
||||
Const(long long int val, int width);
|
||||
Const(RTLIL::State bit, int width = 1);
|
||||
Const(std::vector<RTLIL::State> bits) : flags(RTLIL::CONST_FLAG_NONE), tag(backing_tag::bits), bits_(std::move(bits)) {}
|
||||
Const(const std::vector<bool> &bits);
|
||||
|
|
|
|||
Loading…
Reference in New Issue