Lines Matching defs:to_num
2933 static double to_num(struct zvalue *v)
2955 v->num = trunc(to_num(v)) + 1;
3086 return (int)to_num(&STACK[k]);
3162 n = to_num(&STACK[k++]);
3267 if (++TT.rgl.narg >= (int)to_num(&STACK[ARGC])) return 0;
3589 STKP->num = -to_num(STKP);
3598 nleft = to_num(STKP-1);
3599 nright = to_num(STKP);
3696 to_num(v);
3697 to_num(STKP);
3747 to_num(v);
3986 push_field((int)(to_num(STKP)));
4043 to_num(STKP);
4150 to_num(&STACK[RSTART]);
4151 to_num(&STACK[RLENGTH]);
4173 ssize_t mm = CLAMP(trunc(to_num(STKP - nargs + 2)) - 1, 0, nchars);
4175 if (nargs == 3) nn = CLAMP(trunc(to_num(STKP)), 0, nn);
4199 ; size_t acc = to_num(STKP);
4202 case tkband: acc &= (size_t)to_num(STKP-i); break;
4203 case tkbor: acc |= (size_t)to_num(STKP-i); break;
4204 case tkbxor: acc ^= (size_t)to_num(STKP-i); break;
4205 case tklshift: acc = (size_t)to_num(STKP-i) << acc; break;
4206 case tkrshift: acc = (size_t)to_num(STKP-i) >> acc; break;
4297 d = atan2(to_num(STKP-1), to_num(STKP));
4312 STKP->num = seedrand(to_num(STKP));
4317 STKP->num = mathfunc[opcode-tkcos](to_num(STKP));