Thread (17 messages) 17 messages, 10 authors, 2009-02-18

Re: [PATCH] Update jhash.h with the new version of Jenkins' hash

flat view

From: Michał Mirosław <mirq-linux@rere.qmqm.pl>
Date: 2009-02-11 20:19:23
Also in: lkml, netfilter-devel

Hi,

On Wed, Feb 11, 2009 at 11:19:20AM +0100, Jozsef Kadlecsik wrote:
quoted hunk ↗ jump to hunk
 /* The golden ration: an arbitrary value */
-#define JHASH_GOLDEN_RATIO	0x9e3779b9
+#define JHASH_GOLDEN_RATIO	0xdeadbeef
I have a stupid question: if this is arbitrary value, then why not
just get rid of it (IOW use zero as it's used in addition)?

Best Regards,
Michał Mirosław
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help