FFI: Disable unused code for some build modes.

This commit is contained in:
Mike Pall 2011-02-11 16:22:58 +01:00
parent a8114d5017
commit 7c61073a30
2 changed files with 2 additions and 2 deletions

View File

@ -215,7 +215,7 @@ int lj_carith_op(lua_State *L, MMS mm)
/* -- 64 bit integer arithmetic helpers ----------------------------------- */ /* -- 64 bit integer arithmetic helpers ----------------------------------- */
#if LJ_32 #if LJ_32 && LJ_HASJIT
/* Signed/unsigned 64 bit multiplication. */ /* Signed/unsigned 64 bit multiplication. */
int64_t lj_carith_mul64(int64_t a, int64_t b) int64_t lj_carith_mul64(int64_t a, int64_t b)
{ {

View File

@ -12,7 +12,7 @@
LJ_FUNC int lj_carith_op(lua_State *L, MMS mm); LJ_FUNC int lj_carith_op(lua_State *L, MMS mm);
#if LJ_32 #if LJ_32 && LJ_HASJIT
LJ_FUNC int64_t lj_carith_mul64(int64_t x, int64_t k); LJ_FUNC int64_t lj_carith_mul64(int64_t x, int64_t k);
#endif #endif
LJ_FUNC uint64_t lj_carith_divu64(uint64_t a, uint64_t b); LJ_FUNC uint64_t lj_carith_divu64(uint64_t a, uint64_t b);