diff options
author | chai <chaifix@163.com> | 2018-08-20 08:15:34 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2018-08-20 08:15:34 +0800 |
commit | 98ab086f430d418f33c4410cf81f4eac52d5b835 (patch) | |
tree | 446cce66de209a10c9342bf98e21524de6e4ba05 /build/vs2015/libs/LuaJIT-2.0.5/src/lj_carith.h | |
parent | 22bb9b537caff927ef8c83bde82d58253ffbb1e4 (diff) |
*update
Diffstat (limited to 'build/vs2015/libs/LuaJIT-2.0.5/src/lj_carith.h')
-rw-r--r-- | build/vs2015/libs/LuaJIT-2.0.5/src/lj_carith.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/build/vs2015/libs/LuaJIT-2.0.5/src/lj_carith.h b/build/vs2015/libs/LuaJIT-2.0.5/src/lj_carith.h new file mode 100644 index 0000000..82fc824 --- /dev/null +++ b/build/vs2015/libs/LuaJIT-2.0.5/src/lj_carith.h @@ -0,0 +1,28 @@ +/* +** C data arithmetic. +** Copyright (C) 2005-2017 Mike Pall. See Copyright Notice in luajit.h +*/ + +#ifndef _LJ_CARITH_H +#define _LJ_CARITH_H + +#include "lj_obj.h" + +#if LJ_HASFFI + +LJ_FUNC int lj_carith_op(lua_State *L, MMS mm); +LJ_FUNC int lj_carith_len(lua_State *L); + +#if LJ_32 && LJ_HASJIT +LJ_FUNC int64_t lj_carith_mul64(int64_t x, int64_t k); +#endif +LJ_FUNC uint64_t lj_carith_divu64(uint64_t a, uint64_t b); +LJ_FUNC int64_t lj_carith_divi64(int64_t a, int64_t b); +LJ_FUNC uint64_t lj_carith_modu64(uint64_t a, uint64_t b); +LJ_FUNC int64_t lj_carith_modi64(int64_t a, int64_t b); +LJ_FUNC uint64_t lj_carith_powu64(uint64_t x, uint64_t k); +LJ_FUNC int64_t lj_carith_powi64(int64_t x, int64_t k); + +#endif + +#endif |