diff options
Diffstat (limited to '')
-rw-r--r-- | src/lj_dispatch.h | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/src/lj_dispatch.h b/src/lj_dispatch.h index 73d00ec0..5844115b 100644 --- a/src/lj_dispatch.h +++ b/src/lj_dispatch.h | |||
@@ -14,18 +14,19 @@ | |||
14 | 14 | ||
15 | #if LJ_TARGET_MIPS | 15 | #if LJ_TARGET_MIPS |
16 | /* Need our own global offset table for the dreaded MIPS calling conventions. */ | 16 | /* Need our own global offset table for the dreaded MIPS calling conventions. */ |
17 | |||
18 | #ifndef _LJ_VM_H | ||
19 | LJ_ASMF int32_t LJ_FASTCALL lj_vm_modi(int32_t a, int32_t b); | ||
20 | #endif | ||
21 | |||
17 | #if LJ_SOFTFP | 22 | #if LJ_SOFTFP |
23 | #ifndef _LJ_IRCALL_H | ||
18 | extern double __adddf3(double a, double b); | 24 | extern double __adddf3(double a, double b); |
19 | extern double __subdf3(double a, double b); | 25 | extern double __subdf3(double a, double b); |
20 | extern double __muldf3(double a, double b); | 26 | extern double __muldf3(double a, double b); |
21 | extern double __divdf3(double a, double b); | 27 | extern double __divdf3(double a, double b); |
22 | extern void __ledf2(double a, double b); | 28 | #endif |
23 | extern double __floatsidf(int32_t a); | 29 | #define SFGOTDEF(_) _(sqrt) _(__adddf3) _(__subdf3) _(__muldf3) _(__divdf3) |
24 | extern int32_t __fixdfsi(double a); | ||
25 | |||
26 | #define SFGOTDEF(_) \ | ||
27 | _(lj_num2bit) _(sqrt) _(__adddf3) _(__subdf3) _(__muldf3) _(__divdf3) _(__ledf2) \ | ||
28 | _(__floatsidf) _(__fixdfsi) | ||
29 | #else | 30 | #else |
30 | #define SFGOTDEF(_) | 31 | #define SFGOTDEF(_) |
31 | #endif | 32 | #endif |
@@ -43,14 +44,14 @@ extern int32_t __fixdfsi(double a); | |||
43 | #define GOTDEF(_) \ | 44 | #define GOTDEF(_) \ |
44 | _(floor) _(ceil) _(trunc) _(log) _(log10) _(exp) _(sin) _(cos) _(tan) \ | 45 | _(floor) _(ceil) _(trunc) _(log) _(log10) _(exp) _(sin) _(cos) _(tan) \ |
45 | _(asin) _(acos) _(atan) _(sinh) _(cosh) _(tanh) _(frexp) _(modf) _(atan2) \ | 46 | _(asin) _(acos) _(atan) _(sinh) _(cosh) _(tanh) _(frexp) _(modf) _(atan2) \ |
46 | _(pow) _(fmod) _(ldexp) \ | 47 | _(pow) _(fmod) _(ldexp) _(lj_vm_modi) \ |
47 | _(lj_dispatch_call) _(lj_dispatch_ins) _(lj_dispatch_stitch) \ | 48 | _(lj_dispatch_call) _(lj_dispatch_ins) _(lj_dispatch_stitch) \ |
48 | _(lj_dispatch_profile) _(lj_err_throw) \ | 49 | _(lj_dispatch_profile) _(lj_err_throw) \ |
49 | _(lj_ffh_coroutine_wrap_err) _(lj_func_closeuv) _(lj_func_newL_gc) \ | 50 | _(lj_ffh_coroutine_wrap_err) _(lj_func_closeuv) _(lj_func_newL_gc) \ |
50 | _(lj_gc_barrieruv) _(lj_gc_step) _(lj_gc_step_fixtop) _(lj_meta_arith) \ | 51 | _(lj_gc_barrieruv) _(lj_gc_step) _(lj_gc_step_fixtop) _(lj_meta_arith) \ |
51 | _(lj_meta_call) _(lj_meta_cat) _(lj_meta_comp) _(lj_meta_equal) \ | 52 | _(lj_meta_call) _(lj_meta_cat) _(lj_meta_comp) _(lj_meta_equal) \ |
52 | _(lj_meta_for) _(lj_meta_istype) _(lj_meta_len) _(lj_meta_tget) \ | 53 | _(lj_meta_for) _(lj_meta_istype) _(lj_meta_len) _(lj_meta_tget) \ |
53 | _(lj_meta_tset) _(lj_state_growstack) _(lj_strfmt_num) \ | 54 | _(lj_meta_tset) _(lj_state_growstack) _(lj_strfmt_number) \ |
54 | _(lj_str_new) _(lj_tab_dup) _(lj_tab_get) _(lj_tab_getinth) _(lj_tab_len) \ | 55 | _(lj_str_new) _(lj_tab_dup) _(lj_tab_get) _(lj_tab_getinth) _(lj_tab_len) \ |
55 | _(lj_tab_new) _(lj_tab_newkey) _(lj_tab_next) _(lj_tab_reasize) \ | 56 | _(lj_tab_new) _(lj_tab_newkey) _(lj_tab_next) _(lj_tab_reasize) \ |
56 | _(lj_tab_setinth) _(lj_buf_putstr_reverse) _(lj_buf_putstr_lower) \ | 57 | _(lj_tab_setinth) _(lj_buf_putstr_reverse) _(lj_buf_putstr_lower) \ |