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