Home
last modified time | relevance | path

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

/llvm-project/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/llvm/unittests/ADT/
H A DDenseMapTest.cpp553 struct TestDenseMapInfo { struct
554 static inline unsigned getEmptyKey() { return ~0; } in getEmptyKey()
555 static inline unsigned getTombstoneKey() { return ~0U - 1; } in getTombstoneKey()
556 static unsigned getHashValue(const unsigned& Val) { return Val * 37U; } in getHashValue()
557 static unsigned getHashValue(const char* Val) { in getHashValue()
560 static bool isEqual(const unsigned& LHS, const unsigned& RHS) { in isEqual()
563 static bool isEqual(const char* LHS, const unsigned& RHS) { in isEqual()