Tabnine Logo
RubyBignum.op_plus
Code IndexAdd Tabnine to your IDE (free)

How to use
op_plus
method
in
org.jruby.RubyBignum

Best Java code snippets using org.jruby.RubyBignum.op_plus (Showing top 18 results out of 315)

origin: org.jruby/jruby-complete

private RubyInteger addAsBignum(ThreadContext context, long other) {
  return (RubyInteger) RubyBignum.newBignum(context.runtime, value).op_plus(context, other);
}
origin: org.jruby/jruby-core

private RubyInteger addAsBignum(ThreadContext context, long other) {
  return (RubyInteger) RubyBignum.newBignum(context.runtime, value).op_plus(context, other);
}
origin: com.ning.billing/killbill-osgi-bundles-jruby

private IRubyObject addAsBignum(ThreadContext context, RubyFixnum other) {
  return RubyBignum.newBignum(context.runtime, value).op_plus(context, other);
}
origin: com.ning.billing/killbill-osgi-bundles-jruby

private IRubyObject addAsBignum(ThreadContext context, long other) {
  return RubyBignum.newBignum(context.runtime, value).op_plus(context, other);
}

origin: org.kill-bill.billing/killbill-osgi-bundles-jruby

private IRubyObject addAsBignum(ThreadContext context, RubyFixnum other) {
  return RubyBignum.newBignum(context.runtime, value).op_plus(context, other);
}
origin: org.kill-bill.billing/killbill-osgi-bundles-jruby

private IRubyObject addAsBignum(ThreadContext context, long other) {
  return RubyBignum.newBignum(context.runtime, value).op_plus(context, other);
}

origin: org.jruby/jruby-core

/** rb_big_plus
 *
 */
@Override
public IRubyObject op_plus(ThreadContext context, IRubyObject other) {
  if (other instanceof RubyFixnum) {
    return op_plus(context, ((RubyFixnum) other).getLongValue());
  }
  if (other instanceof RubyBignum) {
    return op_plus(context, ((RubyBignum) other).value);
  }
  if (other instanceof RubyFloat) {
    return addFloat((RubyFloat) other);
  }
  return addOther(context, other);
}
origin: org.jruby/jruby-complete

/** rb_big_plus
 *
 */
@Override
public IRubyObject op_plus(ThreadContext context, IRubyObject other) {
  if (other instanceof RubyFixnum) {
    return op_plus(context, ((RubyFixnum) other).getLongValue());
  }
  if (other instanceof RubyBignum) {
    return op_plus(context, ((RubyBignum) other).value);
  }
  if (other instanceof RubyFloat) {
    return addFloat((RubyFloat) other);
  }
  return addOther(context, other);
}
origin: org.kill-bill.billing/killbill-osgi-bundles-jruby

private IRubyObject addOther(ThreadContext context, IRubyObject other) {
  if (other instanceof RubyBignum) {
    return ((RubyBignum) other).op_plus(context, this);
  }
  if (other instanceof RubyFloat) {
    return context.runtime.newFloat((double) value + ((RubyFloat) other).getDoubleValue());
  }
  return coerceBin(context, "+", other);
}
origin: com.ning.billing/killbill-osgi-bundles-jruby

private IRubyObject addOther(ThreadContext context, IRubyObject other) {
  if (other instanceof RubyBignum) {
    return ((RubyBignum) other).op_plus(context, this);
  }
  if (other instanceof RubyFloat) {
    return context.runtime.newFloat((double) value + ((RubyFloat) other).getDoubleValue());
  }
  return coerceBin(context, "+", other);
}
origin: org.jruby/jruby-core

private IRubyObject addOther(ThreadContext context, IRubyObject other) {
  if (other instanceof RubyBignum) {
    return ((RubyBignum) other).op_plus(context, this.value);
  }
  if (other instanceof RubyFloat) {
    return context.runtime.newFloat((double) value + ((RubyFloat) other).getDoubleValue());
  }
  return coerceBin(context, sites(context).op_plus, other);
}
origin: org.jruby/jruby-complete

private IRubyObject addOther(ThreadContext context, IRubyObject other) {
  if (other instanceof RubyBignum) {
    return ((RubyBignum) other).op_plus(context, this.value);
  }
  if (other instanceof RubyFloat) {
    return context.runtime.newFloat((double) value + ((RubyFloat) other).getDoubleValue());
  }
  return coerceBin(context, sites(context).op_plus, other);
}
origin: com.ning.billing/killbill-osgi-bundles-jruby

while(occurrences > 0 && pos < encode.limit()) {
  big = (RubyBignum)big.op_mul(runtime.getCurrentContext(), big128);
  IRubyObject v = big.op_plus(runtime.getCurrentContext(),
      RubyBignum.newBignum(runtime, encode.get(pos) & 0x7f));
  if(v instanceof RubyFixnum) {
origin: org.kill-bill.billing/killbill-osgi-bundles-jruby

while(occurrences > 0 && pos < encode.limit()) {
  big = (RubyBignum)big.op_mul(runtime.getCurrentContext(), big128);
  IRubyObject v = big.op_plus(runtime.getCurrentContext(),
      RubyBignum.newBignum(runtime, encode.get(pos) & 0x7f));
  if(v instanceof RubyFixnum) {
origin: org.jruby/jruby-complete

return ((RubyBignum) v).op_plus(context, range.begin);
origin: com.ning.billing/killbill-osgi-bundles-jruby

  return ((RubyBignum) v).op_plus(context, range.begin);
} else if (v instanceof RubyFloat) {
  IRubyObject f = TypeConverter.checkFloatType(context.runtime, range.begin);
origin: org.jruby/jruby-core

return ((RubyBignum) v).op_plus(context, range.begin);
origin: org.kill-bill.billing/killbill-osgi-bundles-jruby

  return ((RubyBignum) v).op_plus(context, range.begin);
} else if (v instanceof RubyFloat) {
  IRubyObject f = TypeConverter.checkFloatType(context.runtime, range.begin);
org.jrubyRubyBignumop_plus

Javadoc

rb_big_plus

Popular methods of RubyBignum

  • newBignum
  • getLongValue
  • getValue
    Getter for property value.
  • <init>
  • addFloat
  • addOther
  • big2dbl
    rb_big2dbl
  • big2long
    rb_big2long
  • bignorm
    rb_big_norm
  • checkShiftDown
  • coerceBin
  • coerceCmp
  • coerceBin,
  • coerceCmp,
  • compareTo,
  • convertToDouble,
  • createBignumClass,
  • dbl_cmp,
  • divmod,
  • even_p,
  • fix2big,
  • getBigIntegerValue

Popular in Java

  • Start an intent from android
  • setScale (BigDecimal)
  • getResourceAsStream (ClassLoader)
  • onCreateOptionsMenu (Activity)
  • ObjectMapper (com.fasterxml.jackson.databind)
    ObjectMapper provides functionality for reading and writing JSON, either to and from basic POJOs (Pl
  • FileWriter (java.io)
    A specialized Writer that writes to a file in the file system. All write requests made by calling me
  • Path (java.nio.file)
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • JCheckBox (javax.swing)
  • CodeWhisperer alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now