Lines Matching refs:hash
56 #define Q_SET_HASH(q, hash) do { (q)[0] = (hash); } while (0) argument
60 #define Q_SET_HASH(q, hash) do { (q)[0] = (hash); (q)[1] = (hash) >> 8; } while (0) argument
62 #error unimplemented qstr hash decoding
91 mp_uint_t hash = 5381; in qstr_compute_hash() local
93 hash = ((hash << 5) + hash) ^ (*data); // hash * 33 ^ data in qstr_compute_hash()
95 hash &= Q_HASH_MASK; in qstr_compute_hash()
97 if (hash == 0) { in qstr_compute_hash()
98 hash++; in qstr_compute_hash()
100 return hash; in qstr_compute_hash()
248 mp_uint_t hash = qstr_compute_hash((const byte *)str, len); in qstr_from_strn() local
249 Q_SET_HASH(q_ptr, hash); in qstr_from_strn()