CloneSet3917


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
8250.965executable_statement
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
18353
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/util/FloatUtil.java
28410
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/util/FloatUtil.java
Clone Instance
1
Line Count
8
Source Line
353
Source File
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/util/FloatUtil.java

                               if (e - 1 > MIN_UNNORMALIZED_DOUBLE_EXPONENT) {
                                // can be represented as an unnormalized double
                                long biasedExponent = 0;
                                result = fraction >>> (MIN_NORMALIZED_DOUBLE_EXPONENT - e + 1);
                                result |= (biasedExponent << DOUBLE_EXPONENT_SHIFT);
                               }
                               else {
                                // underflow - return Double.NaN
                                result = Double.doubleToLongBits(Double.NaN);
                               }


Clone Instance
2
Line Count
8
Source Line
410
Source File
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/util/FloatUtil.java

                       if (e - 1 > MIN_UNNORMALIZED_SINGLE_EXPONENT) {
                        // can be represented as an unnormalized single
                        long biasedExponent = 0;
                        result = fraction >>> (MIN_NORMALIZED_SINGLE_EXPONENT - e + 1);
                        result |= (biasedExponent << SINGLE_EXPONENT_SHIFT);
                       }
                       else {
                        // underflow - return Float.NaN
                        result = Float.floatToIntBits(Float.NaN);
                       }


Clone AbstractionParameter Count: 5Parameter Bindings

if (e - 1 >  [[#variable523dd420]]) {
  // can be represented as an unnormalized double
  // can be represented as an unnormalized single
  long biasedExponent = 0;
  result = fraction >>> ( [[#variable523dd380]] - e + 1);
  result |= (biasedExponent <<  [[#variable523dd300]]);
}
else {
  // underflow - return Double.NaN
  // underflow - return Float.NaN
  result = [[#variable523dd1a0]]. [[#variable523dd220]]( [[#variable523dd1a0]].NaN);
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#523dd420]]
MIN_UNNORMALIZED_DOUBLE_EXPONENT 
12[[#523dd420]]
MIN_UNNORMALIZED_SINGLE_EXPONENT 
21[[#523dd380]]
MIN_NORMALIZED_DOUBLE_EXPONENT 
22[[#523dd380]]
MIN_NORMALIZED_SINGLE_EXPONENT 
31[[#523dd300]]
DOUBLE_EXPONENT_SHIFT 
32[[#523dd300]]
SINGLE_EXPONENT_SHIFT 
41[[#523dd1a0]]
Double 
42[[#523dd1a0]]
Float 
51[[#523dd220]]
doubleToLongBits 
52[[#523dd220]]
floatToIntBits