com.google.common.math.IntMath.class Maven / Gradle / Ivy
???? 4 java/lang/Integer x
(com/google/common/math/MathPreconditions
checkPositive (Ljava/lang/String;I)I com/google/common/math/IntMath@ java/lang/ArithmeticException java/lang/StringBuilder
()V ceilingPowerOfTwo(
append -(Ljava/lang/String;)Ljava/lang/StringBuilder;
(I)Ljava/lang/StringBuilder; ) not representable as an int
" # $ toString ()Ljava/lang/String;
& ' (Ljava/lang/String;)V
) * + numberOfLeadingZeros (I)I
- . +
highestOneBit 0 1 2 3 4 com/google/common/math/IntMath$1 !$SwitchMap$java$math$RoundingMode [I
6 7 8 9 : java/math/RoundingMode ordinal ()I
< = > isPowerOfTwo (I)Z
@ A B checkRoundingUnnecessary (Z)V??3
E F G lessThanBranchFree (II)I I java/lang/AssertionError
H
L M +
log10Floor O P 4
powersOf10 R S 4 halfPowersOf10 U V W maxLog10ForLeadingZeros [B Y exponent
[ \
checkNonNegative
^ _ + sqrtFloor
a b c d e java/lang/Math sqrt (D)D
g h i j k $com/google/common/base/Preconditions checkNotNull &(Ljava/lang/Object;)Ljava/lang/Object; m / by zero
a o p + abs 6 r s t HALF_UP Ljava/math/RoundingMode; 6 v w t HALF_EVEN y Modulus { must be > 0 } a b
? ? + numberOfTrailingZeros
a ? ? G min ?
checkedAdd
? ? ? checkNoOverflow (ZLjava/lang/String;II)V ? checkedSubtract ? checkedMultiply ?
checkedPow
? ? G??J? ?
? ? ? ? ? !com/google/common/primitives/Ints
saturatedCast (J)I???
? ? G saturatedMultiply ? n ? ? 4
factorials ? k ? k (%s) > n (%s)
g ? ? ?
checkArgument ? ? 4 biggestBinomials
? ? ? ? ? com/google/common/math/LongMath isPrime (J)Z
? ? java/lang/Object ?? B@ ????? ;?? ?C 0@??x?@? ?? ?? 7_ a ?? MAX_SIGNED_POWER_OF_TWO I
ConstantValue RuntimeInvisibleAnnotations 1Lcom/google/common/annotations/VisibleForTesting; MAX_POWER_OF_SQRT2_UNSIGNED FLOOR_SQRT_MAX_INT ceilingPowerOfTwo Code LineNumberTable LocalVariableTable
StackMapTable MethodParameters floorPowerOfTwo y log2 (ILjava/math/RoundingMode;)I leadingZeros cmp logFloor mode log10 floorPow /Lcom/google/common/annotations/GwtIncompatible; pow accum
halfSquare divide (IILjava/math/RoundingMode;)I increment Z absRem cmpRemToHalfDivisor p q div rem signum mod m result gcd delta minDeltaOrZero aTwos bTwos J saturatedAdd saturatedSubtract saturatedPow limit factorial binomial i mean this Lcom/google/common/math/IntMath;
SourceFile IntMath.java RuntimeVisibleAnnotations 8Lcom/google/common/math/ElementTypesAreNonnullByDefault; -Lcom/google/common/annotations/GwtCompatible; emulated InnerClasses 1 ? ? ? ?
? ? ? ? ? C ? ? V W ? ? P 4 ? ? S 4 ? ? ? ? ? ? ? ? ? 4 ? 4 ? ? ? + ? v 7? W
? #? Y? Y? ? ? ? ? !? %?d? (tx? ? @ A
B - D ? 7 ? ? - ? ? + ? : ? W? ,? ?
O P ? ? ? = > ? Y ? ? d~? ? ~? ? \ ? ? ? @K? ? F G ? ? d??|? ? h ? ? ? ? ? ? ? ? ? ? ? ? v? W? /+? 5.? _ - 4 4 <