nxt_murmur_hash.c (0:a63ceefd6ab0) nxt_murmur_hash.c (39:e7e3deeaa09b)
1
2/*
3 * The code is based on the code by Austin Appleby,
4 * released to the public domain.
5 */
6
7#include <nxt_main.h>
8

--- 23 unchanged lines hidden (view full) ---

32
33 p += 4;
34 len -= 4;
35 }
36
37 switch (len) {
38 case 3:
39 h ^= p[2] << 16;
1
2/*
3 * The code is based on the code by Austin Appleby,
4 * released to the public domain.
5 */
6
7#include <nxt_main.h>
8

--- 23 unchanged lines hidden (view full) ---

32
33 p += 4;
34 len -= 4;
35 }
36
37 switch (len) {
38 case 3:
39 h ^= p[2] << 16;
40 /* Fall through. */
40 case 2:
41 h ^= p[1] << 8;
41 case 2:
42 h ^= p[1] << 8;
43 /* Fall through. */
42 case 1:
43 h ^= p[0];
44 h *= m;
45 }
46
47 h ^= h >> 13;
48 h *= m;
49 h ^= h >> 15;

--- 35 unchanged lines hidden ---
44 case 1:
45 h ^= p[0];
46 h *= m;
47 }
48
49 h ^= h >> 13;
50 h *= m;
51 h ^= h >> 15;

--- 35 unchanged lines hidden ---