projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ar71xx: fix random wireless mac address on the TEW-632BRP/DIR-615 boards
[openwrt.git]
/
target
/
linux
/
generic-2.6
/
patches-2.6.28
/
201-jhash3.patch
diff --git
a/target/linux/generic-2.6/patches-2.6.28/201-jhash3.patch
b/target/linux/generic-2.6/patches-2.6.28/201-jhash3.patch
index
260481e
..
0218fa1
100644
(file)
--- a/
target/linux/generic-2.6/patches-2.6.28/201-jhash3.patch
+++ b/
target/linux/generic-2.6/patches-2.6.28/201-jhash3.patch
@@
-70,7
+70,7
@@
-/* The golden ration: an arbitrary value */
-#define JHASH_GOLDEN_RATIO 0x9e3779b9
+/* An arbitrary initial parameter */
-/* The golden ration: an arbitrary value */
-#define JHASH_GOLDEN_RATIO 0x9e3779b9
+/* An arbitrary initial parameter */
-+#define JHASH_
INIT_PARAM
0xdeadbeef
++#define JHASH_
GOLDEN_RATIO
0xdeadbeef
/* The most generic version, hashes an arbitrary sequence
* of bytes. No alignment or length assumptions are made about
/* The most generic version, hashes an arbitrary sequence
* of bytes. No alignment or length assumptions are made about
@@
-94,7
+94,7
@@
-
- __jhash_mix(a,b,c);
+ /* Set up the internal state */
-
- __jhash_mix(a,b,c);
+ /* Set up the internal state */
-+ a = b = c = JHASH_
INIT_PARAM
+ length + initval;
++ a = b = c = JHASH_
GOLDEN_RATIO
+ length + initval;
+ /* all but the last block: affect some 32 bits of (a,b,c) */
+ while (length > 12) {
+ /* all but the last block: affect some 32 bits of (a,b,c) */
+ while (length > 12) {
@@
-154,7
+154,7
@@
- c = initval;
- len = length;
+ /* Set up the internal state */
- c = initval;
- len = length;
+ /* Set up the internal state */
-+ a = b = c = JHASH_
INIT_PARAM
+ (length<<2) + initval;
++ a = b = c = JHASH_
GOLDEN_RATIO
+ (length<<2) + initval;
- while (len >= 3) {
+ /* handle most of the key */
- while (len >= 3) {
+ /* handle most of the key */
@@
-202,9
+202,9
@@
- a += JHASH_GOLDEN_RATIO;
- b += JHASH_GOLDEN_RATIO;
- c += initval;
- a += JHASH_GOLDEN_RATIO;
- b += JHASH_GOLDEN_RATIO;
- c += initval;
-+ a += JHASH_
INIT_PARAM
+ initval;
-+ b += JHASH_
INIT_PARAM
+ initval;
-+ c += JHASH_
INIT_PARAM
+ initval;
++ a += JHASH_
GOLDEN_RATIO
+ initval;
++ b += JHASH_
GOLDEN_RATIO
+ initval;
++ c += JHASH_
GOLDEN_RATIO
+ initval;
- __jhash_mix(a, b, c);
+ __jhash_final(a, b, c);
- __jhash_mix(a, b, c);
+ __jhash_final(a, b, c);
This page took
0.034719 seconds
and
4
git commands to generate.