/aosp12/frameworks/compile/mclinker/include/mcld/ADT/ |
H A D | StringHash.h | 48 hash_val = hash_val * a + pKey[i]; 110 hash_val = (hash_val << 4) + pKey[i]; 129 for (uint32_t i = 0; i < pKey.size(); ++i) 130 hash_val = (hash_val * seed) + pKey[i]; 145 for (uint32_t i = 0; i < pKey.size(); ++i) 161 for (uint32_t i = 0; i < pKey.size(); ++i) 176 uint32_t hash_val = pKey.size(); 178 for (uint32_t i = 0; i < pKey.size(); ++i) 194 for (uint32_t i = 0; i < pKey.size(); ++i) 195 hash_val = hash_val << 7 ^ pKey[i]; [all …]
|
H A D | HashTable.tcc | 65 EntryFactoryTy>::key_type& pKey, in insert() argument 67 unsigned int index = BaseTy::lookUpBucketFor(pKey); in insert() 81 entry = bucket.Entry = m_EntryFactory.produce(pKey); in insert() 97 EntryFactoryTy>::key_type& pKey) { in erase() argument 99 if ((index = BaseTy::findKey(pKey)) == -1) in erase() 121 if ((index = BaseTy::findKey(pKey)) == -1) in find() 135 if ((index = BaseTy::findKey(pKey)) == -1) in find() 148 const_chain_iterator bucket, bEnd = end(pKey); in count() 150 for (bucket = begin(pKey); bucket != bEnd; ++bucket) in count() 233 return chain_iterator(this, pKey, 0x0); in begin() [all …]
|
H A D | HashTable.h | 71 entry_type* insert(const key_type& pKey, bool& pExist); 74 size_type erase(const key_type& pKey); 79 iterator find(const key_type& pKey); 83 const_iterator find(const key_type& pKey) const; 85 size_type count(const key_type& pKey) const; 105 chain_iterator begin(const key_type& pKey); 106 chain_iterator end(const key_type& pKey); 107 const_chain_iterator begin(const key_type& pKey) const; 108 const_chain_iterator end(const key_type& pKey) const;
|
H A D | HashEntry.tcc | 13 HashEntry<KeyType, ValueType, KeyCompare>::HashEntry(const KeyType& pKey) in HashEntry() argument 14 : m_Key(pKey) { in HashEntry() 22 bool HashEntry<KeyType, ValueType, KeyCompare>::compare(const KeyType& pKey) { in compare() argument 24 return comparator(m_Key, pKey); in compare() 44 const typename EntryFactory<HashEntryTy>::key_type& pKey) { in produce() argument 45 return new HashEntryTy(pKey); in produce()
|
H A D | StringEntry.tcc | 18 StringEntry<DataType>::StringEntry(const StringEntry::key_type& pKey) in StringEntry() argument 19 : m_KeyLen(pKey.size()) { in StringEntry() 44 const typename StringEntryFactory<DataType>::key_type& pKey) { in produce() argument 46 malloc(sizeof(StringEntry<DataType>) + pKey.size() + 1)); in produce() 51 size_t len = pKey.size(); in produce() 53 std::memcpy(result->m_Key, pKey.data(), len); in produce()
|
H A D | HashBase.tcc | 114 const typename HashTableImpl<HashEntryTy, HashFunctionTy>::key_type& pKey) { in lookUpBucketFor() argument 120 unsigned int full_hash = m_Hasher(pKey); in lookUpBucketFor() 145 if (bucket.Entry->compare(pKey)) { in lookUpBucketFor() 158 const typename HashTableImpl<HashEntryTy, HashFunctionTy>::key_type& pKey) in findKey() 163 unsigned int full_hash = m_Hasher(pKey); in findKey() 178 if (bucket.Entry->compare(pKey)) in findKey()
|
H A D | HashEntry.h | 44 explicit HashEntry(const KeyType& pKey); 58 bool compare(const key_type& pKey); 76 HashEntryTy* produce(const key_type& pKey);
|
H A D | HashIterator.h | 31 ChainIteratorBase(HashTableImplTy* pTable, const key_type& pKey) in ChainIteratorBase() argument 33 m_HashValue = pTable->hash()(pKey); in ChainIteratorBase() 41 if (bucket.Entry->compare(pKey)) { in ChainIteratorBase() 271 const typename IteratorBase::key_type& pKey, in HashIterator() argument 273 : IteratorBase(pTable, pKey) {} in HashIterator()
|
H A D | HashEntryFactory.h | 25 entry_type* produce(const key_type& pKey) { in produce() argument 26 return HashEntryTy::Create(pKey); in produce()
|
H A D | StringEntry.h | 53 explicit StringEntry(const key_type& pKey); 96 explicit StringEntry(const key_type& pKey); 119 StringEntry<DataType>* produce(const key_type& pKey);
|
H A D | HashBase.h | 100 unsigned int lookUpBucketFor(const key_type& pKey); 104 int findKey(const key_type& pKey) const;
|
/aosp12/frameworks/compile/mclinker/include/mcld/Target/ |
H A D | KeyEntryMap.h | 89 const KeyType& pKey) const { in lookUp() argument 92 if (mapping->key == &pKey) { in lookUp() 104 if (mapping->key == &pKey) { in lookUp() 114 const KeyType& pKey) const { in lookUpFirstEntry() argument 117 if (mapping->key == &pKey) { in lookUpFirstEntry() 127 const KeyType& pKey) { in lookUpFirstEntry() argument 130 if (mapping->key == &pKey) { in lookUpFirstEntry() 140 const KeyType& pKey) const { in lookUpSecondEntry() argument 153 const KeyType& pKey) { in lookUpSecondEntry() argument 168 mapping.key = &pKey; in record() [all …]
|
H A D | GNULDBackend.h | 502 size_t operator()(const LDSymbol* pKey) const { in operator() 503 return (unsigned((uintptr_t)pKey) >> 4) ^ in operator() 504 (unsigned((uintptr_t)pKey) >> 9); in operator()
|
/aosp12/frameworks/compile/mclinker/include/mcld/Support/ |
H A D | UniqueGCFactory.h | 40 DataType* find(const KeyType& pKey) { in find() argument 41 typename KeyMap::iterator dataIter = f_KeyMap.find(pKey); in find() 47 const DataType* find(const KeyType& pKey) const { in find() argument 48 typename KeyMap::const_iterator dataIter = f_KeyMap.find(pKey); in find() 54 DataType* produce(const KeyType& pKey, bool& pExist) { in produce() argument 55 typename KeyMap::iterator dataIter = f_KeyMap.find(pKey); in produce() 62 f_KeyMap.insert(std::make_pair(pKey, data)); in produce() 67 DataType* produce(const KeyType& pKey, const DataType& pValue, bool& pExist) { in produce() argument 68 typename KeyMap::iterator dataIter = f_KeyMap.find(pKey); in produce() 75 f_KeyMap.insert(std::make_pair(pKey, data)); in produce()
|
/aosp12/frameworks/compile/mclinker/include/mcld/LD/ |
H A D | Archive.h | 58 size_t operator()(uint32_t pKey) const { in operator() 59 pKey ^= pKey >> 16; in operator() 60 pKey *= 0x85ebca6b; in operator() 61 pKey ^= pKey >> 13; in operator() 62 pKey *= 0xc2b2ae35; in operator() 63 pKey ^= pKey >> 16; in operator() 64 return pKey; in operator()
|
H A D | SectionSymbolSet.h | 56 size_t operator()(const LDSection* pKey) const { in operator() 57 return (unsigned((uintptr_t)pKey) >> 4) ^ in operator() 58 (unsigned((uintptr_t)pKey) >> 9); in operator()
|
H A D | ResolveInfo.h | 79 static ResolveInfo* Create(const key_type& pKey); 192 bool compare(const key_type& pKey);
|
/aosp12/frameworks/compile/mclinker/lib/LD/ |
H A D | ResolveInfo.cpp | 213 bool ResolveInfo::compare(const ResolveInfo::key_type& pKey) { in compare() argument 215 if (length != pKey.size()) in compare() 217 return (std::memcmp(m_Name, pKey.data(), length) == 0); in compare() 236 ResolveInfo* ResolveInfo::Create(const ResolveInfo::key_type& pKey) { in Create() argument 238 static_cast<ResolveInfo*>(malloc(sizeof(ResolveInfo) + pKey.size() + 1)); in Create() 243 std::memcpy(info->m_Name, pKey.data(), pKey.size()); in Create() 244 info->m_Name[pKey.size()] = '\0'; in Create() 246 info->m_BitField |= (pKey.size() << ResolveInfo::NAME_LENGTH_OFFSET); in Create()
|
/aosp12/frameworks/wilhelm/src/itf/ |
H A D | IMetadataExtraction.cpp | 72 SLuint32 index, SLuint32 keySize, SLMetadataInfo *pKey) in IMetadataExtraction_GetKey() argument 76 if (NULL == pKey) { in IMetadataExtraction_GetKey() 83 index, keySize, pKey); in IMetadataExtraction_GetKey() 147 SLuint32 keySize, const void *pKey, SLuint32 keyEncoding, in IMetadataExtraction_AddKeyFilter() argument 152 if (NULL == pKey || NULL == pValueLangCountry || (filterMask & ~(SL_METADATA_FILTER_KEY | in IMetadataExtraction_AddKeyFilter() 159 thiz->mKey = pKey; in IMetadataExtraction_AddKeyFilter()
|
/aosp12/frameworks/compile/mclinker/unittests/ |
H A D | HashTableTest.cpp | 47 size_t operator()(const int* pKey) const { in operator ()() 48 return (unsigned((uintptr_t)pKey) >> 4) ^ (unsigned((uintptr_t)pKey) >> 9); in operator ()() 53 size_t operator()(int pKey) const { return pKey; } in operator ()() 57 size_t operator()(int pKey) const { return pKey % 3; } in operator ()() 283 size_t operator()(int pKey) const { return 10; } in operator ()()
|
/aosp12/frameworks/compile/mclinker/lib/ADT/ |
H A D | StringEntry.cpp | 19 StringEntry<llvm::StringRef>::StringEntry(const StringEntry::key_type& pKey) { in StringEntry() argument
|
/aosp12/frameworks/wilhelm/src/android/ |
H A D | AudioPlayer_to_android.h | 104 SLuint32 index, SLuint32 size, SLMetadataInfo *pKey);
|
H A D | AudioPlayer_to_android.cpp | 2123 SLuint32 index, SLuint32 size, SLMetadataInfo *pKey) { in android_audioPlayer_metadata_getKey() argument 2136 (char*)pKey->data)))) { in android_audioPlayer_metadata_getKey() 2140 pKey->encoding = SL_CHARACTERENCODING_UTF8; in android_audioPlayer_metadata_getKey() 2141 memcpy((char *) pKey->langCountry, "en", 3); in android_audioPlayer_metadata_getKey() 2142 pKey->size = strlen((char*)pKey->data) + 1; in android_audioPlayer_metadata_getKey()
|
/aosp12/frameworks/wilhelm/include/OMXAL/ |
H A D | OpenMAXAL.h | 1325 XAMetadataInfo * pKey 1341 const void * pKey, 1362 XAMetadataInfo * pKey, 1394 XAMetadataInfo * pKey 1405 XAMetadataInfo * pKey,
|
/aosp12/frameworks/wilhelm/include/SLES/ |
H A D | OpenSLES.h | 779 SLMetadataInfo *pKey 795 const void *pKey,
|