![JAR search and dependency download from the Maven repository](/logo.png)
com.google.common.math.LongMath.class Maven / Gradle / Ivy
???? 4?8
???@ ??
??
?
??
?
?
????????? ?
W?
?
????3??d?
???
?
? ? ?
? ??
??????????
??
?
??
??
??
?? W? W?
??kO
?
??n
??op? q
?????J?? ??3???????
?{ ?P?
?? ? ? W?
?
?
? B
"?("?+?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 MethodParameters 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 mask baseSet2
roundToDouble (JLjava/math/RoundingMode;)D cmpXToRoundArbitrarily
roundFloor roundFloorAsDouble D roundCeiling roundCeilingAsDouble deltaToFloor deltaToCeiling diff roundArbitrarily roundArbitrarilyAsLong ()V this !Lcom/google/common/math/LongMath;
SourceFile
LongMath.java RuntimeVisibleAnnotations 8Lcom/google/common/math/ElementTypesAreNonnullByDefault; -Lcom/google/common/annotations/GwtCompatible; emulated java/lang/Long??? com/google/common/math/LongMath java/lang/ArithmeticException java/lang/StringBuilder?? ceilingPowerOfTwo(???? ) is not representable as a long?????K?-??<=??>? java/lang/AssertionError
impossible??JK&')'$% exponent?????=?Q??Q 4GGcf Modulus must be positiveK
pfvf+' k (%s) > n (%s)
,-.-GAB??hf12? java/lang/Integer java/lang/Object !com/google/common/math/LongMath$1 1com/google/common/math/LongMath$MillerRabinTester java/math/RoundingMode (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 (ZLjava/lang/String;JJ)V
checkArgument (ZLjava/lang/String;II)V CEILING test (JJ)Z "com/google/common/primitives/Longs compare "com/google/common/math/DoubleUtils nextDown nextUp ceil floor getSignificand (D)J 1 ! " # ! " $% ! " &' !
( " )' !
( " * @! " +' ,- .- ! " /0 T 12 34 5 x 9? X ?? #? Y? Y?
? ?
? ? ? ?
e? ty? 6 C D E / G7 98 9 /: 8 ;4 5 ? ? X
?? dy? 6
R V7 8 : 8 <= 5 ] ?? ?
e ?? ? ~? 6 a7 8 9
@M? : 8 >? 5 D e ? ??}?? 6 l7 8 @ : 8 @ ! " AB 5 ? {? X? ,? .? b - 4 4 <