aboutsummaryrefslogtreecommitdiff
path: root/src/lj_arch.h
diff options
context:
space:
mode:
authorMike Pall <mike>2012-10-09 21:42:42 +0200
committerMike Pall <mike>2012-10-09 21:42:42 +0200
commit5ebe4990baa2a0fcbd8c22cf813a18082a7eb961 (patch)
tree55f074ec586f110d05e3aafd4bef4dfcadac306e /src/lj_arch.h
parent0452e97ba0c06dbcf956ec46817e4a71012d87cc (diff)
downloadluajit-5ebe4990baa2a0fcbd8c22cf813a18082a7eb961.tar.gz
luajit-5ebe4990baa2a0fcbd8c22cf813a18082a7eb961.tar.bz2
luajit-5ebe4990baa2a0fcbd8c22cf813a18082a7eb961.zip
Add LJ_TARGET_UNALIGNED.
Diffstat (limited to 'src/lj_arch.h')
-rw-r--r--src/lj_arch.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lj_arch.h b/src/lj_arch.h
index 4df3e8d2..6811e1b3 100644
--- a/src/lj_arch.h
+++ b/src/lj_arch.h
@@ -131,6 +131,7 @@
131#define LJ_TARGET_EHRETREG 0 131#define LJ_TARGET_EHRETREG 0
132#define LJ_TARGET_MASKSHIFT 1 132#define LJ_TARGET_MASKSHIFT 1
133#define LJ_TARGET_MASKROT 1 133#define LJ_TARGET_MASKROT 1
134#define LJ_TARGET_UNALIGNED 1
134#define LJ_ARCH_NUMMODE LJ_NUMMODE_SINGLE_DUAL 135#define LJ_ARCH_NUMMODE LJ_NUMMODE_SINGLE_DUAL
135 136
136#elif LUAJIT_TARGET == LUAJIT_ARCH_X64 137#elif LUAJIT_TARGET == LUAJIT_ARCH_X64
@@ -145,6 +146,7 @@
145#define LJ_TARGET_JUMPRANGE 31 /* +-2^31 = +-2GB */ 146#define LJ_TARGET_JUMPRANGE 31 /* +-2^31 = +-2GB */
146#define LJ_TARGET_MASKSHIFT 1 147#define LJ_TARGET_MASKSHIFT 1
147#define LJ_TARGET_MASKROT 1 148#define LJ_TARGET_MASKROT 1
149#define LJ_TARGET_UNALIGNED 1
148#define LJ_ARCH_NUMMODE LJ_NUMMODE_SINGLE_DUAL 150#define LJ_ARCH_NUMMODE LJ_NUMMODE_SINGLE_DUAL
149 151
150#elif LUAJIT_TARGET == LUAJIT_ARCH_ARM 152#elif LUAJIT_TARGET == LUAJIT_ARCH_ARM
@@ -388,6 +390,10 @@
388#define LJ_64 1 390#define LJ_64 1
389#endif 391#endif
390 392
393#ifndef LJ_TARGET_UNALIGNED
394#define LJ_TARGET_UNALIGNED 0
395#endif
396
391/* Various workarounds for embedded operating systems. */ 397/* Various workarounds for embedded operating systems. */
392#if defined(__ANDROID__) || defined(__symbian__) 398#if defined(__ANDROID__) || defined(__symbian__)
393#define LUAJIT_NO_LOG2 399#define LUAJIT_NO_LOG2