
com.google.common.math.LongMath.class Maven / Gradle / Ivy
The newest version!
???? 2? ?? ?? ?? ??/
??@ ??
??
?
??
?
?
?????????? ?
??
?
????3??d?
???
?
? ? ?
? ??
??????????
??
?
??
??
??
?? ?? ??
??bF
??
??
???
?????J?? ??3???????
?r ?G?
?? ? ? ??
?
?
?
?u?} ! ?
?
?
d ? ' ?? B@ ??? ?? ;?? T? Hv? ?ԥ Nr? Z?z@ ?~?ƀ #??o? cEx]?
ඳ?d < Z {? ?C 0@? ?x ?@? ?|? \?G I??? ?Fo? ??]?S ???[E <$??? pX?n'?QcwzM??-+??}[? x ? ? ?? ?? 7_ a ?? s(? L;( 0wwX wu? C~?̀ ???s ?+?? !?g|?? ??? :%? ?y (QF P? s????( 4?8
?}\f?1??Μp? ???8? ???b ??uS?, +SC?j0 ':? ??? ߂?? kGd?? ??9om..?"?\?[k{)?7?!??v?#??? pr.?\? ?kլ?? ???u0
?@G???M???e°? E $? n ?? ?= k????? InnerClasses? MillerRabinTester MAX_SIGNED_POWER_OF_TWO J
ConstantValue RuntimeInvisibleAnnotations 1Lcom/google/common/annotations/VisibleForTesting; MAX_POWER_OF_SQRT2_UNSIGNED maxLog10ForLeadingZeros [B
powersOf10 [J /Lcom/google/common/annotations/GwtIncompatible; halfPowersOf10 FLOOR_SQRT_MAX_LONG
factorials biggestBinomials [I biggestSimpleBinomials SIEVE_30 I millerRabinBaseSets [[J ceilingPowerOfTwo (J)J Code LineNumberTable LocalVariableTable x
StackMapTable $Lcom/google/common/annotations/Beta; floorPowerOfTwo isPowerOfTwo (J)Z lessThanBranchFree (JJ)I y log2 (JLjava/math/RoundingMode;)I leadingZeros cmp logFloor mode Ljava/math/RoundingMode; log10 floorPow
log10Floor (J)I pow (JI)J accum b k sqrt (JLjava/math/RoundingMode;)J sqrtFloor
halfSquare guess guessSquared? divide (JJLjava/math/RoundingMode;)J increment Z absRem cmpRemToHalfDivisor p q div rem signum mod (JI)I m (JJ)J result gcd delta minDeltaOrZero a aTwos bTwos
checkedAdd checkedSubtract checkedMultiply
checkedPow saturatedAdd naiveSum saturatedSubtract naiveDifference saturatedMultiply limit saturatedPow factorial (I)J n binomial (II)J i nBits numerator denominator
numeratorBits multiplyFraction (JJJ)J
commonDivisor fitsInInt mean isPrime baseSet arr$ len$ i$) ()V this !Lcom/google/common/math/LongMath;
SourceFile
LongMath.java -Lcom/google/common/annotations/GwtCompatible; emulated ??'????'??? java/lang/ArithmeticException java/lang/StringBuilder?? ceilingPowerOfTwo(???? ) is not representable as a long?????B?$???34??56 java/lang/AssertionError
impossible??AB exponent????}4?H??H?????+?>?>Z] Modulus must be positive?B????g]m]" k (%s) > n (%s)??#$%$?>89z{_]()?? com/google/common/math/LongMath java/lang/Object !com/google/common/math/LongMath$1 1com/google/common/math/LongMath$MillerRabinTester java/math/RoundingMode java/lang/Long SIZE MIN_VALUE MAX_VALUE java/lang/Integer (com/google/common/math/MathPreconditions
checkPositive (Ljava/lang/String;J)J append -(Ljava/lang/String;)Ljava/lang/StringBuilder; (J)Ljava/lang/StringBuilder; toString ()Ljava/lang/String; (Ljava/lang/String;)V numberOfLeadingZeros !$SwitchMap$java$math$RoundingMode ordinal ()I checkRoundingUnnecessary (Z)V (Ljava/lang/Object;)V checkNonNegative (Ljava/lang/String;I)I com/google/common/math/IntMath (ILjava/math/RoundingMode;)I java/lang/Math (D)D $com/google/common/base/Preconditions checkNotNull &(Ljava/lang/Object;)Ljava/lang/Object; abs HALF_UP HALF_EVEN numberOfTrailingZeros min (II)I checkNoOverflow
checkArgument (ZLjava/lang/String;II)V CEILING test (JJ)Z 1
! > " #$ %$ &' X () *+ , x 9? X ?? #? Y?
Y? ?
? ?
? ? ?
e? ty? - C D E / G. 9/ 0 / 1 2+ , ? ? X
?? dy? -
S W. / 1 34 , ] ?? ?
e ?? ? ~? - a. / 0
@M? 56 , D e ? ??}?? - l. / 7 89 , ? {? X? ,? .? b - 4 4 <