mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-08-03 06:40:18 +00:00
Put std::hash specialization out of std
This commit is contained in:
parent
a4ad0a9468
commit
d6420b8803
1 changed files with 9 additions and 12 deletions
|
@ -396,12 +396,10 @@ namespace rsx
|
|||
};
|
||||
} // namespace rsx
|
||||
|
||||
namespace std
|
||||
template <typename Traits>
|
||||
struct std::hash<rsx::texture_cache_predictor_key<Traits>>
|
||||
{
|
||||
template <typename traits>
|
||||
struct hash<rsx::texture_cache_predictor_key<traits>>
|
||||
{
|
||||
usz operator()(const rsx::texture_cache_predictor_key<traits>& k) const
|
||||
usz operator()(const rsx::texture_cache_predictor_key<Traits>& k) const
|
||||
{
|
||||
usz result = std::hash<utils::address_range>{}(k.cpu_range);
|
||||
result ^= static_cast<usz>(k.format);
|
||||
|
@ -409,4 +407,3 @@ namespace std
|
|||
return result;
|
||||
}
|
||||
};
|
||||
} // namespace std
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue