mirror of
https://git.suyu.dev/suyu/dynarmic.git
synced 2026-01-06 22:48:25 +01:00
block_of_code: Encapsulate CPU feature detection code
This commit is contained in:
parent
feddf69cb4
commit
f495018f53
14 changed files with 259 additions and 184 deletions
|
|
@ -18,7 +18,7 @@ namespace Dynarmic::Backend::X64 {
|
|||
|
||||
#define MAYBE_AVX(OPCODE, ...) \
|
||||
[&] { \
|
||||
if (code.DoesCpuSupport(Xbyak::util::Cpu::tAVX)) { \
|
||||
if (code.HasAVX()) { \
|
||||
code.v##OPCODE(__VA_ARGS__); \
|
||||
} else { \
|
||||
code.OPCODE(__VA_ARGS__); \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue