parent
9d2b382c5d
commit
9a3348bd44
|
@ -35,10 +35,8 @@ template wordType*(_: type SomeBigInteger): type =
|
||||||
Word
|
Word
|
||||||
|
|
||||||
template hash*(num: StUint|StInt): Hash =
|
template hash*(num: StUint|StInt): Hash =
|
||||||
# TODO:
|
mixin limbs
|
||||||
# `hashData` is not particularly efficient.
|
hash(num.limbs)
|
||||||
# Explore better hashing solutions in nim-stew.
|
|
||||||
hashData(unsafeAddr num, sizeof num)
|
|
||||||
|
|
||||||
{.pop.}
|
{.pop.}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue