CloneSet164


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
18240.950StatementList[16]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
118489
Closure/closure/goog/math/long.js
218562
Closure/closure/goog/math/long.js
Clone Instance
1
Line Count
18
Source Line
489
Source File
Closure/closure/goog/math/long.js

  // Divide each number into 4 chunks of 16 bits, and then sum the chunks.

  var a48=  this.high_>>>  16;
  var a32=  this.high_&  0xffff;
  var a16=  this.low_>>>  16;
  var a00=  this.low_&  0xffff;

  var b48=  other.high_>>>  16;
  var b32=  other.high_&  0xffff;
  var b16=  other.low_>>>  16;
  var b00=  other.low_&  0xffff;

  var c48=  0, c32=  0, c16=  0, c00=  0;
  c00+=  a00+  b00;
  c16+=  c00>>>  16;
  c00 &= 0xffff;
  c16+=  a16+  b16;
  c32+=  c16>>>  16;
  c16 &= 0xffff;
  c32+=  a32+  b32;


Clone Instance
2
Line Count
18
Source Line
562
Source File
Closure/closure/goog/math/long.js

  // Divide each long into 4 chunks of 16 bits, and then add up 4x4 products.
  // We can skip products that would overflow.

  var a48=  this.high_>>>  16;
  var a32=  this.high_&  0xffff;
  var a16=  this.low_>>>  16;
  var a00=  this.low_&  0xffff;

  var b48=  other.high_>>>  16;
  var b32=  other.high_&  0xffff;
  var b16=  other.low_>>>  16;
  var b00=  other.low_&  0xffff;

  var c48=  0, c32=  0, c16=  0, c00=  0;
  c00+=  a00*  b00;
  c16+=  c00>>>  16;
  c00 &= 0xffff;
  c16+=  a16*  b00;
  c32+=  c16>>>  16;
  c16 &= 0xffff;
  c16+=  a00*  b16;


Clone AbstractionParameter Count: 4Parameter Bindings

// Divide each number into 4 chunks of 16 bits, and then sum the chunks.
// Divide each long into 4 chunks of 16 bits, and then add up 4x4 products.
// We can skip products that would overflow.
var a48=this.high_>>>16;
var a32=this.high_&0xffff;
var a16=this.low_>>>16;
var a00=this.low_&0xffff;
var b48=other.high_>>>16;
var b32=other.high_&0xffff;
var b16=other.low_>>>16;
var b00=other.low_&0xffff;
var c48=0,
    c32=0,
    c16=0,
    c00=0;
c00+= [[#variable57a90780]];
c16+=c00>>>16;
c00 &= 0xffff;
c16+= [[#variable5e7c56a0]];
c32+=c16>>>16;
c16 &= 0xffff;
 [[#variable5e0d3200]]+= [[#variable5e0d3980]];
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#57a90780]]
a00+b00 
12[[#57a90780]]
a00*b00 
21[[#5e7c56a0]]
a16+b16 
22[[#5e7c56a0]]
a16*b00 
31[[#5e0d3200]]
c32 
32[[#5e0d3200]]
c16 
41[[#5e0d3980]]
a32+b32 
42[[#5e0d3980]]
a00*b16