diff options
Diffstat (limited to 'src/common/cityhash.h')
| -rw-r--r-- | src/common/cityhash.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/common/cityhash.h b/src/common/cityhash.h index bcebdb150..4b94f8e18 100644 --- a/src/common/cityhash.h +++ b/src/common/cityhash.h | |||
| @@ -63,7 +63,7 @@ | |||
| 63 | 63 | ||
| 64 | #include <utility> | 64 | #include <utility> |
| 65 | #include <stdint.h> | 65 | #include <stdint.h> |
| 66 | #include <stdlib.h> // for size_t. | 66 | #include <stdlib.h> // for std::size_t. |
| 67 | 67 | ||
| 68 | namespace Common { | 68 | namespace Common { |
| 69 | 69 | ||
| @@ -77,22 +77,22 @@ inline uint64_t Uint128High64(const uint128& x) { | |||
| 77 | } | 77 | } |
| 78 | 78 | ||
| 79 | // Hash function for a byte array. | 79 | // Hash function for a byte array. |
| 80 | uint64_t CityHash64(const char* buf, size_t len); | 80 | uint64_t CityHash64(const char* buf, std::size_t len); |
| 81 | 81 | ||
| 82 | // Hash function for a byte array. For convenience, a 64-bit seed is also | 82 | // Hash function for a byte array. For convenience, a 64-bit seed is also |
| 83 | // hashed into the result. | 83 | // hashed into the result. |
| 84 | uint64_t CityHash64WithSeed(const char* buf, size_t len, uint64_t seed); | 84 | uint64_t CityHash64WithSeed(const char* buf, std::size_t len, uint64_t seed); |
| 85 | 85 | ||
| 86 | // Hash function for a byte array. For convenience, two seeds are also | 86 | // Hash function for a byte array. For convenience, two seeds are also |
| 87 | // hashed into the result. | 87 | // hashed into the result. |
| 88 | uint64_t CityHash64WithSeeds(const char* buf, size_t len, uint64_t seed0, uint64_t seed1); | 88 | uint64_t CityHash64WithSeeds(const char* buf, std::size_t len, uint64_t seed0, uint64_t seed1); |
| 89 | 89 | ||
| 90 | // Hash function for a byte array. | 90 | // Hash function for a byte array. |
| 91 | uint128 CityHash128(const char* s, size_t len); | 91 | uint128 CityHash128(const char* s, std::size_t len); |
| 92 | 92 | ||
| 93 | // Hash function for a byte array. For convenience, a 128-bit seed is also | 93 | // Hash function for a byte array. For convenience, a 128-bit seed is also |
| 94 | // hashed into the result. | 94 | // hashed into the result. |
| 95 | uint128 CityHash128WithSeed(const char* s, size_t len, uint128 seed); | 95 | uint128 CityHash128WithSeed(const char* s, std::size_t len, uint128 seed); |
| 96 | 96 | ||
| 97 | // Hash 128 input bits down to 64 bits of output. | 97 | // Hash 128 input bits down to 64 bits of output. |
| 98 | // This is intended to be a reasonably good hash function. | 98 | // This is intended to be a reasonably good hash function. |