mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-12 05:56:28 +00:00
What's better than fixing and simplifying broken hash functions?
Deleting them because they aren't used. =D Yell if you need these, I'm happy to instead replace them with nice uses of the new infrastructure. llvm-svn: 152219
This commit is contained in:
parent
2ac287af28
commit
d731be046b
@ -260,15 +260,6 @@ public:
|
||||
}
|
||||
BecameZero = allzero;
|
||||
}
|
||||
|
||||
// Get a hash value for this element;
|
||||
uint64_t getHashValue() const {
|
||||
uint64_t HashVal = 0;
|
||||
for (unsigned i = 0; i < BITWORDS_PER_ELEMENT; ++i) {
|
||||
HashVal ^= Bits[i];
|
||||
}
|
||||
return HashVal;
|
||||
}
|
||||
};
|
||||
|
||||
template <unsigned ElementSize = 128>
|
||||
@ -809,18 +800,6 @@ public:
|
||||
iterator end() const {
|
||||
return iterator(this, true);
|
||||
}
|
||||
|
||||
// Get a hash value for this bitmap.
|
||||
uint64_t getHashValue() const {
|
||||
uint64_t HashVal = 0;
|
||||
for (ElementListConstIter Iter = Elements.begin();
|
||||
Iter != Elements.end();
|
||||
++Iter) {
|
||||
HashVal ^= Iter->index();
|
||||
HashVal ^= Iter->getHashValue();
|
||||
}
|
||||
return HashVal;
|
||||
}
|
||||
};
|
||||
|
||||
// Convenience functions to allow Or and And without dereferencing in the user
|
||||
|
Loading…
Reference in New Issue
Block a user