diff options
| author | 2022-01-26 16:29:13 -0500 | |
|---|---|---|
| committer | 2022-01-26 16:29:15 -0500 | |
| commit | f6a049337ec17dee986e28fc050ddbe55bd2ac70 (patch) | |
| tree | 5ed1c14b66c6ff409314c49918e70dea70c22450 /src/video_core | |
| parent | Merge pull request #7780 from lioncash/macro (diff) | |
| download | yuzu-f6a049337ec17dee986e28fc050ddbe55bd2ac70.tar.gz yuzu-f6a049337ec17dee986e28fc050ddbe55bd2ac70.tar.xz yuzu-f6a049337ec17dee986e28fc050ddbe55bd2ac70.zip | |
common/xbyak_api: Make BuildRegSet() constexpr
This allows us to eliminate any static constructors that would have been
emitted due to the function not being constexpr.
Diffstat (limited to 'src/video_core')
| -rw-r--r-- | src/video_core/macro/macro_jit_x64.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video_core/macro/macro_jit_x64.cpp b/src/video_core/macro/macro_jit_x64.cpp index 924c9fe5c..47b28ad16 100644 --- a/src/video_core/macro/macro_jit_x64.cpp +++ b/src/video_core/macro/macro_jit_x64.cpp | |||
| @@ -29,7 +29,7 @@ constexpr Xbyak::Reg64 PARAMETERS = Xbyak::util::r12; | |||
| 29 | constexpr Xbyak::Reg32 METHOD_ADDRESS = Xbyak::util::r14d; | 29 | constexpr Xbyak::Reg32 METHOD_ADDRESS = Xbyak::util::r14d; |
| 30 | constexpr Xbyak::Reg64 BRANCH_HOLDER = Xbyak::util::r15; | 30 | constexpr Xbyak::Reg64 BRANCH_HOLDER = Xbyak::util::r15; |
| 31 | 31 | ||
| 32 | const std::bitset<32> PERSISTENT_REGISTERS = Common::X64::BuildRegSet({ | 32 | constexpr std::bitset<32> PERSISTENT_REGISTERS = Common::X64::BuildRegSet({ |
| 33 | STATE, | 33 | STATE, |
| 34 | RESULT, | 34 | RESULT, |
| 35 | PARAMETERS, | 35 | PARAMETERS, |