![JAR search and dependency download from the Maven repository](/logo.png)
com.google.common.math.LongMath.class Maven / Gradle / Ivy
???? 4 java/lang/Long x
(com/google/common/math/MathPreconditions
checkPositive (Ljava/lang/String;J)J com/google/common/math/LongMath@ java/lang/ArithmeticException java/lang/StringBuilder
()V ceilingPowerOfTwo(
append -(Ljava/lang/String;)Ljava/lang/StringBuilder;
(J)Ljava/lang/StringBuilder; ! ) is not representable as a long
# $ % toString ()Ljava/lang/String;
' ( (Ljava/lang/String;)V
* + , numberOfLeadingZeros (J)I???????? 0 1 2 3 4 !com/google/common/math/LongMath$1 !$SwitchMap$java$math$RoundingMode [I
6 7 8 9 : java/math/RoundingMode ordinal ()I
< = > isPowerOfTwo (J)Z
@ A B checkRoundingUnnecessary (Z)V??3??d?
F G H lessThanBranchFree (JJ)I J java/lang/AssertionError L
impossible
I N O (Ljava/lang/Object;)V
Q R ,
log10Floor T U V
powersOf10 [J X Y V halfPowersOf10
I \ ] ^ maxLog10ForLeadingZeros [B ` exponent
b c d checkNonNegative (Ljava/lang/String;I)I????????
j c
l m > fitsInInt
o p q r s com/google/common/math/IntMath sqrt (ILjava/math/RoundingMode;)I
u v w r x java/lang/Math (D)D
z { | } ~ $com/google/common/base/Preconditions checkNotNull &(Ljava/lang/Object;)Ljava/lang/Object;
u ? ? ? abs (J)J 6 ? ? ? HALF_UP Ljava/math/RoundingMode; 6 ? ? ? HALF_EVEN
? ? ? mod (JJ)J ? Modulus must be positive ? a ? b
? ? , numberOfTrailingZeros
u ? ? ? min (II)I ?
checkedAdd
? ? ? checkNoOverflow (ZLjava/lang/String;JJ)V ? checkedSubtract ? checkedMultiply? ?
checkedPow
? ? ?????J?? ??3???????
? ? ? saturatedMultiply ? n ? ? V
factorials ? k ? k (%s) > n (%s)
z ? ? ?
checkArgument (ZLjava/lang/String;II)V ? ? 4 biggestBinomials ? ? 4 biggestSimpleBinomials 6 ? ? ? CEILING
? ? ? log2 (JLjava/math/RoundingMode;)I
? ? ? multiplyFraction (JJJ)J
? ? ? gcd B
"?("?+?u?}
! ? ? ? millerRabinBaseSets [[J
? ? ? ? ? 1com/google/common/math/LongMath$MillerRabinTester test (JJ)Z
? ? H compare
? ? ? ? x "com/google/common/math/DoubleUtils nextDown
u ? ? x nextUp
u ? ? x ceil
u ? ? x floor
? getSignificand (D)J
java/lang/Object
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|?? u java/lang/Integer??? :%? ?y (QF P? V 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?? MAX_SIGNED_POWER_OF_TWO J
ConstantValue RuntimeInvisibleAnnotations 1Lcom/google/common/annotations/VisibleForTesting; MAX_POWER_OF_SQRT2_UNSIGNED /Lcom/google/common/annotations/GwtIncompatible; FLOOR_SQRT_MAX_LONG SIEVE_30 I ceilingPowerOfTwo Code LineNumberTable LocalVariableTable
StackMapTable MethodParameters floorPowerOfTwo y leadingZeros cmp logFloor mode log10 floorPow pow (JI)J accum (JLjava/math/RoundingMode;)J sqrtFloor
halfSquare guess guessSquared divide (JJLjava/math/RoundingMode;)J increment Z absRem cmpRemToHalfDivisor p q div rem signum (JI)I m result delta minDeltaOrZero aTwos bTwos saturatedAdd naiveSum saturatedSubtract naiveDifference limit saturatedPow factorial (I)J binomial (II)J i nBits numerator denominator
numeratorBits
commonDivisor mean isPrime mask baseSet ?
roundToDouble (JLjava/math/RoundingMode;)D cmpXToRoundArbitrarily
roundFloor roundFloorAsDouble D roundCeiling roundCeilingAsDouble deltaToFloor deltaToCeiling diff roundArbitrarily roundArbitrarilyAsLong this !Lcom/google/common/math/LongMath;
SourceFile
LongMath.java RuntimeVisibleAnnotations 8Lcom/google/common/math/ElementTypesAreNonnullByDefault; -Lcom/google/common/annotations/GwtCompatible; emulated InnerClasses MillerRabinTester 1 ?? ?
? ? ?? ? C? ? ] ^ ? ? U V ?
? ? Y V ?
? ? ?? ? ?? ? ? V ? 4 ? 4 ? ? ?? ? ? ? ? ? ? ? x 9? X
?? #? Y? Y? ? ? ? ? "? &?
e? )ty? ? @ A B / D? 9 ? ? /? ? ? ? ? ? X
?? )dy? ?
O S? ? ? = > ? ] ?? ?
e ?? ? ~? ? _? ? ?
@M? ? G H ? D e -? -??}?? ? j? ? ?? ? ? ? ? ? ? ? ? {? X? /,? 5.? b - 4 4 <