int ELFHash(char *str){
int hash = 0;
long x =0;
while (*str){
hash = (hash << 4) + *str++;
if((x = (hash & 0xF0000000L)) != 0){
hash ^= (x >> 24);
hash &= ~x;
}
}
int result = (hash & 0x7FFFFFFF) % number;
return result;
}
int hash = 0;
long x =0;
while (*str){
hash = (hash << 4) + *str++;
if((x = (hash & 0xF0000000L)) != 0){
hash ^= (x >> 24);
hash &= ~x;
}
}
int result = (hash & 0x7FFFFFFF) % number;
return result;
}