about summary refs log tree commit diff stats
path: root/src/custommem.c
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2024-02-04 11:34:29 +0100
committerptitSeb <sebastien.chev@gmail.com>2024-02-04 11:34:29 +0100
commit0c41d9810fcc4f67902988b9f7d0a15d83d6568a (patch)
treea2273828df0c76ab55115d5cef51080dd6433031 /src/custommem.c
parent165961f27e264164dd62eea0164d16d9d436a8a5 (diff)
downloadbox64-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.c9
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;