/external/webkit/JavaScriptCore/wtf/ |
StringHashFunctions.h | 31 // http://www.azillionmonkeys.com/qed/hash.html 36 unsigned hash = WTF::stringHashingStartValue; local 42 hash += data[0]; 43 unsigned tmp = (data[1] << 11) ^ hash; 44 hash = (hash << 16) ^ tmp; 46 hash += hash >> 11; 51 hash += data[0]; 52 hash ^= hash << 11 76 unsigned hash = WTF::stringHashingStartValue; local 116 unsigned hash = WTF::stringHashingStartValue; local [all...] |
/external/elfutils/libelf/ |
dl-hash.h | 1 /* Compute hash value for given string according to ELF standard. 30 unsigned int hash = (unsigned int) *iname++; local 33 hash = (hash << 4) + (unsigned int) *iname++; 36 hash = (hash << 4) + (unsigned int) *iname++; 39 hash = (hash << 4) + (unsigned int) *iname++; 42 hash = (hash << 4) + (unsigned int) *iname++ [all...] |
/external/chromium/net/disk_cache/ |
hash.cc | 1 // From http://www.azillionmonkeys.com/qed/hash.html 3 #include "net/disk_cache/hash.h" 22 uint32_t hash = len, tmp; local 33 hash += get16bits(data); 34 tmp = (get16bits(data + 2) << 11) ^ hash; 35 hash = (hash << 16) ^ tmp; 37 hash += hash >> 11; 42 case 3: hash += get16bits(data) [all...] |
/prebuilt/linux-x86/toolchain/i686-linux-glibc2.7-4.4.3/i686-linux/include/c++/4.4.3/backward/ |
hash_fun.h | 1 // 'struct hash' from SGI -*- C++ -*- 66 struct hash { }; struct 78 struct hash<char*> struct 86 struct hash<const char*> struct 94 struct hash<char> struct 102 struct hash<unsigned char> struct 110 struct hash<signed char> struct 118 struct hash<short> struct 126 struct hash<unsigned short> struct 134 struct hash<int struct 142 struct hash<unsigned int> struct 150 struct hash<long> struct 158 struct hash<unsigned long> struct [all...] |
/external/chromium/third_party/icu/source/test/cintltst/ |
chashtst.c | 30 static void _put(UHashtable* hash, 35 static void _get(UHashtable* hash, 39 static void _remove(UHashtable* hash, 104 UHashtable *hash; local 106 hash = uhash_open(hashChars, isEqualChars, NULL, &status); 109 u_errorName(status), hash); 112 if (hash == NULL) { 116 log_verbose("Ok: uhash_open returned 0x%08X\n", hash); 118 _put(hash, one, 1, 0); 119 _put(hash, omega, 24, 0) 154 UHashtable *hash; local 288 UHashtable *hash; local [all...] |
/external/icu4c/test/cintltst/ |
chashtst.c | 30 static void _put(UHashtable* hash, 35 static void _get(UHashtable* hash, 39 static void _remove(UHashtable* hash, 104 UHashtable *hash; local 106 hash = uhash_open(hashChars, isEqualChars, NULL, &status); 109 u_errorName(status), hash); 112 if (hash == NULL) { 116 log_verbose("Ok: uhash_open returned 0x%08X\n", hash); 118 _put(hash, one, 1, 0); 119 _put(hash, omega, 24, 0) 154 UHashtable *hash; local 288 UHashtable *hash; local [all...] |
/external/webkit/WebCore/platform/text/ |
StringHash.h | 33 // The hash() functions on StringHash and CaseFoldingHash do not support 39 // closer to having all the nearly-identical hash functions in one place. 42 static unsigned hash(StringImpl* key) { return key->hash(); } function in struct:WebCore::StringHash 82 static unsigned hash(const RefPtr<StringImpl>& key) { return key->hash(); } function in struct:WebCore::StringHash 88 static unsigned hash(const String& key) { return key.impl()->hash(); } function in struct:WebCore::StringHash 100 // http://www.azillionmonkeys.com/qed/hash.html 101 static unsigned hash(const UChar* data, unsigned length function in class:WebCore::CaseFoldingHash 105 uint32_t hash = WTF::stringHashingStartValue; local 142 static unsigned hash(StringImpl* str) function in class:WebCore::CaseFoldingHash 147 static unsigned hash(const char* str, unsigned length) function in class:WebCore::CaseFoldingHash 155 uint32_t hash = WTF::stringHashingStartValue; local 204 static unsigned hash(const RefPtr<StringImpl>& key) function in class:WebCore::CaseFoldingHash 214 static unsigned hash(const String& key) function in class:WebCore::CaseFoldingHash 218 static unsigned hash(const AtomicString& key) function in class:WebCore::CaseFoldingHash 238 static unsigned hash(unsigned key) { return key; } function in struct:WebCore::AlreadyHashed [all...] |
/external/protobuf/src/google/protobuf/stubs/ |
hash.cc | 33 #include <google/protobuf/stubs/hash.h>
|
/external/clearsilver/util/ |
neo_hash.c | 21 static NEOERR *_hash_resize(NE_HASH *hash); 22 static NE_HASHNODE **_hash_lookup_node (NE_HASH *hash, void *key, UINT32 *hashv); 24 NEOERR *ne_hash_init (NE_HASH **hash, NE_HASH_FUNC hash_func, NE_COMP_FUNC comp_func) 44 *hash = my_hash; 49 void ne_hash_destroy (NE_HASH **hash) 55 if (hash == NULL || *hash == NULL) 58 my_hash = *hash; 73 *hash = NULL; 76 NEOERR *ne_hash_insert(NE_HASH *hash, void *key, void *value [all...] |
/external/dropbear/libtomcrypt/src/hashes/helper/ |
hash_filehandle.c | 15 Hash open files, Tom St Denis 19 Hash data from an open file handle. 20 @param hash The index of the hash you want to use 21 @param in The FILE* handle of the file you want to hash 26 int hash_filehandle(int hash, FILE *in, unsigned char *out, unsigned long *outlen) 40 if ((err = hash_is_valid(hash)) != CRYPT_OK) { 44 if (*outlen < hash_descriptor[hash].hashsize) { 45 *outlen = hash_descriptor[hash].hashsize; 48 if ((err = hash_descriptor[hash].init(&md)) != CRYPT_OK) [all...] |
hash_memory.c | 15 Hash memory helper, Tom St Denis 19 Hash a block of memory and store the digest. 20 @param hash The index of the hash you wish to use 21 @param in The data you wish to hash 22 @param inlen The length of the data to hash (octets) 27 int hash_memory(int hash, const unsigned char *in, unsigned long inlen, unsigned char *out, unsigned long *outlen) 36 if ((err = hash_is_valid(hash)) != CRYPT_OK) { 40 if (*outlen < hash_descriptor[hash].hashsize) { 41 *outlen = hash_descriptor[hash].hashsize [all...] |
/external/wpa_supplicant/tests/ |
test_md4.c | 24 u8 *hash; member in struct:__anon8327 65 u8 hash[16]; local 75 md4_vector(1, addr, len, hash); 76 if (memcmp(hash, tests[i].hash, 16) != 0) { 87 md4_vector(1, addr, len, hash); 88 if (memcmp(hash, tests[i].hash, 16) != 0) {
|
test_md5.c | 24 u8 *hash; member in struct:__anon8328 65 u8 hash[16]; local 75 md5_vector(1, addr, len, hash); 76 if (memcmp(hash, tests[i].hash, 16) != 0) { 87 md5_vector(1, addr, len, hash); 88 if (memcmp(hash, tests[i].hash, 16) != 0) {
|
/external/wpa_supplicant_6/wpa_supplicant/tests/ |
test_md4.c | 24 u8 *hash; member in struct:__anon8554 65 u8 hash[16]; local 75 md4_vector(1, addr, len, hash); 76 if (memcmp(hash, tests[i].hash, 16) != 0) { 87 md4_vector(1, addr, len, hash); 88 if (memcmp(hash, tests[i].hash, 16) != 0) {
|
test_md5.c | 24 u8 *hash; member in struct:__anon8555 65 u8 hash[16]; local 75 md5_vector(1, addr, len, hash); 76 if (memcmp(hash, tests[i].hash, 16) != 0) { 87 md5_vector(1, addr, len, hash); 88 if (memcmp(hash, tests[i].hash, 16) != 0) {
|
/build/tools/droiddoc/templates/assets/ |
jquery-history.js | 15 return msie.getDoc().location.hash; 17 setHash: function(hash) { 21 d.location.hash = hash; 26 var hash = msie.iframe ? msie.getHash() : location.hash; 27 if (hash != currentHash) { 28 currentHash = hash; 30 location.hash = currentHash; 39 add: function(hash) { [all...] |
/external/dropbear/libtomcrypt/src/misc/crypt/ |
crypt_register_hash.c | 15 Register a HASH, Tom St Denis 19 Register a hash with the descriptor table 20 @param hash The hash you wish to register 23 int register_hash(const struct ltc_hash_descriptor *hash) 27 LTC_ARGCHK(hash != NULL); 32 if (XMEMCMP(&hash_descriptor[x], hash, sizeof(struct ltc_hash_descriptor)) == 0) { 41 XMEMCPY(&hash_descriptor[x], hash, sizeof(struct ltc_hash_descriptor));
|
crypt_unregister_hash.c | 15 Unregister a hash, Tom St Denis 19 Unregister a hash from the descriptor table 20 @param hash The hash descriptor to remove 23 int unregister_hash(const struct ltc_hash_descriptor *hash) 27 LTC_ARGCHK(hash != NULL); 32 if (XMEMCMP(&hash_descriptor[x], hash, sizeof(struct ltc_hash_descriptor)) == 0) {
|
/external/stlport/stlport/stl/ |
_hash_fun.h | 40 template <class _Key> struct hash { }; struct 56 struct hash<char*> { struct 64 struct hash<const char*> { struct 71 _STLP_TEMPLATE_NULL struct hash<char> { struct 74 _STLP_TEMPLATE_NULL struct hash<unsigned char> { struct 78 _STLP_TEMPLATE_NULL struct hash<signed char> { struct 82 _STLP_TEMPLATE_NULL struct hash<short> { struct 85 _STLP_TEMPLATE_NULL struct hash<unsigned short> { struct 88 _STLP_TEMPLATE_NULL struct hash<int> { struct 93 _STLP_TEMPLATE_NULL struct hash<unsigned int> struct 103 _STLP_TEMPLATE_NULL struct hash<size_t> { struct 108 _STLP_TEMPLATE_NULL struct hash<long> { struct 111 _STLP_TEMPLATE_NULL struct hash<unsigned long> { struct 116 _STLP_TEMPLATE_NULL struct hash<_STLP_LONG_LONG> { struct 119 _STLP_TEMPLATE_NULL struct hash<unsigned _STLP_LONG_LONG> { struct 125 struct hash<void *> struct [all...] |
/ndk/sources/cxx-stl/stlport/stlport/stl/ |
_hash_fun.h | 40 template <class _Key> struct hash { }; struct 56 struct hash<char*> { struct 64 struct hash<const char*> { struct 71 _STLP_TEMPLATE_NULL struct hash<char> { struct 74 _STLP_TEMPLATE_NULL struct hash<unsigned char> { struct 78 _STLP_TEMPLATE_NULL struct hash<signed char> { struct 82 _STLP_TEMPLATE_NULL struct hash<short> { struct 85 _STLP_TEMPLATE_NULL struct hash<unsigned short> { struct 88 _STLP_TEMPLATE_NULL struct hash<int> { struct 93 _STLP_TEMPLATE_NULL struct hash<unsigned int> struct 103 _STLP_TEMPLATE_NULL struct hash<size_t> { struct 108 _STLP_TEMPLATE_NULL struct hash<long> { struct 111 _STLP_TEMPLATE_NULL struct hash<unsigned long> { struct 116 _STLP_TEMPLATE_NULL struct hash<_STLP_LONG_LONG> { struct 119 _STLP_TEMPLATE_NULL struct hash<unsigned _STLP_LONG_LONG> { struct 125 struct hash<void *> struct [all...] |
/external/chromium/android/ext/ |
fake_hash.h | 11 template <class _Key> struct hash { }; struct in namespace:__gnu_cxx 15 struct hash<_type> { \ 17 return std::hash<_type>(val); \
|
/external/srec/srec/crec/ |
astar_pphash.c | 32 /* initialize the hash with no elements defined */ 34 void hash_init(FixedSizeHash* hash, srec* rec_debug) 37 hash->hashsize = FSH_HASHSIZE; 38 for (i = 0; i < hash->hashsize; i++) 39 hash->items[i] = FSH_NULL; 40 hash->rec = rec_debug; 94 int hash_get(FixedSizeHash* hash, partial_path* parp, void** hval) 99 hkey_index = hkey_index % hash->hashsize; 100 p_return = hash->items[hkey_index]; 105 if (compare_parp(p_return, parp, hash->rec) == 0 [all...] |
/prebuilt/linux-x86/toolchain/i686-linux-glibc2.7-4.4.3/i686-linux/include/c++/4.4.3/tr1_impl/ |
functional_hash.h | 34 /// Class template hash. 35 // Declaration of default hash functor std::tr1::hash. The types for 36 // which std::tr1::hash<T> is well-defined is in clause 6.3.3. of the PDTR. 38 struct hash : public std::unary_function<_Tp, size_t> struct in namespace:std 46 struct hash<_Tp*> : public std::unary_function<_Tp*, size_t> struct in namespace:std 57 hash<_Tp>::operator()(_Tp __val) const \ 80 // Fowler / Noll / Vo (FNV) Hash (type FNV-1a) 81 // (Used by the next specializations of std::tr1::hash.) 88 hash(const char* __first, size_t __length function in struct:std::_Fnv_hash 101 hash(const char* __first, size_t __length) function in struct:std::_Fnv_hash 117 hash(const char* __first, size_t __length) function in struct:std::_Fnv_hash [all...] |
/external/oprofile/libutil/ |
op_string.c | 24 size_t hash = 0; local 26 hash ^= (hash << 16) ^ (hash >> 8) ^ *str; 27 return hash;
|
/external/wpa_supplicant/ |
eap_psk_common.c | 40 u8 hash[aes_block_size]; local 44 aes_128_encrypt_block(kdk, rand_p, hash); 46 hash[aes_block_size - 1] ^= counter; 47 aes_128_encrypt_block(kdk, hash, tek); 48 hash[aes_block_size - 1] ^= counter; 52 hash[aes_block_size - 1] ^= counter; 53 aes_128_encrypt_block(kdk, hash, &msk[i * aes_block_size]); 54 hash[aes_block_size - 1] ^= counter; 59 hash[aes_block_size - 1] ^= counter; 60 aes_128_encrypt_block(kdk, hash, &emsk[i * aes_block_size]) [all...] |