FFI: Move code for cdata arithmetic to lj_carith.c.

This commit is contained in:
Mike Pall
2011-01-26 21:46:02 +01:00
parent 2526498c71
commit 3184f17169
11 changed files with 308 additions and 260 deletions

19
src/lj_carith.h Normal file
View File

@@ -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