mirror of
https://github.com/ton-blockchain/ton
synced 2025-03-09 15:40:10 +00:00
minor bugfix
This commit is contained in:
parent
4e2624459b
commit
dbde9c1c40
9 changed files with 24 additions and 10 deletions
|
@ -1,3 +1,4 @@
|
||||||
_ f(int a, int b, int c, int d, int e, int f, int g, int h, int i, int j) {
|
_ f(int a, int b, int c, int d, int e, int f, int g, int h, int i, int j) {
|
||||||
return (f, j, a, b, i, g, d, e, h, c);
|
return (f, j, a, b, i, g, d, e, h, c); ;; optimal code is 3 ops, 6 bytes
|
||||||
|
;; s6 s0 s4 XCHG3 s4 s8 s9 XCHG3 8 0 REVERSE
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
_ f(int a, int b, int c, int d, int e, int f, int g, int h, int i, int j) {
|
_ f(int a, int b, int c, int d, int e, int f, int g, int h, int i, int j) {
|
||||||
return (f, d, j, a, i, g, b, e, h, c);
|
return (f, d, j, a, i, g, b, e, h, c); ;; optimal code is 4 ops, 6 bytes
|
||||||
|
;; s1 s8 XCHG s1 s6 XCHG 7 3 BLKSWAP s9 s4 XCHG2
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
_ f(int a, int b, int c, int d, int e, int f, int g, int h, int i, int j, int k) {
|
_ f(int a, int b, int c, int d, int e, int f, int g, int h, int i, int j, int k) {
|
||||||
return (e, h, d, a, c, g, f, b, i, j, k); ;; optimal code is 4 ops, 8 bytes
|
return (e, h, d, a, c, g, f, b, i, j, k); ;; optimal code is 4 ops, 8 bytes
|
||||||
|
;; s9 s9 XCHG2 s6 s6 s8 XCHG3 s10 s7 s3 XCHG3 10 0 REVERSE
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
_ f(int a, int b, int c, int d, int e, int f, int g, int h, int i, int j, int k) {
|
_ f(int a, int b, int c, int d, int e, int f, int g, int h, int i, int j, int k) {
|
||||||
return (b, a, c, e, g, d, f, k, i, j, h); ;; optimal code is 4 ops, 8 bytes
|
return (b, a, c, e, g, d, f, k, i, j, h); ;; optimal code is 4 ops, 8 bytes
|
||||||
|
;; s5 s0 s8 XCHG3 2 9 BLKSWAP s8 s9 s10 XCHG3 s7 s0 s5 XCHG3
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
_ f(int a, int b, int c, int d, int e, int f, int g, int h, int i, int j, int k) {
|
_ f(int a, int b, int c, int d, int e, int f, int g, int h, int i, int j, int k) {
|
||||||
return (c, g, d, k, a, f, e, h, i, j, b); ;; optimal code is 6 ops, 6 bytes
|
return (c, g, d, k, a, f, e, h, i, j, b); ;; optimal code is 6 ops, 6 bytes
|
||||||
|
;; s0 s7 XCHG s0 s8 XCHG s0 s10 XCHG s0 s6 XCHG s0 s4 XCHG s0 s9 XCHG
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
_ f(int a, int b, int c, int d, int e, int f, int g, int h, int i, int j, int k) {
|
_ f(int a, int b, int c, int d, int e, int f, int g, int h, int i, int j, int k) {
|
||||||
return (h, e, d, j, k, f, i, a, b, c, g); ;; optimal code is 3 ops, 6 bytes
|
return (h, e, d, j, k, f, i, a, b, c, g); ;; optimal code is 3 ops, 6 bytes
|
||||||
|
;; s3 s10 XCHG s6 s7 s6 XCHG3 s9 s8 s4 XCHG3
|
||||||
}
|
}
|
||||||
|
|
4
crypto/func/test/a12_8.fc
Normal file
4
crypto/func/test/a12_8.fc
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
_ f(int a, int b, int c, int d, int e, int f, int g, int h, int i, int j, int k, int l, int m, int n, int o, int p) {
|
||||||
|
return (l, i, o, h, a, m, j, d, p, g, n, b, k, e, c, f); ;; optimal code is 5 ops, 10 bytes
|
||||||
|
;; 8 0 REVERSE s3 s9 s14 XCHG3 s15 s6 s4 XCHG3 s8 s12 XCHG s11 s13 s10 XCHG3
|
||||||
|
}
|
4
crypto/func/test/a12_9.fc
Normal file
4
crypto/func/test/a12_9.fc
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
_ f(int a, int b, int c, int d, int e, int f, int g, int h, int i, int j, int k, int l, int m, int n, int o, int p) {
|
||||||
|
return (g, j, n, f, o, i, e, l, d, h, b, k, m, c, p, a); ;; optimal code is 5 ops, 10 bytes
|
||||||
|
;; s7 s5 s14 XCHG3 s10 s4 s5 XCHG3 s12 s8 s11 XCHG3 s7 s6 s9 XCHG3 s13 s14 s15 XCHG3
|
||||||
|
}
|
|
@ -1663,14 +1663,6 @@ void ValidatorManagerImpl::completed_prestart_sync() {
|
||||||
}
|
}
|
||||||
|
|
||||||
void ValidatorManagerImpl::new_masterchain_block() {
|
void ValidatorManagerImpl::new_masterchain_block() {
|
||||||
update_shards();
|
|
||||||
update_shard_blocks();
|
|
||||||
|
|
||||||
if (!shard_client_.empty()) {
|
|
||||||
td::actor::send_closure(shard_client_, &ShardClient::new_masterchain_block_notification,
|
|
||||||
last_masterchain_block_handle_, last_masterchain_state_);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (last_masterchain_seqno_ > 0 && last_masterchain_block_handle_->is_key_block()) {
|
if (last_masterchain_seqno_ > 0 && last_masterchain_block_handle_->is_key_block()) {
|
||||||
last_key_block_handle_ = last_masterchain_block_handle_;
|
last_key_block_handle_ = last_masterchain_block_handle_;
|
||||||
if (last_key_block_handle_->id().seqno() > last_known_key_block_handle_->id().seqno()) {
|
if (last_key_block_handle_->id().seqno() > last_known_key_block_handle_->id().seqno()) {
|
||||||
|
@ -1679,6 +1671,14 @@ void ValidatorManagerImpl::new_masterchain_block() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
update_shards();
|
||||||
|
update_shard_blocks();
|
||||||
|
|
||||||
|
if (!shard_client_.empty()) {
|
||||||
|
td::actor::send_closure(shard_client_, &ShardClient::new_masterchain_block_notification,
|
||||||
|
last_masterchain_block_handle_, last_masterchain_state_);
|
||||||
|
}
|
||||||
|
|
||||||
if (last_masterchain_seqno_ % 1024 == 0) {
|
if (last_masterchain_seqno_ % 1024 == 0) {
|
||||||
LOG(WARNING) << "applied masterchain block " << last_masterchain_block_id_;
|
LOG(WARNING) << "applied masterchain block " << last_masterchain_block_id_;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue