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

How to use
opMulOther
method
in
org.jruby.RubyBignum

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

origin: com.ning.billing/killbill-osgi-bundles-jruby

@JRubyMethod(name = "*", required = 1, compat = RUBY1_9)
public IRubyObject op_mul19(ThreadContext context, IRubyObject other) {
  Ruby runtime = context.runtime;
  BigInteger result;
  if (other instanceof RubyFixnum) {
    return bignorm(runtime, value.multiply(fix2big(((RubyFixnum) other))));
  } else if (other instanceof RubyBignum) {
    return bignorm(runtime, value.multiply(((RubyBignum)other).value));
  } else return opMulOther(context, other);
}
origin: org.kill-bill.billing/killbill-osgi-bundles-jruby

@JRubyMethod(name = "*", required = 1, compat = RUBY1_9)
public IRubyObject op_mul19(ThreadContext context, IRubyObject other) {
  Ruby runtime = context.runtime;
  BigInteger result;
  if (other instanceof RubyFixnum) {
    return bignorm(runtime, value.multiply(fix2big(((RubyFixnum) other))));
  } else if (other instanceof RubyBignum) {
    return bignorm(runtime, value.multiply(((RubyBignum)other).value));
  } else return opMulOther(context, other);
}
origin: com.ning.billing/killbill-osgi-bundles-jruby

/** rb_big_mul
 *
 */
@JRubyMethod(name = "*", required = 1)
public IRubyObject op_mul(ThreadContext context, IRubyObject other) {
  Ruby runtime = context.runtime;
  if (other instanceof RubyFixnum) {
    BigInteger result = value.multiply(fix2big(((RubyFixnum) other)));
    return result.signum() == 0 ? RubyFixnum.zero(runtime) : new RubyBignum(runtime, result);
  }
  if (other instanceof RubyBignum) {
    BigInteger result = value.multiply(((RubyBignum)other).value);
    return result.signum() == 0 ? RubyFixnum.zero(runtime) : new RubyBignum(runtime, result);
  } else return opMulOther(context, other);
}
origin: org.kill-bill.billing/killbill-osgi-bundles-jruby

/** rb_big_mul
 *
 */
@JRubyMethod(name = "*", required = 1)
public IRubyObject op_mul(ThreadContext context, IRubyObject other) {
  Ruby runtime = context.runtime;
  if (other instanceof RubyFixnum) {
    BigInteger result = value.multiply(fix2big(((RubyFixnum) other)));
    return result.signum() == 0 ? RubyFixnum.zero(runtime) : new RubyBignum(runtime, result);
  }
  if (other instanceof RubyBignum) {
    BigInteger result = value.multiply(((RubyBignum)other).value);
    return result.signum() == 0 ? RubyFixnum.zero(runtime) : new RubyBignum(runtime, result);
  } else return opMulOther(context, other);
}
org.jrubyRubyBignumopMulOther

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

  • Reactive rest calls using spring rest template
  • getSupportFragmentManager (FragmentActivity)
  • requestLocationUpdates (LocationManager)
  • setScale (BigDecimal)
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • BoxLayout (javax.swing)
  • JLabel (javax.swing)
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
  • From CI to AI: The AI layer in your organization
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