summaryrefslogtreecommitdiff
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)
downloadluajit2-fa9ade356b0543f11295023de3b4441a1e7d39a3.tar.gz
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 @@
#endif
/* Enable or disable the dual-number mode for the VM. */
+#if (LJ_ARCH_NUMMODE == LJ_NUMMODE_SINGLE && LUAJIT_NUMMODE == 2) || \
+ (LJ_ARCH_NUMMODE == LJ_NUMMODE_DUAL && LUAJIT_NUMMODE == 1)
+#error "No support for this number mode on this architecture"
+#endif
#if LJ_ARCH_NUMMODE == LJ_NUMMODE_DUAL || \
(LJ_ARCH_NUMMODE == LJ_NUMMODE_DUAL_SINGLE && LUAJIT_NUMMODE != 1) || \
(LJ_ARCH_NUMMODE == LJ_NUMMODE_SINGLE_DUAL && LUAJIT_NUMMODE == 2)