div 3281 bignum.c size_t div = val_numbits / word_numbits; div 3285 bignum.c numwords = mod == 0 ? div : div + 1; div 6078 bignum.c VALUE div, mod; div 6086 bignum.c bigdivmod(x, y, &div, &mod); div 6088 bignum.c return rb_assoc_new(bignorm(div), bignorm(mod)); div 2383 compile.c case idDIV: SP_INSN(div); return COMPILE_OK; div 3 ext/-test-/bignum/extconf.h #define TEST_INIT_FUNCS(X) X(str2big) X(intpack) X(mul) X(bigzero) X(big2str) X(div) div 1256 ext/bigdecimal/bigdecimal.c *div = b; div 1292 ext/bigdecimal/bigdecimal.c Real *c=NULL, *res=NULL, *div = NULL; div 1293 ext/bigdecimal/bigdecimal.c r = BigDecimal_divide(&c, &res, &div, self, r); div 1295 ext/bigdecimal/bigdecimal.c SAVE(c); SAVE(res); SAVE(div); div 1301 ext/bigdecimal/bigdecimal.c if (VpHasVal(div)) { /* frac[0] must be zero for NaN,INF,Zero */ div 1302 ext/bigdecimal/bigdecimal.c VpInternalRound(c, 0, c->frac[c->Prec-1], (BDIGIT)(VpBaseVal() * (BDIGIT_DBL)res->frac[0] / div->frac[0])); div 1342 ext/bigdecimal/bigdecimal.c *div = d; div 1348 ext/bigdecimal/bigdecimal.c *div = d; div 1355 ext/bigdecimal/bigdecimal.c *div = d; div 1375 ext/bigdecimal/bigdecimal.c *div = res; div 1378 ext/bigdecimal/bigdecimal.c *div = d; div 1386 ext/bigdecimal/bigdecimal.c *div = d; div 1403 ext/bigdecimal/bigdecimal.c Real *div = NULL, *mod = NULL; div 1405 ext/bigdecimal/bigdecimal.c if (BigDecimal_DoDivmod(self, r, &div, &mod)) { div 1406 ext/bigdecimal/bigdecimal.c SAVE(div); SAVE(mod); div 1501 ext/bigdecimal/bigdecimal.c Real *div = NULL, *mod = NULL; div 1503 ext/bigdecimal/bigdecimal.c if (BigDecimal_DoDivmod(self, r, &div, &mod)) { div 1504 ext/bigdecimal/bigdecimal.c SAVE(div); SAVE(mod); div 1505 ext/bigdecimal/bigdecimal.c return rb_assoc_new(ToValue(div), ToValue(mod)); div 1520 ext/bigdecimal/bigdecimal.c Real *div = NULL; div 1522 ext/bigdecimal/bigdecimal.c if (BigDecimal_DoDivmod(self, b, &div, &mod)) { div 1523 ext/bigdecimal/bigdecimal.c return BigDecimal_to_i(ToValue(div)); div 5550 ext/bigdecimal/bigdecimal.c double div; div 5588 ext/bigdecimal/bigdecimal.c div = 1.; div 5590 ext/bigdecimal/bigdecimal.c div /= (double)BASE; div 5591 ext/bigdecimal/bigdecimal.c *d = *d + (double)m->frac[ind_m++] * div; div 5864 ext/bigdecimal/bigdecimal.c BDIGIT div; div 5917 ext/bigdecimal/bigdecimal.c div = v / 10; div 5918 ext/bigdecimal/bigdecimal.c v = v - div*10; div 5949 ext/bigdecimal/bigdecimal.c if (fracf) ++div; div 5952 ext/bigdecimal/bigdecimal.c if (v>=5) ++div; div 5955 ext/bigdecimal/bigdecimal.c if (v > 5 || (v == 5 && fracf_1further)) ++div; div 5958 ext/bigdecimal/bigdecimal.c if (fracf && (VpGetSign(y) > 0)) ++div; div 5961 ext/bigdecimal/bigdecimal.c if (fracf && (VpGetSign(y) < 0)) ++div; div 5964 ext/bigdecimal/bigdecimal.c if (v > 5) ++div; div 5967 ext/bigdecimal/bigdecimal.c ++div; div 5976 ext/bigdecimal/bigdecimal.c if (ix && (y->frac[ix-1] % 2)) ++div; div 5979 ext/bigdecimal/bigdecimal.c if (div % 2) ++div; div 5985 ext/bigdecimal/bigdecimal.c for (i = 0; i <= n; ++i) div *= 10; div 5986 ext/bigdecimal/bigdecimal.c if (div >= BASE) { div 6000 ext/bigdecimal/bigdecimal.c y->frac[ix] = div; div 214 ext/date/date_strftime.c FMTV('0', 2, "d", div(tmx_year, INT2FIX(100))); div 301 ext/date/date_strftime.c subsec = div(subsec, INT2FIX(1)); div 369 internal.h long div, mod; div 375 internal.h div = x / y; div 379 internal.h div -= 1; div 381 internal.h if (divp) *divp = LONG2FIX(div); div 391 internal.h VALUE div; div 392 internal.h rb_fix_divmod_fix(x, y, &div, NULL); div 393 internal.h return div; div 983 numeric.c double div, mod; div 1005 numeric.c div = x; div 1007 numeric.c div = (x - mod) / y; div 1008 numeric.c if (modp && divp) div = round(div); div 1012 numeric.c div -= 1.0; div 1015 numeric.c if (divp) *divp = div; div 1085 numeric.c double fy, div, mod; div 1100 numeric.c flodivmod(RFLOAT_VALUE(x), fy, &div, &mod); div 1101 numeric.c a = dbl2ival(div); div 3424 numeric.c double div; div 3427 numeric.c div = (double)FIX2LONG(x) / RFLOAT_VALUE(y); div 3428 numeric.c return DBL2NUM(div); div 3432 numeric.c div = (double)FIX2LONG(x) / RFLOAT_VALUE(y); div 3433 numeric.c return rb_dbl2big(floor(div)); div 3579 numeric.c VALUE div, mod; div 3581 numeric.c rb_fix_divmod_fix(x, y, &div, &mod); div 3582 numeric.c return rb_assoc_new(div, mod); div 3590 numeric.c double div, mod; div 3593 numeric.c flodivmod((double)FIX2LONG(x), RFLOAT_VALUE(y), &div, &mod); div 3594 numeric.c a = dbl2ival(div); div 489 strftime.c VALUE sec = div(timev, INT2FIX(1)); div 699 strftime.c FMTV('0', 2, "d", div(vtm->year, INT2FIX(100))); div 813 strftime.c subsec = div(subsec, INT2FIX(1)); div 468 time.c return v2w(div(w2v(wx), w2v(wy))); div 4545 time.c VALUE off = time_utc_offset(time), div, mod; div 4546 time.c divmodv(off, INT2FIX(1), &div, &mod); div 4548 time.c off = rb_Integer(div);