public class org.graalvm.compiler.core.common.NumUtil
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.graalvm.compiler.core.common.NumUtil
super_class: java.lang.Object
{
static final boolean $assertionsDisabled;
descriptor: Z
flags: (0x1018) ACC_STATIC, ACC_FINAL, ACC_SYNTHETIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc Lorg/graalvm/compiler/core/common/NumUtil;
invokevirtual java.lang.Class.desiredAssertionStatus:()Z
ifne 1
iconst_1
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: putstatic org.graalvm.compiler.core.common.NumUtil.$assertionsDisabled:Z
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
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 Lorg/graalvm/compiler/core/common/NumUtil;
public static boolean isShiftCount(int);
descriptor: (I)Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: iload 0
iflt 1
iload 0
bipush 32
if_icmpge 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 x I
MethodParameters:
Name Flags
x
public static boolean isUByte(int);
descriptor: (I)Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: iload 0
sipush 255
iand
iload 0
if_icmpne 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 x I
MethodParameters:
Name Flags
x
public static boolean isByte(int);
descriptor: (I)Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: iload 0
i2b
iload 0
if_icmpne 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 x I
MethodParameters:
Name Flags
x
public static boolean isUByte(long);
descriptor: (J)Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=2, args_size=1
start local 0 0: lload 0
ldc 255
land
lload 0
lcmp
ifne 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 x J
MethodParameters:
Name Flags
x
public static boolean isByte(long);
descriptor: (J)Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=2, args_size=1
start local 0 0: lload 0
l2i
i2b
i2l
lload 0
lcmp
ifne 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 l J
MethodParameters:
Name Flags
l
public static boolean isUInt(long);
descriptor: (J)Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=2, args_size=1
start local 0 0: lload 0
ldc 4294967295
land
lload 0
lcmp
ifne 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 x J
MethodParameters:
Name Flags
x
public static boolean isInt(long);
descriptor: (J)Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=2, args_size=1
start local 0 0: lload 0
l2i
i2l
lload 0
lcmp
ifne 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 l J
MethodParameters:
Name Flags
l
public static boolean isShort(int);
descriptor: (I)Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: iload 0
i2s
iload 0
if_icmpne 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 x I
MethodParameters:
Name Flags
x
public static boolean isShort(long);
descriptor: (J)Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=2, args_size=1
start local 0 0: lload 0
l2i
i2s
i2l
lload 0
lcmp
ifne 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 x J
MethodParameters:
Name Flags
x
public static boolean isUShort(int);
descriptor: (I)Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: iload 0
iload 0
ldc 65535
iand
if_icmpne 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 s I
MethodParameters:
Name Flags
s
public static boolean isUShort(long);
descriptor: (J)Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=6, locals=2, args_size=1
start local 0 0: lload 0
lload 0
ldc 65535
land
lcmp
ifne 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 s J
MethodParameters:
Name Flags
s
public static boolean is32bit(long);
descriptor: (J)Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=2, args_size=1
start local 0 0: ldc -2147483648
lload 0
lcmp
ifgt 1
lload 0
ldc 2147483648
lcmp
ifge 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 x J
MethodParameters:
Name Flags
x
public static short safeToShort(int);
descriptor: (I)S
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: getstatic org.graalvm.compiler.core.common.NumUtil.$assertionsDisabled:Z
ifne 1
iload 0
invokestatic org.graalvm.compiler.core.common.NumUtil.isShort:(I)Z
ifne 1
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
1: StackMap locals:
StackMap stack:
iload 0
i2s
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 v I
MethodParameters:
Name Flags
v
public static int roundUp(int, int);
descriptor: (II)I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: iload 0
iload 1
iadd
iconst_1
isub
iload 1
idiv
iload 1
imul
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 number I
0 1 1 mod I
MethodParameters:
Name Flags
number
mod
public static long roundUp(long, long);
descriptor: (JJ)J
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=4, args_size=2
start local 0 start local 2 0: lload 0
lload 2
ladd
lconst_1
lsub
lload 2
ldiv
lload 2
lmul
lreturn
end local 2 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 number J
0 1 2 mod J
MethodParameters:
Name Flags
number
mod
public static int roundDown(int, int);
descriptor: (II)I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: iload 0
iload 1
idiv
iload 1
imul
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 number I
0 1 1 mod I
MethodParameters:
Name Flags
number
mod
public static long roundDown(long, long);
descriptor: (JJ)J
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=4, args_size=2
start local 0 start local 2 0: lload 0
lload 2
ldiv
lload 2
lmul
lreturn
end local 2 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 number J
0 1 2 mod J
MethodParameters:
Name Flags
number
mod
public static int log2Ceil(int);
descriptor: (I)I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=3, args_size=1
start local 0 0: iconst_1
istore 1
start local 1 1: iconst_0
istore 2
start local 2 2: goto 5
3: StackMap locals: int int
StackMap stack:
iinc 2 1
4: iload 1
iconst_2
imul
istore 1
5: StackMap locals:
StackMap stack:
iload 1
iload 0
if_icmplt 3
6: iload 2
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 val I
1 7 1 x I
2 7 2 log2 I
MethodParameters:
Name Flags
val
public static boolean isUnsignedNbit(int, int);
descriptor: (II)Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: getstatic org.graalvm.compiler.core.common.NumUtil.$assertionsDisabled:Z
ifne 2
iload 0
ifle 1
iload 0
bipush 32
if_icmplt 2
StackMap locals:
StackMap stack:
1: new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
2: StackMap locals:
StackMap stack:
bipush 32
iload 1
invokestatic java.lang.Integer.numberOfLeadingZeros:(I)I
isub
iload 0
if_icmpgt 3
iconst_1
ireturn
StackMap locals:
StackMap stack:
3: iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 n I
0 4 1 value I
MethodParameters:
Name Flags
n
value
public static boolean isUnsignedNbit(int, long);
descriptor: (IJ)Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: getstatic org.graalvm.compiler.core.common.NumUtil.$assertionsDisabled:Z
ifne 2
iload 0
ifle 1
iload 0
bipush 64
if_icmplt 2
StackMap locals:
StackMap stack:
1: new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
2: StackMap locals:
StackMap stack:
bipush 64
lload 1
invokestatic java.lang.Long.numberOfLeadingZeros:(J)I
isub
iload 0
if_icmpgt 3
iconst_1
ireturn
StackMap locals:
StackMap stack:
3: iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 n I
0 4 1 value J
MethodParameters:
Name Flags
n
value
public static boolean isSignedNbit(int, int);
descriptor: (II)Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=4, args_size=2
start local 0 start local 1 0: getstatic org.graalvm.compiler.core.common.NumUtil.$assertionsDisabled:Z
ifne 2
iload 0
ifle 1
iload 0
bipush 32
if_icmplt 2
StackMap locals:
StackMap stack:
1: new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
2: StackMap locals:
StackMap stack:
iconst_1
iload 0
iconst_1
isub
ishl
ineg
istore 2
start local 2 3: iconst_1
iload 0
iconst_1
isub
ishl
iconst_1
isub
istore 3
start local 3 4: iload 1
iload 2
if_icmplt 5
iload 1
iload 3
if_icmpgt 5
iconst_1
ireturn
StackMap locals: int int
StackMap stack:
5: iconst_0
ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 n I
0 6 1 value I
3 6 2 min I
4 6 3 max I
MethodParameters:
Name Flags
n
value
public static boolean isSignedNbit(int, long);
descriptor: (IJ)Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=7, args_size=2
start local 0 start local 1 0: getstatic org.graalvm.compiler.core.common.NumUtil.$assertionsDisabled:Z
ifne 2
iload 0
ifle 1
iload 0
bipush 64
if_icmplt 2
StackMap locals:
StackMap stack:
1: new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
2: StackMap locals:
StackMap stack:
lconst_1
iload 0
iconst_1
isub
lshl
lneg
lstore 3
start local 3 3: lconst_1
iload 0
iconst_1
isub
lshl
lconst_1
lsub
lstore 5
start local 5 4: lload 1
lload 3
lcmp
iflt 5
lload 1
lload 5
lcmp
ifgt 5
iconst_1
ireturn
StackMap locals: long long
StackMap stack:
5: iconst_0
ireturn
end local 5 end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 n I
0 6 1 value J
3 6 3 min J
4 6 5 max J
MethodParameters:
Name Flags
n
value
public static int getNbitNumberInt(int);
descriptor: (I)I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=1, args_size=1
start local 0 0: getstatic org.graalvm.compiler.core.common.NumUtil.$assertionsDisabled:Z
ifne 2
iload 0
iflt 1
iload 0
bipush 32
if_icmple 2
StackMap locals:
StackMap stack:
1: new java.lang.AssertionError
dup
new java.lang.StringBuilder
dup
ldc "0 <= n <= 32; instead: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 0
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
2: StackMap locals:
StackMap stack:
iload 0
bipush 32
if_icmpge 4
3: iconst_1
iload 0
ishl
iconst_1
isub
ireturn
4: StackMap locals:
StackMap stack:
iconst_m1
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 n I
MethodParameters:
Name Flags
n
public static long getNbitNumberLong(int);
descriptor: (I)J
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: getstatic org.graalvm.compiler.core.common.NumUtil.$assertionsDisabled:Z
ifne 2
iload 0
iflt 1
iload 0
bipush 64
if_icmple 2
StackMap locals:
StackMap stack:
1: new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
2: StackMap locals:
StackMap stack:
iload 0
bipush 64
if_icmpge 4
3: lconst_1
iload 0
lshl
lconst_1
lsub
lreturn
4: StackMap locals:
StackMap stack:
ldc -1
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 n I
MethodParameters:
Name Flags
n
public static long minValue(int);
descriptor: (I)J
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: iload 0
invokestatic jdk.vm.ci.code.CodeUtil.minValue:(I)J
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 bits I
MethodParameters:
Name Flags
bits
public static long maxValue(int);
descriptor: (I)J
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: iload 0
invokestatic jdk.vm.ci.code.CodeUtil.maxValue:(I)J
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 bits I
MethodParameters:
Name Flags
bits
public static long maxValueUnsigned(int);
descriptor: (I)J
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: iload 0
invokestatic org.graalvm.compiler.core.common.NumUtil.getNbitNumberLong:(I)J
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 bits I
MethodParameters:
Name Flags
bits
public static long maxUnsigned(long, long);
descriptor: (JJ)J
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=4, args_size=2
start local 0 start local 2 0: lload 0
lload 2
invokestatic java.lang.Long.compareUnsigned:(JJ)I
ifle 2
1: lload 2
lreturn
2: StackMap locals:
StackMap stack:
lload 0
lreturn
end local 2 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 a J
0 3 2 b J
MethodParameters:
Name Flags
a
b
public static long minUnsigned(long, long);
descriptor: (JJ)J
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=4, args_size=2
start local 0 start local 2 0: lload 0
lload 2
invokestatic java.lang.Long.compareUnsigned:(JJ)I
ifle 2
1: lload 0
lreturn
2: StackMap locals:
StackMap stack:
lload 2
lreturn
end local 2 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 a J
0 3 2 b J
MethodParameters:
Name Flags
a
b
public static boolean sameSign(long, long);
descriptor: (JJ)Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=4, args_size=2
start local 0 start local 2 0: lload 0
lconst_0
lcmp
ifge 1
iconst_1
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: lload 2
lconst_0
lcmp
ifge 3
iconst_1
goto 4
StackMap locals:
StackMap stack: int
3: iconst_0
StackMap locals: long long
StackMap stack: int int
4: if_icmpne 5
iconst_1
ireturn
StackMap locals:
StackMap stack:
5: iconst_0
ireturn
end local 2 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 a J
0 6 2 b J
MethodParameters:
Name Flags
a
b
}
SourceFile: "NumUtil.java"