MCPcopy Create free account
hub / github.com/antlr/codebuff / getSignificand

Method getSignificand

output/java_guava/1.4.19/DoubleUtils.java:64–70  ·  view source on GitHub ↗
(double d)

Source from the content-addressed store, hash-verified

62 */
63 static final long IMPLICIT_BIT = SIGNIFICAND_MASK + 1;
64 static long getSignificand(double d) {
65 checkArgument(isFinite(d), "not a normal value");
66 int exponent = getExponent(d);
67 long bits = doubleToRawLongBits(d);
68 bits &= SIGNIFICAND_MASK;
69 return (exponent == MIN_EXPONENT - 1) ? bits << 1 : bits | IMPLICIT_BIT;
70 }
71
72
73 static boolean isFinite(double d) {

Callers 3

roundToBigIntegerMethod · 0.45
isPowerOfTwoMethod · 0.45
isMathematicalIntegerMethod · 0.45

Calls 2

isFiniteMethod · 0.95
checkArgumentMethod · 0.45

Tested by

no test coverage detected