Compare commits
No commits in common. "980ea28a5bba36fa9110c61f0c0489d3db8276aa" and "7875a55c101c12a8251b99e2065a253766823b95" have entirely different histories.
980ea28a5b
...
7875a55c10
@ -8,9 +8,6 @@
|
||||
// FIXME: find a way to not re-hash the whole stack when removing one item
|
||||
|
||||
// incremental hash for every grow
|
||||
#if STACK_DISABLE_HASH
|
||||
#define STACK_HASH(p, s, h) {}
|
||||
#else
|
||||
#define STACK_HASH(p, s, h) \
|
||||
{ \
|
||||
unsigned char *v = (unsigned char *)(p); \
|
||||
@ -23,7 +20,6 @@
|
||||
(h) ^= (h) >> 11; \
|
||||
(h) += (h) << 15; \
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
// TODO: add a rolling hash
|
||||
|
Loading…
x
Reference in New Issue
Block a user