1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
#ifndef DOJIT_H
#define DOJIT_H
static inline long erfi1(struct ejit_func *f, struct ejit_arg a0)
{
return ejit_run_func_i(f, 1, &a0);
}
static inline long erfi2(struct ejit_func *f, struct ejit_arg a0, struct ejit_arg a1)
{
struct ejit_arg args[2] = {a0, a1};
return ejit_run_func_i(f, 2, args);
}
static inline int64_t erfl1(struct ejit_func *f, struct ejit_arg a0)
{
return ejit_run_func_l(f, 1, &a0);
}
static inline int64_t erfl2(struct ejit_func *f, struct ejit_arg a0, struct ejit_arg a1)
{
struct ejit_arg args[2] = {a0, a1};
return ejit_run_func_l(f, 2, args);
}
static inline float erff1(struct ejit_func *f, struct ejit_arg a0)
{
return ejit_run_func_f(f, 1, &a0);
}
static inline float erff2(struct ejit_func *f, struct ejit_arg a0, struct ejit_arg a1)
{
struct ejit_arg args[2] = {a0, a1};
return ejit_run_func_f(f, 2, args);
}
static inline double erfd1(struct ejit_func *f, struct ejit_arg a0)
{
return ejit_run_func_d(f, 1, &a0);
}
static inline double erfd2(struct ejit_func *f, struct ejit_arg a0, struct ejit_arg a1)
{
struct ejit_arg args[2] = {a0, a1};
return ejit_run_func_d(f, 2, args);
}
#endif /* DOJIT_H */
|