Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ private static int getSignificantCount(float v, int sp, int lastBetaStar) {

float temp = v * get10iP(i);
int tempInt = (int) temp;
while (tempInt != temp) {
while (tempInt != temp && tempInt != Integer.MAX_VALUE) {
i++;
temp = v * get10iP(i);
tempInt = (int) temp;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ private static int getSignificantCount(double v, int sp, int lastBetaStar) {

double temp = v * get10iP(i);
long tempLong = (long) temp;
while (tempLong != temp) {
while (tempLong != temp && tempLong != Long.MAX_VALUE) { // check overflow
i++;
temp = v * get10iP(i);
tempLong = (long) temp;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package org.urbcomp.startdb.compress.elf.doubleprecision;

import sun.misc.DoubleConsts;
// import sun.misc.DoubleConsts;

import java.util.Comparator;
import java.util.List;
Expand Down Expand Up @@ -174,7 +174,7 @@ public double maxValue(List<Double> ld) {
}

public double minValue(List<Double> ld) {
double min = DoubleConsts.MAX_VALUE;
double min = Double.MAX_VALUE;
for (Double aDouble : ld) {
if (aDouble < min) {
min = aDouble;
Expand Down