aboutsummaryrefslogtreecommitdiff
path: root/src/lj_dispatch.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/lj_dispatch.h18
1 files changed, 17 insertions, 1 deletions
diff --git a/src/lj_dispatch.h b/src/lj_dispatch.h
index 1e247e38..73d00ec0 100644
--- a/src/lj_dispatch.h
+++ b/src/lj_dispatch.h
@@ -14,6 +14,21 @@
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#if LJ_SOFTFP
18extern double __adddf3(double a, double b);
19extern double __subdf3(double a, double b);
20extern double __muldf3(double a, double b);
21extern double __divdf3(double a, double b);
22extern void __ledf2(double a, double b);
23extern double __floatsidf(int32_t a);
24extern int32_t __fixdfsi(double a);
25
26#define SFGOTDEF(_) \
27 _(lj_num2bit) _(sqrt) _(__adddf3) _(__subdf3) _(__muldf3) _(__divdf3) _(__ledf2) \
28 _(__floatsidf) _(__fixdfsi)
29#else
30#define SFGOTDEF(_)
31#endif
17#if LJ_HASJIT 32#if LJ_HASJIT
18#define JITGOTDEF(_) _(lj_trace_exit) _(lj_trace_hot) 33#define JITGOTDEF(_) _(lj_trace_exit) _(lj_trace_hot)
19#else 34#else
@@ -39,7 +54,8 @@
39 _(lj_str_new) _(lj_tab_dup) _(lj_tab_get) _(lj_tab_getinth) _(lj_tab_len) \ 54 _(lj_str_new) _(lj_tab_dup) _(lj_tab_get) _(lj_tab_getinth) _(lj_tab_len) \
40 _(lj_tab_new) _(lj_tab_newkey) _(lj_tab_next) _(lj_tab_reasize) \ 55 _(lj_tab_new) _(lj_tab_newkey) _(lj_tab_next) _(lj_tab_reasize) \
41 _(lj_tab_setinth) _(lj_buf_putstr_reverse) _(lj_buf_putstr_lower) \ 56 _(lj_tab_setinth) _(lj_buf_putstr_reverse) _(lj_buf_putstr_lower) \
42 _(lj_buf_putstr_upper) _(lj_buf_tostr) JITGOTDEF(_) FFIGOTDEF(_) 57 _(lj_buf_putstr_upper) _(lj_buf_tostr) \
58 JITGOTDEF(_) FFIGOTDEF(_) SFGOTDEF(_)
43 59
44enum { 60enum {
45#define GOTENUM(name) LJ_GOT_##name, 61#define GOTENUM(name) LJ_GOT_##name,