Home
last modified time | relevance | path

Searched defs:TestDenseMapInfo (Results 1 – 2 of 2) sorted by relevance

/llvm-project-15.0.7/compiler-rt/lib/sanitizer_common/tests/
H A Dsanitizer_dense_map_test.cpp477 struct TestDenseMapInfo { struct
478 static inline unsigned getEmptyKey() { return ~0; } in getEmptyKey()
479 static inline unsigned getTombstoneKey() { return ~0U - 1; } in getTombstoneKey()
480 static unsigned getHashValue(const unsigned &Val) { return Val * 37U; } in getHashValue()
481 static unsigned getHashValue(const char *Val) { in getHashValue()
484 static bool isEqual(const unsigned &LHS, const unsigned &RHS) { in isEqual()
487 static bool isEqual(const char *LHS, const unsigned &RHS) { in isEqual()
/llvm-project-15.0.7/llvm/unittests/ADT/
H A DDenseMapTest.cpp511 struct TestDenseMapInfo { struct
512 static inline unsigned getEmptyKey() { return ~0; } in getEmptyKey()
513 static inline unsigned getTombstoneKey() { return ~0U - 1; } in getTombstoneKey()
514 static unsigned getHashValue(const unsigned& Val) { return Val * 37U; } in getHashValue()
515 static unsigned getHashValue(const char* Val) { in getHashValue()
518 static bool isEqual(const unsigned& LHS, const unsigned& RHS) { in isEqual()
521 static bool isEqual(const char* LHS, const unsigned& RHS) { in isEqual()