aboutsummaryrefslogtreecommitdiff
path: root/src/dynarmic/tests/decoder_tests.cpp
diff options
context:
space:
mode:
authorlizzie <lizzie@eden-emu.dev>2026-05-09 05:41:41 +0200
committercrueter <crueter@eden-emu.dev>2026-05-09 05:41:41 +0200
commiteec460ec2ef13dee7376f2854ba00da9a98b0cd5 (patch)
treec0f19f04bac33f2a7f53f0b0fadf3f167305a472 /src/dynarmic/tests/decoder_tests.cpp
parenta6423a88cc068f8213db8707900a1d1b38b9566d (diff)
[dynarmic] remove decode matcher function handlers using std::function<>, use raw function pointers (#3920)
issues: - std::function<> is used, which is famously bad - storage of tehse in tables makes big fucking tables for no good reason - lets just store a normal pointer and stuff! :) this pr attempts to address that Signed-off-by: lizzie <lizzie@eden-emu.dev> Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/3920 Reviewed-by: CamilleLaVey <camillelavey99@gmail.com>
Diffstat (limited to 'src/dynarmic/tests/decoder_tests.cpp')
-rw-r--r--src/dynarmic/tests/decoder_tests.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dynarmic/tests/decoder_tests.cpp b/src/dynarmic/tests/decoder_tests.cpp
index 2a6c0f6a4f..17ed2c0ce5 100644
--- a/src/dynarmic/tests/decoder_tests.cpp
+++ b/src/dynarmic/tests/decoder_tests.cpp
@@ -51,7 +51,7 @@ TEST_CASE("ASIMD Decoder: Ensure table order correctness", "[decode][a32][.]") {
const bool iserr = is_decode_error(*iter, instruction);
const auto alternative = std::find_if(table.cbegin(), iter, [instruction](const auto& m) {
- return m.Matches(instruction);
+ return (instruction & mask) == expect;
});
const bool altiserr = is_decode_error(*alternative, instruction);