equal
deleted
inserted
replaced
41 |
41 |
42 // utility function copied from java/lang/Integer |
42 // utility function copied from java/lang/Integer |
43 static juint Integer_rotateLeft(juint i, int distance) { |
43 static juint Integer_rotateLeft(juint i, int distance) { |
44 return (i << distance) | (i >> (32 - distance)); |
44 return (i << distance) | (i >> (32 - distance)); |
45 } |
45 } |
46 static juint murmur3_32(const int* data, int len); |
46 static juint murmur3_32(const jint* data, int len); |
47 static juint murmur3_32(juint seed, const int* data, int len); |
47 static juint murmur3_32(juint seed, const jint* data, int len); |
48 |
48 |
49 public: |
49 public: |
50 static juint compute_seed(); |
50 static juint compute_seed(); |
51 static juint murmur3_32(juint seed, const jbyte* data, int len); |
51 static juint murmur3_32(juint seed, const jbyte* data, int len); |
52 static juint murmur3_32(juint seed, const jchar* data, int len); |
52 static juint murmur3_32(juint seed, const jchar* data, int len); |