aboutsummaryrefslogtreecommitdiff
path: root/src/lj_carith.h
diff options
context:
space:
mode:
authorMike Pall <mike>2013-03-13 22:44:01 +0100
committerMike Pall <mike>2013-03-14 06:03:18 +0100
commita98aede37772797b4471e1a094452051edff5862 (patch)
tree6e8c86838e359b899ffa0021bf3149087caa71da /src/lj_carith.h
parent3e8f5ac7186ecac63e17688b9ba6e72697143dbb (diff)
downloadluajit-a98aede37772797b4471e1a094452051edff5862.tar.gz
luajit-a98aede37772797b4471e1a094452051edff5862.tar.bz2
luajit-a98aede37772797b4471e1a094452051edff5862.zip
FFI: Add 64 bit bitwise operations.
Diffstat (limited to 'src/lj_carith.h')
-rw-r--r--src/lj_carith.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/lj_carith.h b/src/lj_carith.h
index ae17df00..b1a65d35 100644
--- a/src/lj_carith.h
+++ b/src/lj_carith.h
@@ -12,6 +12,16 @@
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
16LJ_FUNC uint64_t lj_carith_shl64(uint64_t x, int32_t sh);
17LJ_FUNC uint64_t lj_carith_shr64(uint64_t x, int32_t sh);
18LJ_FUNC uint64_t lj_carith_sar64(uint64_t x, int32_t sh);
19LJ_FUNC uint64_t lj_carith_rol64(uint64_t x, int32_t sh);
20LJ_FUNC uint64_t lj_carith_ror64(uint64_t x, int32_t sh);
21#endif
22LJ_FUNC uint64_t lj_carith_shift64(uint64_t x, int32_t sh, int op);
23LJ_FUNC uint64_t lj_carith_check64(lua_State *L, int narg, CTypeID *id);
24
15#if LJ_32 && LJ_HASJIT 25#if LJ_32 && LJ_HASJIT
16LJ_FUNC int64_t lj_carith_mul64(int64_t x, int64_t k); 26LJ_FUNC int64_t lj_carith_mul64(int64_t x, int64_t k);
17#endif 27#endif