projects
/
YACASL2.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
「make check」でのテストが、コマンド更新時だけに実行されるよう修正
[YACASL2.git]
/
src
/
hash.c
1
/* ハッシュ値を取得する */
2
unsigned hash(const char *key, int size){
3
unsigned hashval;
4
5
for(hashval = 0; *key != '\0'; key++){
6
hashval = *key + 31 * hashval;
7
}
8
return hashval % size;
9
}