Skip to content

Commit

Permalink
optimized fifting
Browse files Browse the repository at this point in the history
  • Loading branch information
Skydev0h committed Dec 23, 2023
1 parent 8b5ccc7 commit 46d4a85
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions contracts/task1.fc
Original file line number Diff line number Diff line change
Expand Up @@ -62,17 +62,14 @@
body~is_claim_call_or_ret();

claim_sub();

}

int raw_tester(int id) asm "24 RSHIFT# 0x13 EQINT";

;; get_seqno get_execution_time
int getter(int id) method_id(111) {
int skip = 0;
if (raw_tester(id)) { skip = 256 + 32 + 3 + 8 + 256; } else { skip = 256; }
slice d = get_data().begin_parse().skip_bits(skip);
return d.preload_uint(32);
if (id == 77871) { ;; get_seqno
return get_data().begin_parse().skip_bits(256 + 32 + 3 + 8 + 256).preload_uint(32);
}
return get_data().begin_parse().skip_bits(256).preload_uint(32);
}

{-
Expand Down

0 comments on commit 46d4a85

Please sign in to comment.