All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.groupbyinc.flux.common.google.common.math.BigIntegerMath.class Maven / Gradle / Ivy

There is a newer version: 59
Show newest version
????2Scom/groupbyinc/flux/common/google/common/math/BigIntegerMath$1	SQRT2_PRECOMPUTE_THRESHOLDIHLcom/groupbyinc/flux/common/google/common/annotations/VisibleForTesting;SQRT2_PRECOMPUTED_BITSLjava/math/BigInteger;LN_10DLN_2isPowerOfTwo(Ljava/math/BigInteger;)Z;com/groupbyinc/flux/common/google/common/base/PreconditionscheckNotNull&(Ljava/lang/Object;)Ljava/lang/Object;
java/math/BigIntegersignum()I
 getLowestSetBit"
#	bitLength%
&xlog21(Ljava/math/BigInteger;Ljava/math/RoundingMode;)I(?com/groupbyinc/flux/common/google/common/math/MathPreconditions,
checkPositive@(Ljava/lang/String;Ljava/math/BigInteger;)Ljava/math/BigInteger;./
-0!$SwitchMap$java$math$RoundingMode[I23	
4java/math/RoundingMode6ordinal8
79
;checkRoundingUnnecessary(Z)V=>
-?	A
shiftRight(I)Ljava/math/BigInteger;CD
E	compareTo(Ljava/math/BigInteger;)IGH
IpowKD
Ljava/lang/AssertionErrorN()VPQ
OR	halfPowerx2
logX2FloormodeLjava/math/RoundingMode;logFloorlog10FLcom/groupbyinc/flux/common/google/common/annotations/GwtIncompatible;valueTODO
fitsInLong^
_	longValue()Jab
c6com/groupbyinc/flux/common/google/common/math/LongMathe(JLjava/math/RoundingMode;)IZg
fhFLOORjX	7k)*
m	o	qTENs	tdivide.(Ljava/math/BigInteger;)Ljava/math/BigInteger;vw
xmultiplyzw
{equals(Ljava/lang/Object;)Z}~
nextPownextCmphalfPowerSquaredapproxLog10	approxPow	approxCmpfloorLogfloorPowfloorCmpsqrtF(Ljava/math/BigInteger;Ljava/math/RoundingMode;)Ljava/math/BigInteger;checkNonNegative?/
-?(JLjava/math/RoundingMode;)J??
f?valueOf(J)Ljava/math/BigInteger;??
?	sqrtFloor?w
?intValue?
?ONE?	?add?w
?sqrtFloorIntsqrtFloorIsExactZ
halfSquaresqrtApproxWithDoubles?w
?	shiftLeft?D
?sqrt0shiftsqrt19com/groupbyinc/flux/common/google/common/math/DoubleUtils?bigToDouble(Ljava/math/BigInteger;)D??
??java/lang/Math?(D)D??
??	HALF_EVEN?X	7?8com/groupbyinc/flux/common/google/common/math/DoubleMath?roundToBigInteger1(DLjava/math/RoundingMode;)Ljava/math/BigInteger;??
??\(Ljava/math/BigInteger;Ljava/math/BigInteger;Ljava/math/RoundingMode;)Ljava/math/BigInteger;java/math/BigDecimal?(Ljava/math/BigInteger;)VP?
??G(Ljava/math/BigDecimal;ILjava/math/RoundingMode;)Ljava/math/BigDecimal;v?
??toBigIntegerExact()Ljava/math/BigInteger;??
??pqpDecLjava/math/BigDecimal;qDec	factorialn?(Ljava/lang/String;I)I??
-?
factorials[J??	f?CEILING?X	7?5com/groupbyinc/flux/common/google/common/math/IntMath?(ILjava/math/RoundingMode;)I)?
??(IILjava/math/RoundingMode;)Iv?
??java/util/ArrayList?(I)VP?
??java/lang/Long?numberOfTrailingZeros(J)I??
??)g
f??~
??listProduct((Ljava/util/List;)Ljava/math/BigInteger;??
?tz
normalizedNumJnormalizedBitsnum
approxSizebignums-Ljava/util/ArrayList;Ljava/util/ArrayList;startingNumberproductproductBitsbitsnextPowerOfTwojava/util/Listsize
*(Ljava/util/List;II)Ljava/math/BigInteger;?
nums(Ljava/util/List;Ljava/util/List;get(I)Ljava/lang/Object;mstartendbinomial(II)Ljava/math/BigInteger;kk (%s) > n (%s)!java/lang/Integer#(I)Ljava/lang/Integer;?%
$&
checkArgument)(ZLjava/lang/String;[Ljava/lang/Object;)V()
*biggestBinomials,3	f-(II)J/
f0iaccumnumeratorAccumdenominatorAccum
numeratorBits
Rthis>Lcom/groupbyinc/flux/common/google/common/math/BigIntegerMath;A16a09e667f3bcc908b2fb1366ea957d3e3adec17512775099da2f590b0667322a;(Ljava/lang/String;I)VP=
>@$logB?
?C@
ConstantValueRuntimeInvisibleAnnotationsCodeLocalVariableTableLineNumberTable
StackMapTableLocalVariableTypeTable	Signature@(Ljava/util/List;)Ljava/math/BigInteger;B(Ljava/util/List;II)Ljava/math/BigInteger;
SourceFileInnerClasses1G
HH	IX*?W*?!?*?$*?'d???J(K
89L@	)*Ih?+*???1W*?'d=?5+?:.??07799HHH*?wT?"U?V?(?WX?YK>F
GHLJSMUQdVkWwYZ?\?e?f?g?jL!?L
B???B?	Z*Ig
 +*?1W*?`?*?d+?i?*?l?n??pk?ro?=?u?MN-*?J6???-?u?yN-*?J6???7?u-?|:*?J6?!?N6?u-?|:*?J6???6-:6?5+?:.?{/<<??RRR???@?*????`?*?M:?M?u?|:		?J??`??OY?S?Jz`+?h#??*U?	 ( WX)??1??8???????????Kz????)?1?8?=?@?H?O?W?`?h?m?p?s?w???????????????????????L5?%??"?@@
C?#C?H[\s]	??Iz?+*??W*?`?*?d+?????*??M?5+?:.??-99;;nnn,?M*???@,?,??>h*???,?M*????6?,?
,?????,?M,??:*?J?,?
,??????OY?S?J>gV??9?????(?WX??K6
?????T?`?b?g?????????L+?9?@?
F??F?H[\s]
?wI`*?l?n<??*??M?4d?~>*?F??z??M,*,?y???FN,-???,?-M,*,?y???FN-,?J???,?J>??`(.2?X)<$?K2	.<DFHV^L???H[\s]
?wI8*???????°J(KH[\s]	v?Iy??Y*??N??Y+??:-,?˶ϰJ4??WX	????K+	,-H[\s]	?DIZ????W?޾???/??????h@?????d/7??6{7?l??`6??l??`6dx6	?7

???i
	?	??	x6	?
??6
{7
`6d6`@?,????W
76
i7?l??`6

a7
???
??
,????W,?????J?
?B??;??
?-sn?
??*?3?8?A??H??[?g?	o?
	M3?Kz=@AE*F3I8JALHMOP[QgSoV{X?Y?Z?]?^?_?a?c?d?e?f?h?i?V?l?m?pL0?Z
??5?	???IH**???JMKtNO?I?d?o!,F???*???*??*`???|?*??*`???|*`???|?`|>*?*??|?J*x???M?Kx z$|/~I?r?x?L 
(NP	I?????W ??W??"?Y?'SY?'S?+z?d<?.???..??1?????M?B
7????666		?U	d6
	`6`??$,!???|???yM
?B?76?!
?iB?i7`6?	???,!???|???y?Jf
}F?
?@?qX2	???Z?3]}4?`z5?jp	nl6Kf???1?8?<?M?V?Z?]?`?j?n?w?}?????????????????????L#@"??<??^ID*?'????J(K?L
@H[\s]PQI/*?7?J89K?:QIB"?Y<???B@?D?rE?D?p?Ku??QR

HZ




© 2015 - 2025 Weber Informatics LLC | Privacy Policy