src/hotspot/share/classfile/altHashing.hpp
changeset 47765 b7c7428eaab9
parent 47659 a8e9aff89f7b
child 53244 9807daeb47c4
equal deleted inserted replaced
47764:029d5efaaa6c 47765:b7c7428eaab9
    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);