mirror of
https://git.eden-emu.dev/eden-emu/eden
synced 2026-05-19 18:37:04 +02:00
fx
This commit is contained in:
parent
ea33ae9853
commit
30bc1b455e
1 changed files with 2 additions and 6 deletions
|
|
@ -12,8 +12,8 @@
|
||||||
#include <tuple>
|
#include <tuple>
|
||||||
#include <ankerl/unordered_dense.h>
|
#include <ankerl/unordered_dense.h>
|
||||||
|
|
||||||
|
#include "dynarmic/mcl/bit.hpp"
|
||||||
#include "dynarmic/common/common_types.h"
|
#include "dynarmic/common/common_types.h"
|
||||||
|
|
||||||
#include "dynarmic/backend/exception_handler.h"
|
#include "dynarmic/backend/exception_handler.h"
|
||||||
#include "dynarmic/ir/location_descriptor.h"
|
#include "dynarmic/ir/location_descriptor.h"
|
||||||
|
|
||||||
|
|
@ -27,13 +27,9 @@ constexpr size_t xmrx(size_t x) noexcept {
|
||||||
x ^= mcl::bit::rotate_right(x, 47) ^ mcl::bit::rotate_right(x, 23);
|
x ^= mcl::bit::rotate_right(x, 47) ^ mcl::bit::rotate_right(x, 23);
|
||||||
return x;
|
return x;
|
||||||
}
|
}
|
||||||
template<typename T>
|
|
||||||
struct avalanche_xmrx {
|
|
||||||
size_t operator()(const T& value) const noexcept { return xmrx(std::hash<T>{}(value)); }
|
|
||||||
};
|
|
||||||
|
|
||||||
struct DoNotFastmemMarkerHash {
|
struct DoNotFastmemMarkerHash {
|
||||||
size_t operator()(const DoNotFastmemMarker& value) const noexcept {
|
[[nodiscard]] constexpr size_t operator()(const DoNotFastmemMarker& value) const noexcept {
|
||||||
return xmrx(std::get<0>(value).Value() ^ u64(std::get<1>(value)));
|
return xmrx(std::get<0>(value).Value() ^ u64(std::get<1>(value)));
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue