diff options
| author | Takoroka <137927095+Takoroka@users.noreply.github.com> | 2026-10-29 15:56:45 -0400 |
|---|---|---|
| committer | Takoroka <137927095+Takoroka@users.noreply.github.com> | 2026-10-29 20:49:48 -0400 |
| commit | d327881c44ada520d6ea939af59bdd420906b99f (patch) | |
| tree | a7dcb3b06579cce4d3bb51780b69043842413dd7 /src/yuzu_cmd/nx2_sampler.cpp | |
| parent | 72fc31f44b954f8e0ebf1a36c2c8565eec83be3a (diff) | |
build: fixes for clang-cl
- (std::min)/(std::max) where windows.h's macros are visible
- LAMBDA_FORCEINLINE: always_inline under clang (clang-cl defines
_MSC_VER but rejects [[msvc::forceinline]] on lambdas)
- ImageBase::FindView: find_if, as MSVC's STL takes its vectorized find
for ImageViewInfo under clang-cl and fails a size assertion
- parentheses for -Wlogical-op-parentheses in the Ampere lowering
Diffstat (limited to 'src/yuzu_cmd/nx2_sampler.cpp')
| -rw-r--r-- | src/yuzu_cmd/nx2_sampler.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/yuzu_cmd/nx2_sampler.cpp b/src/yuzu_cmd/nx2_sampler.cpp index c01b812650..1488a3a078 100644 --- a/src/yuzu_cmd/nx2_sampler.cpp +++ b/src/yuzu_cmd/nx2_sampler.cpp @@ -240,9 +240,9 @@ void Report(const std::vector<Target>& targets, const std::vector<Sample>& sampl } std::sort(sorted.rbegin(), sorted.rend()); std::fprintf(file, "-- %s\n", title); - for (size_t i = 0; i < std::min(limit, sorted.size()); ++i) { + for (size_t i = 0; i < (std::min)(limit, sorted.size()); ++i) { std::fprintf(file, "%6u %5.1f%% %s\n", sorted[i].first, - 100.0 * sorted[i].first / std::max(total, 1U), + 100.0 * sorted[i].first / (std::max)(total, 1U), sorted[i].second.c_str()); } }; |
