Fix OSX build issues. Bump minimum required OSX version to 10.4
[luajit-2.0.git] / src / lj_carith.h
blob6e0f29bb7f21c5921bd0af3bf37845335d3557f8
1 /*
2 ** C data arithmetic.
3 ** Copyright (C) 2005-2012 Mike Pall. See Copyright Notice in luajit.h
4 */
6 #ifndef _LJ_CARITH_H
7 #define _LJ_CARITH_H
9 #include "lj_obj.h"
11 #if LJ_HASFFI
13 LJ_FUNC int lj_carith_op(lua_State *L, MMS mm);
15 #if LJ_32 && LJ_HASJIT
16 LJ_FUNC int64_t lj_carith_mul64(int64_t x, int64_t k);
17 #endif
18 LJ_FUNC uint64_t lj_carith_divu64(uint64_t a, uint64_t b);
19 LJ_FUNC int64_t lj_carith_divi64(int64_t a, int64_t b);
20 LJ_FUNC uint64_t lj_carith_modu64(uint64_t a, uint64_t b);
21 LJ_FUNC int64_t lj_carith_modi64(int64_t a, int64_t b);
22 LJ_FUNC uint64_t lj_carith_powu64(uint64_t x, uint64_t k);
23 LJ_FUNC int64_t lj_carith_powi64(int64_t x, int64_t k);
25 #endif
27 #endif