19 static double i_round(
double x,
double step,
double start)
31 int f_round(
int argc,
const int *argt,
void **args)
33 const DCELL *arg1 = args[1];
57 DCELL x = i_round(arg1[i], 1.0, 0.0);
58 if (x > 2147483647.0 || x < -2147483647.0)
67 const DCELL *arg2 = args[2];
80 DCELL x = i_round(arg1[i], arg2[i], 0.0);
81 if (x > 2147483647.0 || x < -2147483647.0)
99 res[i] = (
FCELL) i_round(arg1[i], arg2[i], 0.0);
104 DCELL *res = args[0];
112 res[i] = (
DCELL) i_round(arg1[i], arg2[i], 0.0);
119 else if (argc == 3) {
120 const DCELL *arg2 = args[2];
121 const DCELL *arg3 = args[3];
128 for (i = 0; i <
columns; i++) {
136 DCELL x = i_round(arg1[i], arg2[i], arg3[i]);
137 if (x > 2147483647.0 || x < -2147483647.0)
147 FCELL *res = args[0];
157 res[i] = (
FCELL) i_round(arg1[i], arg2[i], arg3[i]);
162 DCELL *res = args[0];
172 res[i] = (
DCELL) i_round(arg1[i], arg2[i], arg3[i]);
191 if (argc > 1 && argt[0] < argt[2])
193 if (argc > 2 && argt[0] < argt[3])
int f_round(int argc, const int *argt, void **args)
int c_round(int argc, int *argt)