misc changes

mostly added kt1l from watl exercise
This commit is contained in:
2025-08-07 10:53:35 -04:00
parent 3769413a50
commit 73bfdb63ea
12 changed files with 128 additions and 40 deletions

View File

@@ -4,6 +4,6 @@ djb8_hash_32 :: #force_inline proc "contextless" ( hash : ^u32, bytes : []byte )
for value in bytes do (hash^) = (( (hash^) << 8) + (hash^) ) + u32(value)
}
djb8_hash :: #force_inline proc "contextless" ( hash : ^u64, bytes : []byte ) {
hash64_djb8 :: #force_inline proc "contextless" ( hash : ^u64, bytes : []byte ) {
for value in bytes do (hash^) = (( (hash^) << 8) + (hash^) ) + u64(value)
}