about summary refs log tree commit diff stats
path: root/src/include/custommem.h
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2023-03-05 09:59:26 +0100
committerptitSeb <sebastien.chev@gmail.com>2023-03-05 09:59:26 +0100
commit219ac40a7dffe17a3417dd94910bedf6ea06fe45 (patch)
tree207a6ba4b5aa572a662fe88320398bae4dac14fd /src/include/custommem.h
parentb9378fe4c17a61318f1d27a7f0611df5a84423ab (diff)
downloadbox64-219ac40a7dffe17a3417dd94910bedf6ea06fe45.tar.gz
box64-219ac40a7dffe17a3417dd94910bedf6ea06fe45.zip
[DYNAREC] Fixed (again) and improved new jmptable memory manager
Diffstat (limited to 'src/include/custommem.h')
-rw-r--r--src/include/custommem.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/include/custommem.h b/src/include/custommem.h
index b1645133..e03db81c 100644
--- a/src/include/custommem.h
+++ b/src/include/custommem.h
@@ -39,9 +39,9 @@ uintptr_t getJumpAddress64(uintptr_t addr);
 #define JMPTABL_SHIFT2 18
 #define JMPTABL_SHIFT1 18
 #define JMPTABL_SHIFT0 10
-#define JMPTABL_START3 (JMPTABL_SHIFT0+JMPTABL_SHIFT1+JMPTABL_SHIFT2)
-#define JMPTABL_START2 (JMPTABL_SHIFT0+JMPTABL_SHIFT1)
-#define JMPTABL_START1 (JMPTABL_SHIFT0)
+#define JMPTABL_START3 (JMPTABL_START2+JMPTABL_SHIFT2)
+#define JMPTABL_START2 (JMPTABL_START1+JMPTABL_SHIFT1)
+#define JMPTABL_START1 (JMPTABL_START0+JMPTABL_SHIFT0)
 #define JMPTABL_START0 0
 #define JMPTABLE_MASK3 ((1<<JMPTABL_SHIFT3)-1)
 #define JMPTABLE_MASK2 ((1<<JMPTABL_SHIFT2)-1)