/ API. */
| 301 | /******************************************************************************/ |
| 302 | /* API. */ |
| 303 | static inline void |
| 304 | hash(const void *key, size_t len, const uint32_t seed, size_t r_hash[2]) { |
| 305 | assert(len <= INT_MAX); /* Unfortunate implementation limitation. */ |
| 306 | |
| 307 | #if (LG_SIZEOF_PTR == 3 && !defined(JEMALLOC_BIG_ENDIAN)) |
| 308 | hash_x64_128(key, (int)len, seed, (uint64_t *)r_hash); |
| 309 | #else |
| 310 | { |
| 311 | uint64_t hashes[2]; |
| 312 | hash_x86_128(key, (int)len, seed, hashes); |
| 313 | r_hash[0] = (size_t)hashes[0]; |
| 314 | r_hash[1] = (size_t)hashes[1]; |
| 315 | } |
| 316 | #endif |
| 317 | } |
| 318 | |
| 319 | #endif /* JEMALLOC_INTERNAL_HASH_H */ |
no test coverage detected