diff options
author | sergey <sergey@yandex-team.ru> | 2022-02-10 16:47:29 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:47:29 +0300 |
commit | 05f59b2581f074c756adaee6b260014ac3a0c3ec (patch) | |
tree | 9814fbd1c3effac9b8377c5d604b367b14e2db55 /util/digest | |
parent | 5d8d1af4df7f9cd4acc021f069546c30677e7979 (diff) | |
download | ydb-05f59b2581f074c756adaee6b260014ac3a0c3ec.tar.gz |
Restoring authorship annotation for <sergey@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util/digest')
-rw-r--r-- | util/digest/fnv.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/util/digest/fnv.h b/util/digest/fnv.h index 442449a03b..87b41a3de7 100644 --- a/util/digest/fnv.h +++ b/util/digest/fnv.h @@ -1,12 +1,12 @@ #pragma once - + #include <util/system/defaults.h> - + #define FNV32INIT 2166136261U -#define FNV32PRIME 16777619U +#define FNV32PRIME 16777619U #define FNV64INIT ULL(14695981039346656037) -#define FNV64PRIME ULL(1099511628211) - +#define FNV64PRIME ULL(1099511628211) + namespace NFnvPrivate { template <class It> constexpr ui32 FnvHash32(It b, It e, ui32 init) { @@ -22,7 +22,7 @@ namespace NFnvPrivate { while (b != e) { init = (init * FNV64PRIME) ^ (unsigned char)*b++; } - + return init; } |