diff options
| author | gingerBill <bill@gingerbill.org> | 2022-11-29 11:55:01 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2022-11-29 11:55:01 +0000 |
| commit | dcf2c438633e8a59ccf724ddb6bfecad5204116e (patch) | |
| tree | f3fd7fa7dd0b44342fc25af573aa4c4df0448efc | |
| parent | 0c25f7cdc5bdf34d7b0941785579eea2d50a279c (diff) | |
Add aliases for fnv* no_a forms
| -rw-r--r-- | core/hash/hash.odin | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/core/hash/hash.odin b/core/hash/hash.odin index 37c15b994..176d17141 100644 --- a/core/hash/hash.odin +++ b/core/hash/hash.odin @@ -82,6 +82,9 @@ fnv32_no_a :: proc(data: []byte, seed := u32(0x811c9dc5)) -> u32 { return h } +fnv32 :: fnv32_no_a // NOTE(bill): Not a fan of these aliases but seems necessary +fnv64 :: fnv64_no_a // NOTE(bill): Not a fan of these aliases but seems necessary + // If you have a choice, prefer fnv64a @(optimization_mode="speed") fnv64_no_a :: proc(data: []byte, seed := u64(0xcbf29ce484222325)) -> u64 { @@ -91,7 +94,6 @@ fnv64_no_a :: proc(data: []byte, seed := u64(0xcbf29ce484222325)) -> u64 { } return h } - @(optimization_mode="speed") fnv32a :: proc(data: []byte, seed := u32(0x811c9dc5)) -> u32 { h: u32 = seed |