mirror of
https://github.com/ton-blockchain/ton
synced 2025-03-09 15:40:10 +00:00
updated fift + bugfixes
This commit is contained in:
parent
090e0c16eb
commit
ceaed40ac4
28 changed files with 530 additions and 108 deletions
|
@ -922,7 +922,7 @@ void CppTypeCode::generate_get_tag_param1(std::ostream& os, std::string nl, cons
|
|||
match_param_pattern(os, nl, A, 8, "# > 1 && (# & 1)", param_names[0])) {
|
||||
return;
|
||||
}
|
||||
os << nl << "static inline size_t nat_abs(int x) { return (x > 1) * 2 + (x & 1); }";
|
||||
os << nl << "// static inline size_t nat_abs(int x) { return (x > 1) * 2 + (x & 1); }";
|
||||
os << nl << "static signed char ctab[4] = { ";
|
||||
for (int i = 0; i < 4; i++) {
|
||||
if (i > 0) {
|
||||
|
@ -941,7 +941,7 @@ void CppTypeCode::generate_get_tag_param2(std::ostream& os, std::string nl, cons
|
|||
os << ' ' << (int)A[i][j];
|
||||
}
|
||||
}
|
||||
os << nl << "static inline size_t nat_abs(int x) { return (x > 1) * 2 + (x & 1); }";
|
||||
os << nl << "// static inline size_t nat_abs(int x) { return (x > 1) * 2 + (x & 1); }";
|
||||
os << nl << "static signed char ctab[4][4] = { ";
|
||||
for (int i = 0; i < 16; i++) {
|
||||
if (i > 0) {
|
||||
|
@ -964,7 +964,7 @@ void CppTypeCode::generate_get_tag_param3(std::ostream& os, std::string nl, cons
|
|||
}
|
||||
}
|
||||
}
|
||||
os << nl << "static inline size_t nat_abs(int x) { return (x > 1) * 2 + (x & 1); }";
|
||||
os << nl << "// static inline size_t nat_abs(int x) { return (x > 1) * 2 + (x & 1); }";
|
||||
os << nl << "static signed char ctab[4][4][4] = { ";
|
||||
for (int i = 0; i < 64; i++) {
|
||||
if (i > 0) {
|
||||
|
|
|
@ -218,6 +218,9 @@ class TLB {
|
|||
return cs_ref.not_null() ? as_string(*cs_ref, indent) : "<null>";
|
||||
}
|
||||
std::string as_string_ref(Ref<vm::Cell> cell_ref, int indent = 0) const;
|
||||
static inline size_t nat_abs(int x) {
|
||||
return (x > 1) * 2 + (x & 1);
|
||||
}
|
||||
|
||||
protected:
|
||||
bool validate_ref_internal(Ref<vm::Cell> cell_ref, bool weak = false) const;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue