13 static int f_if_i(
int argc,
const int *argt,
void **args)
16 DCELL *arg1 = args[1];
17 CELL *arg2 = (argc >= 2) ? args[2] :
NULL;
18 CELL *arg3 = (argc >= 3) ? args[3] :
NULL;
19 CELL *arg4 = (argc >= 4) ? args[4] :
NULL;
30 res[i] = arg1[i] != 0.0 ? 1 : 0;
36 else if (arg1[i] == 0.0)
49 else if (arg1[i] == 0.0) {
66 else if (arg1[i] == 0.0) {
72 else if (arg1[i] > 0.0) {
93 static int f_if_f(
int argc,
const int *argt,
void **args)
96 DCELL *arg1 = args[1];
97 FCELL *arg2 = (argc >= 2) ? args[2] :
NULL;
98 FCELL *arg3 = (argc >= 3) ? args[3] :
NULL;
99 FCELL *arg4 = (argc >= 4) ? args[4] :
NULL;
111 else if (arg1[i] == 0.0)
124 else if (arg1[i] == 0.0) {
141 else if (arg1[i] == 0.0) {
147 else if (arg1[i] > 0.0) {
168 static int f_if_d(
int argc,
const int *argt,
void **args)
170 DCELL *res = args[0];
171 DCELL *arg1 = args[1];
172 DCELL *arg2 = (argc >= 2) ? args[2] :
NULL;
173 DCELL *arg3 = (argc >= 3) ? args[3] :
NULL;
174 DCELL *arg4 = (argc >= 4) ? args[4] :
NULL;
186 else if (arg1[i] == 0.0)
199 else if (arg1[i] == 0.0) {
216 else if (arg1[i] == 0.0) {
222 else if (arg1[i] > 0.0) {
243 int f_if(
int argc,
const int *argt,
void **args)
252 if (argc >= 2 && argt[2] != argt[0])
254 if (argc >= 3 && argt[3] != argt[0])
256 if (argc >= 4 && argt[4] != argt[0])
261 return f_if_i(argc, argt, args);
263 return f_if_f(argc, argt, args);
265 return f_if_d(argc, argt, args);
int f_if(int argc, const int *argt, void **args)
int c_if(int argc, int *argt)