From b48be442b1e8ccf6246639b074b610c0f7c5cee3 Mon Sep 17 00:00:00 2001 From: pineappleEA Date: Sat, 6 Feb 2021 02:36:05 +0100 Subject: [PATCH] early-access version 1417 --- README.md | 2 +- src/core/hle/kernel/k_priority_queue.h | 18 +++++++++--------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 9edf4faaa..19051abad 100755 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ yuzu emulator early access ============= -This is the source code for early-access 1416. +This is the source code for early-access 1417. ## Legal Notice diff --git a/src/core/hle/kernel/k_priority_queue.h b/src/core/hle/kernel/k_priority_queue.h index 13d628b85..4aa669d95 100755 --- a/src/core/hle/kernel/k_priority_queue.h +++ b/src/core/hle/kernel/k_priority_queue.h @@ -24,11 +24,11 @@ template concept KPriorityQueueAffinityMask = !std::is_reference_v && requires(T & t) { { t.GetAffinityMask() } ->Common::ConvertibleTo; - {t.SetAffinityMask(std::declval())}; + {t.SetAffinityMask(0)}; - { t.GetAffinity(std::declval()) } + { t.GetAffinity(0) } ->std::same_as; - {t.SetAffinity(std::declval(), std::declval())}; + {t.SetAffinity(0, false)}; {t.SetAll()}; }; @@ -42,11 +42,11 @@ concept KPriorityQueueMember = !std::is_reference_v && requires(T & t) { ->std::same_as; { (typename T::QueueEntry()).GetPrev() } ->std::same_as; - { t.GetPriorityQueueEntry(std::declval()) } + { t.GetPriorityQueueEntry(0) } ->std::same_as; {t.GetAffinityMask()}; - { typename std::remove_cvref::type() } + { std::remove_cvref_t() } ->KPriorityQueueAffinityMask; { t.GetActiveCore() } @@ -55,17 +55,17 @@ concept KPriorityQueueMember = !std::is_reference_v && requires(T & t) { ->Common::ConvertibleTo; }; -template +template requires KPriorityQueueMember class KPriorityQueue { public: - using AffinityMaskType = typename std::remove_cv_t< - typename std::remove_reference().GetAffinityMask())>::type>; + using AffinityMaskType = std::remove_cv_t< + std::remove_reference_t().GetAffinityMask())>>; static_assert(LowestPriority >= 0); static_assert(HighestPriority >= 0); static_assert(LowestPriority >= HighestPriority); static constexpr size_t NumPriority = LowestPriority - HighestPriority + 1; - static constexpr size_t NumCores = _NumCores; + static constexpr size_t NumCores = NumCores_; static constexpr bool IsValidCore(s32 core) { return 0 <= core && core < static_cast(NumCores);