/* * call-seq: * fix % other => Numeric * fix.modulo(other) => Numeric * * Returns <code>fix</code> modulo <code>other</code>. * See <code>Numeric.divmod</code> for more information. */ static VALUE fix_mod(x, y) VALUE x, y; { if (FIXNUM_P(y)) { long mod; fixdivmod(FIX2LONG(x), FIX2LONG(y), 0, &mod); return LONG2NUM(mod); } return rb_num_coerce_bin(x, y); }