Include split/combine256

This commit is contained in:
Alex Beregszaszi
2017-11-22 03:33:04 +00:00
parent aa6f33db2c
commit e33a9b43ad
+6
View File
@@ -366,6 +366,12 @@ The following functions must be available:
+---------------------------------------------------------------------------------------------------------------+
| discardu256(unused:u256) | discard value |
+---------------------------------------------------------------------------------------------------------------+
| splitu256tou64(x:u256) -> (x1:u64, x2:u64, | split u256 to four u64's |
| x3:u64, x4:u64) | |
+---------------------------------------------------------------------------------------------------------------+
| combineu64tou256(x1:u64, x2:u64, x3:u64, | combine four u64's into a single u256 |
| x4:u64) -> (x:u256) | |
+---------------------------------------------------------------------------------------------------------------+
| sha3(p:u256, s:u256) -> v:u256 | keccak(mem[p...(p+s))) |
+---------------------------------------------------------------------------------------------------------------+