mirror of
https://git.suyu.dev/suyu/dynarmic.git
synced 2026-03-07 18:36:27 +00:00
emit_x64: Use boost::icl::interval_map to speed up ranged invalidation
This commit is contained in:
@@ -101,6 +101,12 @@ std::ostream& operator<<(std::ostream& o, const LocationDescriptor& descriptor);
|
||||
|
||||
namespace std {
|
||||
template <>
|
||||
struct less<Dynarmic::IR::LocationDescriptor> {
|
||||
bool operator()(const Dynarmic::IR::LocationDescriptor& x, const Dynarmic::IR::LocationDescriptor& y) const {
|
||||
return x.UniqueHash() < y.UniqueHash();
|
||||
}
|
||||
};
|
||||
template <>
|
||||
struct hash<Dynarmic::IR::LocationDescriptor> {
|
||||
size_t operator()(const Dynarmic::IR::LocationDescriptor& x) const {
|
||||
return std::hash<u64>()(x.UniqueHash());
|
||||
|
||||
Reference in New Issue
Block a user