Skip to content

Commit

Permalink
atomic
Browse files Browse the repository at this point in the history
  • Loading branch information
Skydev0h committed Dec 23, 2023
1 parent 0c4e978 commit 8b5ccc7
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions contracts/task1.fc
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,13 @@

}

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

;; get_seqno get_execution_time
int getter(int id) method_id(111) {
slice d = get_data().begin_parse().skip_bits(256);
if (id == 77871) { ;; get_execution_time
d = d.skip_bits(32 + 3 + 8 + 256);
}
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);
}

Expand Down

0 comments on commit 8b5ccc7

Please sign in to comment.