diff options
| author | ptitSeb <sebastien.chev@gmail.com> | 2024-02-04 11:34:29 +0100 |
|---|---|---|
| committer | ptitSeb <sebastien.chev@gmail.com> | 2024-02-04 11:34:29 +0100 |
| commit | 0c41d9810fcc4f67902988b9f7d0a15d83d6568a (patch) | |
| tree | a2273828df0c76ab55115d5cef51080dd6433031 /src/custommem.c | |
| parent | 165961f27e264164dd62eea0164d16d9d436a8a5 (diff) | |
| download | box64-0c41d9810fcc4f67902988b9f7d0a15d83d6568a.tar.gz box64-0c41d9810fcc4f67902988b9f7d0a15d83d6568a.zip | |
[ARM64_DYNAREC][32BITS] Small optim on jump table for 32bits access (1 less read, or 2 in SAVE_MEM configuration)
Diffstat (limited to 'src/custommem.c')
| -rw-r--r-- | src/custommem.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/custommem.c b/src/custommem.c index faac9740..6138a63e 100644 --- a/src/custommem.c +++ b/src/custommem.c @@ -960,6 +960,15 @@ uintptr_t getJumpTable64() #endif } +uintptr_t getJumpTable32() +{ + #ifdef JMPTABL_SHIFT4 + return (uintptr_t)box64_jmptbl4[0][0]; + #else + return (uintptr_t)box64_jmptbl3[0]; + #endif +} + uintptr_t getJumpTableAddress64(uintptr_t addr) { uintptr_t idx3, idx2, idx1, idx0; |