public
/
ack.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
622530a
)
changed hash function
author
ceriel
<none@none>
Sat, 7 Feb 1987 00:14:51 +0000
(
00:14
+0000)
committer
ceriel
<none@none>
Sat, 7 Feb 1987 00:14:51 +0000
(
00:14
+0000)
util/topgen/hash.c
patch
|
blob
|
history
diff --git
a/util/topgen/hash.c
b/util/topgen/hash.c
index
c8c4582
..
f0665e9
100644
(file)
--- a/
util/topgen/hash.c
+++ b/
util/topgen/hash.c
@@
-23,8
+23,8
@@
hash(string) char *string; {
if (strcmp(string,"ANY") == 0) return 128;
for (sum=i=0,p=string;*p;i += 3)
- sum += (*p++)<<(i&0
7
);
- return sum % 12
7
;
+ sum += (*p++)<<(i&0
3
);
+ return sum % 12
8
;
}