misc changes
This commit is contained in:
5
code/grime/hashing.odin
Normal file
5
code/grime/hashing.odin
Normal file
@ -0,0 +1,5 @@
|
||||
package grime
|
||||
|
||||
djb8_hash :: #force_inline proc "contextless" ( hash : ^u64, bytes : []byte ) {
|
||||
for value in bytes do (hash^) = (( (hash^) << 8) + (hash^) ) + u64(value)
|
||||
}
|
Reference in New Issue
Block a user