aboutsummaryrefslogtreecommitdiff
path: root/src/lj_arch.h
diff options
context:
space:
mode:
authorMike Pall <mike>2011-10-24 16:35:17 +0200
committerMike Pall <mike>2011-10-24 16:35:17 +0200
commitfa9ade356b0543f11295023de3b4441a1e7d39a3 (patch)
tree4ed3765c8c3046672b1eafd17f303ee6e40988fb /src/lj_arch.h
parent96d8611d1b3c038d565016c0383e2cb7a8064449 (diff)
downloadluajit-fa9ade356b0543f11295023de3b4441a1e7d39a3.tar.gz
luajit-fa9ade356b0543f11295023de3b4441a1e7d39a3.tar.bz2
luajit-fa9ade356b0543f11295023de3b4441a1e7d39a3.zip
Allow selection of single-number vs. dual-number mode in Makefile.
Diffstat (limited to 'src/lj_arch.h')
-rw-r--r--src/lj_arch.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lj_arch.h b/src/lj_arch.h
index 80ab051e..f6448848 100644
--- a/src/lj_arch.h
+++ b/src/lj_arch.h
@@ -235,6 +235,10 @@
235#endif 235#endif
236 236
237/* Enable or disable the dual-number mode for the VM. */ 237/* Enable or disable the dual-number mode for the VM. */
238#if (LJ_ARCH_NUMMODE == LJ_NUMMODE_SINGLE && LUAJIT_NUMMODE == 2) || \
239 (LJ_ARCH_NUMMODE == LJ_NUMMODE_DUAL && LUAJIT_NUMMODE == 1)
240#error "No support for this number mode on this architecture"
241#endif
238#if LJ_ARCH_NUMMODE == LJ_NUMMODE_DUAL || \ 242#if LJ_ARCH_NUMMODE == LJ_NUMMODE_DUAL || \
239 (LJ_ARCH_NUMMODE == LJ_NUMMODE_DUAL_SINGLE && LUAJIT_NUMMODE != 1) || \ 243 (LJ_ARCH_NUMMODE == LJ_NUMMODE_DUAL_SINGLE && LUAJIT_NUMMODE != 1) || \
240 (LJ_ARCH_NUMMODE == LJ_NUMMODE_SINGLE_DUAL && LUAJIT_NUMMODE == 2) 244 (LJ_ARCH_NUMMODE == LJ_NUMMODE_SINGLE_DUAL && LUAJIT_NUMMODE == 2)