summaryrefslogtreecommitdiff
path: root/src/lj_carith.h
diff options
context:
space:
mode:
authorMike Pall <mike>2011-01-26 21:46:02 +0100
committerMike Pall <mike>2011-01-26 21:46:02 +0100
commit3184f1716925f96b3d56c2795a0769bb3463f54e (patch)
treec9364c781e88b321ac4caffa566ccb5fa6659f83 /src/lj_carith.h
parent2526498c7126f3e60d1f3a8d72c97bf20bf4a49e (diff)
downloadluajit2-3184f1716925f96b3d56c2795a0769bb3463f54e.tar.gz
FFI: Move code for cdata arithmetic to lj_carith.c.
Diffstat (limited to 'src/lj_carith.h')
-rw-r--r--src/lj_carith.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/lj_carith.h b/src/lj_carith.h
new file mode 100644
index 00000000..acb095db
--- /dev/null
+++ b/src/lj_carith.h
@@ -0,0 +1,19 @@
+/*
+** C data arithmetic.
+** Copyright (C) 2005-2011 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 uint64_t lj_carith_powi64(uint64_t x, uint64_t k, int isunsigned);
+
+#endif
+
+#endif