add some testing scripts

This commit is contained in:
2026-08-14 03:29:06 +03:00
parent 7188ac6b4a
commit 01208f4143
11 changed files with 1431 additions and 0 deletions
@@ -0,0 +1,13 @@
unsigned int hash(const char* str) {
unsigned int hash = 0x9e3779b9;
const unsigned char* p = (const unsigned char*)str;
while (*p) {
hash += *p++;
hash += (hash << 10);
hash ^= (hash >> 6);
}
hash += (hash << 3);
hash ^= (hash >> 11);
hash += (hash << 15);
return hash;
}