Implement hash for Dec

This commit is contained in:
Ayaz Hafiz 2023-05-26 11:32:59 -05:00
parent 0b475ae979
commit 3585d5bb5b
No known key found for this signature in database
GPG key ID: 0E2A37416A25EF58
12 changed files with 44 additions and 6 deletions

View file

@ -110,6 +110,7 @@ pub enum LowLevel {
NumCountLeadingZeroBits,
NumCountTrailingZeroBits,
NumCountOneBits,
I128OfDec,
Eq,
NotEq,
And,
@ -340,6 +341,7 @@ map_symbol_to_lowlevel! {
NumCountLeadingZeroBits <= NUM_COUNT_LEADING_ZERO_BITS,
NumCountTrailingZeroBits <= NUM_COUNT_TRAILING_ZERO_BITS,
NumCountOneBits <= NUM_COUNT_ONE_BITS,
I128OfDec <= I128_OF_DEC,
Eq <= BOOL_STRUCTURAL_EQ,
NotEq <= BOOL_STRUCTURAL_NOT_EQ,
And <= BOOL_AND,

View file

@ -1566,10 +1566,12 @@ define_builtins! {
13 HASH_HASH_I64: "hashI64"
14 HASH_HASH_I128: "hashI128"
15 HASH_HASH_NAT: "hashNat"
16 HASH_COMPLETE: "complete"
17 HASH_HASH_STR_BYTES: "hashStrBytes"
18 HASH_HASH_LIST: "hashList"
19 HASH_HASH_UNORDERED: "hashUnordered"
16 I128_OF_DEC: "i128OfDec"
17 HASH_HASH_DEC: "hashDec"
18 HASH_COMPLETE: "complete"
19 HASH_HASH_STR_BYTES: "hashStrBytes"
20 HASH_HASH_LIST: "hashList"
21 HASH_HASH_UNORDERED: "hashUnordered"
}
14 JSON: "Json" => {
0 JSON_JSON: "Json"