Ed_
cb6053395c
* Add back proper batching (busted the rendering for it though..) * Some reogonzation of definitions and procedure args * CURRENTLY BROKEN: Something went wrong with the calculations for text positioning..
10 lines
333 B
Odin
10 lines
333 B
Odin
package grime
|
|
|
|
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 ) {
|
|
for value in bytes do (hash^) = (( (hash^) << 8) + (hash^) ) + u64(value)
|
|
}
|