aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMike Pall <mike>2011-02-11 16:22:58 +0100
committerMike Pall <mike>2011-02-11 16:22:58 +0100
commit7c61073a303b3ae254fcf351e30d30c6df7ed61b (patch)
tree5a33f84b8e7ea20a85bec9c1c68c4e10e063f5bc /src
parenta8114d5017effb8db7eb2e568e5cd82551469567 (diff)
downloadluajit-7c61073a303b3ae254fcf351e30d30c6df7ed61b.tar.gz
luajit-7c61073a303b3ae254fcf351e30d30c6df7ed61b.tar.bz2
luajit-7c61073a303b3ae254fcf351e30d30c6df7ed61b.zip
FFI: Disable unused code for some build modes.
Diffstat (limited to 'src')
-rw-r--r--src/lj_carith.c2
-rw-r--r--src/lj_carith.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/lj_carith.c b/src/lj_carith.c
index bba9f6b9..f1435e1e 100644
--- a/src/lj_carith.c
+++ b/src/lj_carith.c
@@ -215,7 +215,7 @@ int lj_carith_op(lua_State *L, MMS mm)
215 215
216/* -- 64 bit integer arithmetic helpers ----------------------------------- */ 216/* -- 64 bit integer arithmetic helpers ----------------------------------- */
217 217
218#if LJ_32 218#if LJ_32 && LJ_HASJIT
219/* Signed/unsigned 64 bit multiplication. */ 219/* Signed/unsigned 64 bit multiplication. */
220int64_t lj_carith_mul64(int64_t a, int64_t b) 220int64_t lj_carith_mul64(int64_t a, int64_t b)
221{ 221{
diff --git a/src/lj_carith.h b/src/lj_carith.h
index faef7a07..c39594ac 100644
--- a/src/lj_carith.h
+++ b/src/lj_carith.h
@@ -12,7 +12,7 @@
12 12
13LJ_FUNC int lj_carith_op(lua_State *L, MMS mm); 13LJ_FUNC int lj_carith_op(lua_State *L, MMS mm);
14 14
15#if LJ_32 15#if LJ_32 && LJ_HASJIT
16LJ_FUNC int64_t lj_carith_mul64(int64_t x, int64_t k); 16LJ_FUNC int64_t lj_carith_mul64(int64_t x, int64_t k);
17#endif 17#endif
18LJ_FUNC uint64_t lj_carith_divu64(uint64_t a, uint64_t b); 18LJ_FUNC uint64_t lj_carith_divu64(uint64_t a, uint64_t b);