src/share/vm/classfile/altHashing.hpp

changeset 10009
8adf45218add
parent 10008
fd3484fadbe3
child 10015
eb7ce841ccec
equal deleted inserted replaced
10008:fd3484fadbe3 10009:8adf45218add
37 // For the seed computation 37 // For the seed computation
38 static uint64_t halfsiphash_64(const uint32_t* data, int len); 38 static uint64_t halfsiphash_64(const uint32_t* data, int len);
39 static uint64_t halfsiphash_64(uint64_t seed, const uint32_t* data, int len); 39 static uint64_t halfsiphash_64(uint64_t seed, const uint32_t* data, int len);
40 #ifndef PRODUCT 40 #ifndef PRODUCT
41 // Hashing functions used for internal testing 41 // Hashing functions used for internal testing
42 static void testHalfsiphash_64_ByteArray(); 42 static void testHalfsiphash_32_ByteArray();
43 static void testHalfsiphash_64_CharArray(); 43 static void testHalfsiphash_32_CharArray();
44 static void testHalfsiphash_64_FromReference(); 44 static void testHalfsiphash_64_FromReference();
45 #endif // PRODUCT 45 #endif // PRODUCT
46 public: 46 public:
47 static uint64_t compute_seed(); 47 static uint64_t compute_seed();
48 48
49 // For Symbols 49 // For Symbols
50 static uint64_t halfsiphash_64(uint64_t seed, const int8_t* data, int len); 50 static uint32_t halfsiphash_32(uint64_t seed, const uint8_t* data, int len);
51 // For Strings 51 // For Strings
52 static uint64_t halfsiphash_64(uint64_t seed, const uint16_t* data, int len); 52 static uint32_t halfsiphash_32(uint64_t seed, const uint16_t* data, int len);
53 NOT_PRODUCT(static void test_alt_hash();) 53 NOT_PRODUCT(static void test_alt_hash();)
54 }; 54 };
55 #endif // SHARE_VM_CLASSFILE_ALTHASHING_HPP 55 #endif // SHARE_VM_CLASSFILE_ALTHASHING_HPP

mercurial