@Deprecated public IRubyObject op_xor19(ThreadContext context, IRubyObject other) { return op_xor(context, other); }
@Deprecated public IRubyObject op_xor19(ThreadContext context, IRubyObject other) { return op_xor(context, other); }
private IRubyObject op_xor18(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_xor(context, this); }
private IRubyObject op_xor19(ThreadContext context, IRubyObject other) { if (!((other = bitCoerce(other)) instanceof RubyFixnum)) { return ((RubyBignum) other).op_xor(context, this); } return op_xor18(context, other); }
private IRubyObject op_xor19(ThreadContext context, IRubyObject other) { if (!((other = bitCoerce(other)) instanceof RubyFixnum)) { return ((RubyBignum) other).op_xor(context, this); } return op_xor18(context, other); }
private IRubyObject op_xor18(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_xor(context, this); }
@JRubyMethod(name = "^", required = 1, compat = RUBY1_9) public IRubyObject op_xor19(ThreadContext context, IRubyObject other) { return op_xor(context, convertToInteger(context, other)); }
@JRubyMethod(name = "^", required = 1, compat = RUBY1_9) public IRubyObject op_xor19(ThreadContext context, IRubyObject other) { return op_xor(context, convertToInteger(context, other)); }
/** fix_xor * */ @Override public IRubyObject op_xor(ThreadContext context, IRubyObject other) { if (other instanceof RubyFixnum) { return context.runtime.newFixnum(value ^ ((RubyFixnum) other).value); } if (other instanceof RubyBignum) { return ((RubyBignum) other).op_xor(context, this); } return coerceBit(context, sites(context).checked_op_xor, other); }
/** fix_xor * */ @Override public IRubyObject op_xor(ThreadContext context, IRubyObject other) { if (other instanceof RubyFixnum) { return context.runtime.newFixnum(value ^ ((RubyFixnum) other).value); } if (other instanceof RubyBignum) { return ((RubyBignum) other).op_xor(context, this); } return coerceBit(context, sites(context).checked_op_xor, other); }