- Sort Score
- Result 10 results
- Languages All
Results 11 - 15 of 15 for doubleToLongBits (0.07 sec)
-
guava-tests/test/com/google/common/math/MathTesting.java
} } for (int i = Double.MIN_EXPONENT; i <= Double.MAX_EXPONENT; i++) { for (int direction : new int[] {1, -1}) { double d = Double.longBitsToDouble(Double.doubleToLongBits(Math.scalb(1.0, i)) + direction); // Math.nextUp/nextDown if (d != Math.rint(d)) { fractionalBuilder.add(d); } } } for (double d :
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Oct 10 19:45:10 UTC 2022 - 11.2K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/math/MathTesting.java
} } for (int i = Double.MIN_EXPONENT; i <= Double.MAX_EXPONENT; i++) { for (int direction : new int[] {1, -1}) { double d = Double.longBitsToDouble(Double.doubleToLongBits(Math.scalb(1.0, i)) + direction); // Math.nextUp/nextDown if (d != Math.rint(d)) { fractionalBuilder.add(d); } } } for (double d :
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Oct 10 19:45:10 UTC 2022 - 11.2K bytes - Viewed (0) -
android/guava/src/com/google/common/primitives/ImmutableDoubleArray.java
return false; } } return true; } // Match the behavior of Double.equals() private static boolean areEqual(double a, double b) { return Double.doubleToLongBits(a) == Double.doubleToLongBits(b); } /** Returns an unspecified hash code for the contents of this immutable array. */ @Override public int hashCode() { int hash = 1; for (int i = start; i < end; i++) {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 25 18:05:56 UTC 2024 - 23K bytes - Viewed (0) -
guava/src/com/google/common/primitives/Doubles.java
* @return a hash code for the value */ public static int hashCode(double value) { return ((Double) value).hashCode(); // TODO(kevinb): do it this way when we can (GWT problem): // long bits = Double.doubleToLongBits(value); // return (int) (bits ^ (bits >>> 32)); } /** * Compares the two specified {@code double} values. The sign of the value returned is the same as
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Oct 17 15:52:18 UTC 2024 - 27.9K bytes - Viewed (0) -
android/guava/src/com/google/common/primitives/Doubles.java
* @return a hash code for the value */ public static int hashCode(double value) { return ((Double) value).hashCode(); // TODO(kevinb): do it this way when we can (GWT problem): // long bits = Double.doubleToLongBits(value); // return (int) (bits ^ (bits >>> 32)); } /** * Compares the two specified {@code double} values. The sign of the value returned is the same as
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 25 18:05:56 UTC 2024 - 28.1K bytes - Viewed (0)