mirror of
https://github.com/roc-lang/roc.git
synced 2025-12-15 21:23:57 +00:00
Implement hash for Dec
This commit is contained in:
parent
0b475ae979
commit
3585d5bb5b
12 changed files with 44 additions and 6 deletions
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue