@Deprecated public IRubyObject op_and19(ThreadContext context, IRubyObject other) { return op_and(context, other); }
@Deprecated public IRubyObject op_and19(ThreadContext context, IRubyObject other) { return op_and(context, other); }
private IRubyObject op_and18(ThreadContext context, IRubyObject other) { if (other instanceof RubyFixnum || (other = fixCoerce(other)) instanceof RubyFixnum) { return newFixnum(context.runtime, value & ((RubyFixnum) other).value); } return ((RubyBignum) other).op_and(context, this); }
private IRubyObject op_and19(ThreadContext context, IRubyObject other) { if (!((other = bitCoerce(other)) instanceof RubyFixnum)) { return ((RubyBignum) other).op_and(context, this); } return op_and18(context, other); }
@JRubyMethod(name = "&", required = 1, compat = RUBY1_9) public IRubyObject op_and19(ThreadContext context, IRubyObject other) { return op_and(context, convertToInteger(context, other)); }
private IRubyObject op_and18(ThreadContext context, IRubyObject other) { if (other instanceof RubyFixnum || (other = fixCoerce(other)) instanceof RubyFixnum) { return newFixnum(context.runtime, value & ((RubyFixnum) other).value); } return ((RubyBignum) other).op_and(context, this); }
private IRubyObject op_and19(ThreadContext context, IRubyObject other) { if (!((other = bitCoerce(other)) instanceof RubyFixnum)) { return ((RubyBignum) other).op_and(context, this); } return op_and18(context, other); }
@JRubyMethod(name = "&", required = 1, compat = RUBY1_9) public IRubyObject op_and19(ThreadContext context, IRubyObject other) { return op_and(context, convertToInteger(context, other)); }
/** rb_big_and * */ @Override public IRubyObject op_and(ThreadContext context, IRubyObject other) { if (other instanceof RubyBignum) { return bignorm(context.runtime, value.and(((RubyBignum) other).value)); } if (other instanceof RubyFixnum) { return op_and(context, (RubyFixnum) other); } return coerceBit(context, sites(context).checked_op_and, other); }
/** rb_big_and * */ @Override public IRubyObject op_and(ThreadContext context, IRubyObject other) { if (other instanceof RubyBignum) { return bignorm(context.runtime, value.and(((RubyBignum) other).value)); } if (other instanceof RubyFixnum) { return op_and(context, (RubyFixnum) other); } return coerceBit(context, sites(context).checked_op_and, other); }
/** fix_and * */ @Override public IRubyObject op_and(ThreadContext context, IRubyObject other) { if (other instanceof RubyFixnum) { return context.runtime.newFixnum(value & ((RubyFixnum) other).value); } if (other instanceof RubyBignum) { return ((RubyBignum) other).op_and(context, this); } return coerceBit(context, sites(context).checked_op_and, other); }
/** fix_and * */ @Override public IRubyObject op_and(ThreadContext context, IRubyObject other) { if (other instanceof RubyFixnum) { return context.runtime.newFixnum(value & ((RubyFixnum) other).value); } if (other instanceof RubyBignum) { return ((RubyBignum) other).op_and(context, this); } return coerceBit(context, sites(context).checked_op_and, other); }