| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 3 | 2 | 1 | 0.972 | IfStatement |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 3 | 523 | Closure/closure/goog/math/integer.js |
| 2 | 3 | 554 | Closure/closure/goog/math/long.js |
| ||||
// If both numbers are small, use float multiplication
if (this.lessThan(goog.math.Integer.TWO_PWR_24_)
&&other.lessThan(goog.math.Integer.TWO_PWR_24_))
{
return goog.math.Integer.fromNumber(this.toNumber( )* other.toNumber( ));
}
|
| ||||
// If both longs are small, use float multiplication
if (this.lessThan(goog.math.Long.TWO_PWR_24_)
&&other.lessThan(goog.math.Long.TWO_PWR_24_))
{
return goog.math.Long.fromNumber(this.toNumber( )* other.toNumber( ));
}
|
| |||
// If both longs are small, use float multiplication
// If both numbers are small, use float multiplication
if (this.lessThan(goog.math. [[#variable48375860]].TWO_PWR_24_)
&& other.lessThan(goog.math. [[#variable48375860]].TWO_PWR_24_))
{ return goog.math. [[#variable48375860]].fromNumber(this.toNumber( )*other.toNumber( ));
}
|
| CloneAbstraction |
| Parameter Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#48375860]] | Long |
| 1 | 2 | [[#48375860]] | Integer |