1
0
Fork 0
mirror of https://github.com/ton-blockchain/ton synced 2025-03-09 15:40:10 +00:00

Add slice_data_equal? to stdlib.fc

The stdlib already has the functions `slice_empty?`, `slice_data_empty?` and `slice_refs_empty?` corresponding to "SEMPTY", "SDEMPTY" and "SREMPTY" assembly instructions. 

It's clear that the function name corresponding to assembly instruction 'SDEQ' should be `slice_data_equal?`, not `equal_slice_bits`, in order to maintain consistent naming conventions. Unfortunately, the mistake of calling the function `equal_slice_bits` has already been made, but at least it is possible to add the correct name as well.
This commit is contained in:
akifoq 2023-06-26 22:09:45 +04:00 committed by GitHub
parent cc0eb453cb
commit f0a90d466e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -634,6 +634,7 @@ int get_seed() impure asm "RANDSEED";
;;; Checks whether the data parts of two slices coinside
int equal_slice_bits (slice a, slice b) asm "SDEQ";
int slice_data_equal?(slice a, slice b) asm "SDEQ";
;;; Concatenates two builders
builder store_builder(builder to, builder from) asm "STBR";