summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorLucas Gabriel Vuotto <lvuotto92@gmail.com>2017-10-03 20:05:42 -0300
committerOri Bernstein <ori@eigenstate.org>2017-10-04 00:53:29 -0700
commit92b12fc6772aae7ebb9b6436dcfc393e17de01b6 (patch)
treebba96051b3a62be3e8d77aa51d6d674a4d54ddc0 /lib
parentaddfe6e58b518046d3ed84e6b6081f1538946c3a (diff)
downloadmc-92b12fc6772aae7ebb9b6436dcfc393e17de01b6.tar.gz
Make ptrhash more explicit
Hello, inlined is patch to make more clear the workings of ptrhash. Cheers. >From 8e01ae0a29d8937bc0fb5906085840e2f0d51ee3 Mon Sep 17 00:00:00 2001 From: Lucas Gabriel Vuotto <lvuotto92@gmail.com> Date: Tue, 3 Oct 2017 19:48:55 -0300 Subject: [PATCH] Make ptrhash more explicit X-Spam-Status: No, hits=0.000000 required=0.900000 Signed-off-by: Lucas Gabriel Vuotto <lvuotto92@gmail.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/std/hashfuncs.myr5
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/std/hashfuncs.myr b/lib/std/hashfuncs.myr
index eca00c9..da47215 100644
--- a/lib/std/hashfuncs.myr
+++ b/lib/std/hashfuncs.myr
@@ -78,10 +78,7 @@ const streq = {a, b
}
generic ptrhash = {p : @a#
- var x
-
- x = (&p : byte#)
- -> siphash24(x[0:sizeof(@a#)], Seed)
+ -> inthash((p : intptr))
}
generic ptreq = {a, b