Lines Matching refs:hash
45 static unsigned long rotate_xor(unsigned long hash, const void *area,
51 for (i = 0; i < size / sizeof(hash); i++) {
53 hash = (hash << ((sizeof(hash) * 8) - 7)) | (hash >> 7);
54 hash ^= ptr[i];
57 return hash;
63 unsigned long hash = 0;
65 hash = rotate_xor(hash, build_str, sizeof(build_str));
66 hash = rotate_xor(hash, boot_params, sizeof(*boot_params));
68 return hash;