Lines Matching refs:size
18 * optimized for code size and portability, rather than raw speed. But speed
33 uint32_t JenkinsHashMixBytes(uint32_t hash, const uint8_t* bytes, size_t size) {
34 hash = JenkinsHashMix(hash, (uint32_t)size);
36 for (i = 0; i < (size & -4); i += 4) {
40 if (size & 3) {
42 data |= ((size & 3) > 1) ? (bytes[i+1] << 8) : 0;
43 data |= ((size & 3) > 2) ? (bytes[i+2] << 16) : 0;
49 uint32_t JenkinsHashMixShorts(uint32_t hash, const uint16_t* shorts, size_t size) {
50 hash = JenkinsHashMix(hash, (uint32_t)size);
52 for (i = 0; i < (size & -2); i += 2) {
56 if (size & 1) {