mirror of
https://github.com/YosysHQ/yosys
synced 2026-05-25 19:36:21 +00:00
Update CI scripts for CMake
This commit is contained in:
parent
cad5353a2a
commit
ba6083da16
30 changed files with 315 additions and 327 deletions
|
|
@ -206,13 +206,16 @@ bool mp_int_to_const(mp_int *a, Const &b, bool is_signed)
|
|||
return false;
|
||||
|
||||
if (negative) {
|
||||
mp_neg(a, a);
|
||||
mp_sub_d(a, 1, a);
|
||||
if (mp_neg(a, a) != MP_OKAY)
|
||||
return false;
|
||||
if (mp_sub_d(a, 1, a) != MP_OKAY)
|
||||
return false;
|
||||
}
|
||||
|
||||
std::vector<unsigned char> buf;
|
||||
buf.resize(mp_unsigned_bin_size(a));
|
||||
mp_to_unsigned_bin(a, buf.data());
|
||||
if (mp_to_unsigned_bin(a, buf.data()) != MP_OKAY)
|
||||
return false;
|
||||
|
||||
Const::Builder b_bits(mp_count_bits(a) + is_signed);
|
||||
for (int i = 0; i < mp_count_bits(a);) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue