diff options
Diffstat (limited to '')
-rw-r--r-- | libraries/LuaJIT-1.1.7/src/ljit_dasm.c | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/libraries/LuaJIT-1.1.7/src/ljit_dasm.c b/libraries/LuaJIT-1.1.7/src/ljit_dasm.c deleted file mode 100644 index c2d44ee..0000000 --- a/libraries/LuaJIT-1.1.7/src/ljit_dasm.c +++ /dev/null | |||
@@ -1,38 +0,0 @@ | |||
1 | /* | ||
2 | ** Wrapper for architecture-specific DynASM encoder. | ||
3 | ** Copyright (C) 2005-2011 Mike Pall. See Copyright Notice in luajit.h | ||
4 | */ | ||
5 | |||
6 | #define ljit_dasm_c | ||
7 | #define LUA_CORE | ||
8 | |||
9 | |||
10 | #include "lua.h" | ||
11 | |||
12 | #include "ljit.h" | ||
13 | #include "ljit_dasm.h" | ||
14 | #include "lmem.h" | ||
15 | |||
16 | |||
17 | /* Glue macros for DynASM memory allocation. */ | ||
18 | #define DASM_M_GROW(J, t, p, sz, need) \ | ||
19 | do { \ | ||
20 | size_t _sz = (sz), _need = (need); \ | ||
21 | if (_sz < _need) { \ | ||
22 | if (_sz < 16) _sz = 16; \ | ||
23 | while (_sz < _need) _sz += _sz; \ | ||
24 | (p) = (t *)luaM_realloc_(J->L, (p), (sz), _sz); \ | ||
25 | (sz) = _sz; \ | ||
26 | } \ | ||
27 | } while(0) | ||
28 | |||
29 | #define DASM_M_FREE(J, p, sz) luaM_freemem(J->L, p, sz) | ||
30 | |||
31 | /* Embed architecture-specific DynASM encoder. */ | ||
32 | #if defined(__i386) || defined(__i386__) || defined(_M_IX86) | ||
33 | #include "dasm_x86.h" | ||
34 | #else | ||
35 | #error "No support for this architecture (yet)" | ||
36 | #endif | ||
37 | |||
38 | |||