final class com.google.common.math.DoubleUtils
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: com.google.common.math.DoubleUtils
super_class: java.lang.Object
{
static final long SIGNIFICAND_MASK;
descriptor: J
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: 4503599627370495
static final long EXPONENT_MASK;
descriptor: J
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: 9218868437227405312
static final long SIGN_MASK;
descriptor: J
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: -9223372036854775808
static final int SIGNIFICAND_BITS;
descriptor: I
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: 52
static final int EXPONENT_BIAS;
descriptor: I
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: 1023
static final long IMPLICIT_BIT;
descriptor: J
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: 4503599627370496
static final long ONE_BITS;
descriptor: J
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: 4607182418800017408
RuntimeInvisibleAnnotations:
com.google.common.annotations.VisibleForTesting()
private void <init>();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/google/common/math/DoubleUtils;
static double nextDown(double);
descriptor: (D)D
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: dload 0
dneg
invokestatic java.lang.Math.nextUp:(D)D
dneg
dreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 d D
MethodParameters:
Name Flags
d
static long getSignificand(double);
descriptor: (D)J
flags: (0x0008) ACC_STATIC
Code:
stack=4, locals=5, args_size=1
start local 0 0: dload 0
invokestatic com.google.common.math.DoubleUtils.isFinite:(D)Z
ldc "not a normal value"
invokestatic com.google.common.base.Preconditions.checkArgument:(ZLjava/lang/Object;)V
1: dload 0
invokestatic java.lang.Math.getExponent:(D)I
istore 2
start local 2 2: dload 0
invokestatic java.lang.Double.doubleToRawLongBits:(D)J
lstore 3
start local 3 3: lload 3
ldc 4503599627370495
land
lstore 3
4: iload 2
sipush -1023
if_icmpne 5
lload 3
iconst_1
lshl
goto 6
StackMap locals: int long
StackMap stack:
5: lload 3
ldc 4503599627370496
lor
StackMap locals:
StackMap stack: long
6: lreturn
end local 3 end local 2 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 d D
2 7 2 exponent I
3 7 3 bits J
MethodParameters:
Name Flags
d
static boolean isFinite(double);
descriptor: (D)Z
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: dload 0
invokestatic java.lang.Math.getExponent:(D)I
sipush 1023
if_icmpgt 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 d D
MethodParameters:
Name Flags
d
static boolean isNormal(double);
descriptor: (D)Z
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: dload 0
invokestatic java.lang.Math.getExponent:(D)I
sipush -1022
if_icmplt 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 d D
MethodParameters:
Name Flags
d
static double scaleNormalize(double);
descriptor: (D)D
flags: (0x0008) ACC_STATIC
Code:
stack=4, locals=4, args_size=1
start local 0 0: dload 0
invokestatic java.lang.Double.doubleToRawLongBits:(D)J
ldc 4503599627370495
land
lstore 2
start local 2 1: lload 2
ldc 4607182418800017408
lor
invokestatic java.lang.Double.longBitsToDouble:(J)D
dreturn
end local 2 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 x D
1 2 2 significand J
MethodParameters:
Name Flags
x
static double bigToDouble(java.math.BigInteger);
descriptor: (Ljava/math/BigInteger;)D
flags: (0x0008) ACC_STATIC
Code:
stack=6, locals=13, args_size=1
start local 0 0: aload 0
invokevirtual java.math.BigInteger.abs:()Ljava/math/BigInteger;
astore 1
start local 1 1: aload 1
invokevirtual java.math.BigInteger.bitLength:()I
iconst_1
isub
istore 2
start local 2 2: iload 2
bipush 63
if_icmpge 4
3: aload 0
invokevirtual java.math.BigInteger.longValue:()J
l2d
dreturn
4: StackMap locals: java.math.BigInteger int
StackMap stack:
iload 2
sipush 1023
if_icmple 6
5: aload 0
invokevirtual java.math.BigInteger.signum:()I
i2d
ldc Infinity
dmul
dreturn
6: StackMap locals:
StackMap stack:
iload 2
bipush 52
isub
iconst_1
isub
istore 3
start local 3 7: aload 1
iload 3
invokevirtual java.math.BigInteger.shiftRight:(I)Ljava/math/BigInteger;
invokevirtual java.math.BigInteger.longValue:()J
lstore 4
start local 4 8: lload 4
iconst_1
lshr
lstore 6
start local 6 9: lload 6
ldc 4503599627370495
land
lstore 6
10: lload 4
lconst_1
land
lconst_0
lcmp
ifeq 13
lload 6
lconst_1
land
lconst_0
lcmp
ifne 12
aload 1
invokevirtual java.math.BigInteger.getLowestSetBit:()I
iload 3
11: if_icmpge 13
StackMap locals: int long long
StackMap stack:
12: iconst_1
goto 14
StackMap locals:
StackMap stack:
13: iconst_0
StackMap locals:
StackMap stack: int
14: istore 8
start local 8 15: iload 8
ifeq 16
lload 6
lconst_1
ladd
goto 17
StackMap locals: int
StackMap stack:
16: lload 6
StackMap locals:
StackMap stack: long
17: lstore 9
start local 9 18: iload 2
sipush 1023
iadd
i2l
bipush 52
lshl
lstore 11
start local 11 19: lload 11
lload 9
ladd
lstore 11
20: lload 11
aload 0
invokevirtual java.math.BigInteger.signum:()I
i2l
ldc -9223372036854775808
land
lor
lstore 11
21: lload 11
invokestatic java.lang.Double.longBitsToDouble:(J)D
dreturn
end local 11 end local 9 end local 8 end local 6 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 22 0 x Ljava/math/BigInteger;
1 22 1 absX Ljava/math/BigInteger;
2 22 2 exponent I
7 22 3 shift I
8 22 4 twiceSignifFloor J
9 22 6 signifFloor J
15 22 8 increment Z
18 22 9 signifRounded J
19 22 11 bits J
MethodParameters:
Name Flags
x
static double ensureNonNegative(double);
descriptor: (D)D
flags: (0x0008) ACC_STATIC
Code:
stack=4, locals=2, args_size=1
start local 0 0: dload 0
invokestatic java.lang.Double.isNaN:(D)Z
ifeq 1
iconst_0
goto 2
StackMap locals:
StackMap stack:
1: iconst_1
StackMap locals:
StackMap stack: int
2: invokestatic com.google.common.base.Preconditions.checkArgument:(Z)V
3: dload 0
dconst_0
dcmpl
ifle 5
4: dload 0
dreturn
5: StackMap locals:
StackMap stack:
dconst_0
dreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 value D
MethodParameters:
Name Flags
value
}
SourceFile: "DoubleUtils.java"
RuntimeInvisibleAnnotations:
com.google.common.annotations.GwtIncompatible()