diff options
author | Lioncash <mathew1800@gmail.com> | 2021-02-04 21:11:19 +0100 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2021-02-04 21:18:58 +0100 |
commit | b944edc85d3d017d5cf5da7fdfdf8fafbf5604a3 (patch) | |
tree | eca41893a6b61938804d1d4e35a26b1e7ef2a436 /src/core | |
parent | k_priority_queue: Simplify affinity mask type alias (diff) | |
download | yuzu-b944edc85d3d017d5cf5da7fdfdf8fafbf5604a3.tar yuzu-b944edc85d3d017d5cf5da7fdfdf8fafbf5604a3.tar.gz yuzu-b944edc85d3d017d5cf5da7fdfdf8fafbf5604a3.tar.bz2 yuzu-b944edc85d3d017d5cf5da7fdfdf8fafbf5604a3.tar.lz yuzu-b944edc85d3d017d5cf5da7fdfdf8fafbf5604a3.tar.xz yuzu-b944edc85d3d017d5cf5da7fdfdf8fafbf5604a3.tar.zst yuzu-b944edc85d3d017d5cf5da7fdfdf8fafbf5604a3.zip |
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/hle/kernel/k_priority_queue.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/core/hle/kernel/k_priority_queue.h b/src/core/hle/kernel/k_priority_queue.h index 103dafd48..4aa669d95 100644 --- a/src/core/hle/kernel/k_priority_queue.h +++ b/src/core/hle/kernel/k_priority_queue.h @@ -24,11 +24,11 @@ template <typename T> concept KPriorityQueueAffinityMask = !std::is_reference_v<T> && requires(T & t) { { t.GetAffinityMask() } ->Common::ConvertibleTo<u64>; - {t.SetAffinityMask(std::declval<u64>())}; + {t.SetAffinityMask(0)}; - { t.GetAffinity(std::declval<int32_t>()) } + { t.GetAffinity(0) } ->std::same_as<bool>; - {t.SetAffinity(std::declval<int32_t>(), std::declval<bool>())}; + {t.SetAffinity(0, false)}; {t.SetAll()}; }; @@ -42,11 +42,11 @@ concept KPriorityQueueMember = !std::is_reference_v<T> && requires(T & t) { ->std::same_as<T*>; { (typename T::QueueEntry()).GetPrev() } ->std::same_as<T*>; - { t.GetPriorityQueueEntry(std::declval<s32>()) } + { t.GetPriorityQueueEntry(0) } ->std::same_as<typename T::QueueEntry&>; {t.GetAffinityMask()}; - { typename std::remove_cvref<decltype(t.GetAffinityMask())>::type() } + { std::remove_cvref_t<decltype(t.GetAffinityMask())>() } ->KPriorityQueueAffinityMask; { t.GetActiveCore() } |