Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
18 | 2 | 4 | 0.950 | StatementList[16] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 18 | 489 | Closure/closure/goog/math/long.js |
2 | 18 | 562 | 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; |
| ||||
// 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; |
| |||
// 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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#57a90780]] | a00+b00 |
1 | 2 | [[#57a90780]] | a00*b00 |
2 | 1 | [[#5e7c56a0]] | a16+b16 |
2 | 2 | [[#5e7c56a0]] | a16*b00 |
3 | 1 | [[#5e0d3200]] | c32 |
3 | 2 | [[#5e0d3200]] | c16 |
4 | 1 | [[#5e0d3980]] | a32+b32 |
4 | 2 | [[#5e0d3980]] | a00*b16 |