diff options
Diffstat (limited to 'src/lj_carith.c')
-rw-r--r-- | src/lj_carith.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/lj_carith.c b/src/lj_carith.c index 46f07be7..134a61fb 100644 --- a/src/lj_carith.c +++ b/src/lj_carith.c | |||
@@ -230,6 +230,14 @@ int lj_carith_op(lua_State *L, MMS mm) | |||
230 | 230 | ||
231 | /* -- 64 bit integer arithmetic helpers ----------------------------------- */ | 231 | /* -- 64 bit integer arithmetic helpers ----------------------------------- */ |
232 | 232 | ||
233 | #if LJ_32 | ||
234 | /* Signed/unsigned 64 bit multiply. */ | ||
235 | int64_t lj_carith_mul64(int64_t a, int64_t b) | ||
236 | { | ||
237 | return a * b; | ||
238 | } | ||
239 | #endif | ||
240 | |||
233 | /* Unsigned 64 bit x^k. */ | 241 | /* Unsigned 64 bit x^k. */ |
234 | uint64_t lj_carith_powu64(uint64_t x, uint64_t k) | 242 | uint64_t lj_carith_powu64(uint64_t x, uint64_t k) |
235 | { | 243 | { |