![JAR search and dependency download from the Maven repository](/logo.png)
com.google.common.math.IntMath.class Maven / Gradle / Ivy
???? 4 ? d
? ? ?@ ? ?
? ?
?
? ?
?
?
?
? O ?
? ?
?
? ???3
? ?
?
? ? ? ? ?
? ?
?
? ?
? ? ?
? ? ? ? ? ? ? ? ? z
?
? ? ?
? ? ? ? ?
???J? ?
? ????
? ? ? { ?
? ? ?
? ?
N ? ?? 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 MethodParameters 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 RuntimeVisibleAnnotations 8Lcom/google/common/math/ElementTypesAreNonnullByDefault; -Lcom/google/common/annotations/GwtCompatible; emulated java/lang/Integer ? ? ? com/google/common/math/IntMath java/lang/ArithmeticException java/lang/StringBuilder ? ? ceilingPowerOfTwo( ? ? ? ? ) not representable as an int ? ? ? ? ? ` ? ` ? Z ? ? h i ? ? j k java/lang/AssertionError w ` Y Z [ Z W X exponent ? ? ~ ` ? | ? ? ? ? / by zero ? ` ? s ? s Modulus must be > 0 ? ` k ? k ? k ] Z k (%s) > n (%s) ^ Z ? java/lang/Object com/google/common/math/IntMath$1 java/math/RoundingMode (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 (ZLjava/lang/String;II)V !com/google/common/primitives/Ints
saturatedCast (J)I
checkArgument com/google/common/math/LongMath (J)Z 1 N Q R S T U V R S T U W X T U Y Z T U [ Z T U \ R S 3 T U ] Z ^ Z T U _ ` a v 7? W? #? Y? Y? ?
? ?
?
? ?d? tx? b B C
D - F c 7 d R e - f d g ` a : ? W? ? b
Q R c d R f d h i a Y ? ? d~? ? ~? b \ c d R e @K? f d j k a ? d??|? b h c d R l R f d l T U m n a ? v? W? +? .? _ - 4 4 <