* Decompile and recreate Soul Browser v1.4.85 with APK CI builds Co-authored-by: KaKi87 <KaKi87@pm.me> * Fix CI build: include bundled google.jks and remove PR trigger The apktool build failed in CI because app/unknown/.../google.jks was excluded by the *.jks gitignore rule. Whitelist app-bundled JKS files and commit the missing resource. Also remove the redundant pull_request workflow trigger. Co-authored-by: KaKi87 <KaKi87@pm.me> * Change package ID to com.github.kaki87.soulbrowser Rename the application ID so the rebuilt APK can be installed alongside the original Soul Browser from Google Play. - Update AndroidManifest package, permissions, providers, and actions - Update R class references in smali (com/github/kaki87/soulbrowser/R) - Update shortcuts.xml targetPackage - Rename app label to "Soul Rebuild" for easy identification Co-authored-by: KaKi87 <KaKi87@pm.me> * Fix install compatibility: remove split APK metadata and bundle native libs The rebuilt APK still declared requiredSplitTypes and Play Store split metadata, causing Android to reject standalone installs as incompatible. - Remove requiredSplitTypes and split-related manifest meta-data - Merge native libs from all ABI splits with uncompressed storage - Page-align before signing for extractNativeLibs=false - Add .so to apktool doNotCompress list Co-authored-by: KaKi87 <KaKi87@pm.me> * Fix install failure: use apksigner v2/v3 and bundle arm64 native libs Target SDK 36 requires APK Signature Scheme v2+, but jarsigner only produces v1 signatures, causing Android to reject the install. - Sign with apksigner (v1+v2+v3) instead of jarsigner - Add arm64-v8a native libraries from universal Soul Browser 1.4.79 - Set extractNativeLibs=true for reliable sideload installs - Commit stable debug keystore for consistent signatures across builds Co-authored-by: KaKi87 <KaKi87@pm.me> * Add committed debug keystore for consistent APK signatures Co-authored-by: KaKi87 <KaKi87@pm.me> * Fix startup crash: use original classes2.dex desugar libraries Apktool recompiles smali_classes2 into a broken classes2.dex, causing ClassNotFoundException for j$.com.android.tools.r8.a at ML Kit init. Inject the original classes2.dex (Java 8+ desugar libs) after apktool build instead of using the recompiled version. Co-authored-by: KaKi87 <KaKi87@pm.me> * Fix missing drawable resources from density split APKs The base APK is an app bundle module; density-specific drawables like seek_thumb_nor_b live in config.xhdpi.apk and were missing after rebuild, causing Resources$NotFoundException at runtime. - Merge non-9-patch resources from split APKs before apktool build - Sync public.xml IDs from R smali only when backing files exist - Add 713 density-specific resource IDs to public.xml Co-authored-by: KaKi87 <KaKi87@pm.me> --------- Co-authored-by: Cursor Agent <cursoragent@cursor.com>
685 lines
26 KiB
Java
685 lines
26 KiB
Java
package kotlin.math;
|
|
|
|
import com.google.android.gms.ads.RequestConfiguration;
|
|
import kotlin.ExperimentalStdlibApi;
|
|
import kotlin.Metadata;
|
|
import kotlin.SinceKotlin;
|
|
import kotlin.WasExperimental;
|
|
import kotlin.internal.InlineOnly;
|
|
import kotlin.jvm.internal.IntCompanionObject;
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
@Metadata(d1 = {"\u0000\u001e\n\u0000\n\u0002\u0010\u0006\n\u0002\b%\n\u0002\u0010\b\n\u0002\b\u0013\n\u0002\u0010\t\n\u0002\u0010\u0007\n\u0002\b\b\u001a\u0011\u0010\u0000\u001a\u00020\u00012\u0006\u0010\u0002\u001a\u00020\u0001H\u0087\b\u001a\u0011\u0010\u0003\u001a\u00020\u00012\u0006\u0010\u0002\u001a\u00020\u0001H\u0087\b\u001a\u0011\u0010\u0004\u001a\u00020\u00012\u0006\u0010\u0002\u001a\u00020\u0001H\u0087\b\u001a\u0011\u0010\u0005\u001a\u00020\u00012\u0006\u0010\u0002\u001a\u00020\u0001H\u0087\b\u001a\u0011\u0010\u0006\u001a\u00020\u00012\u0006\u0010\u0002\u001a\u00020\u0001H\u0087\b\u001a\u0011\u0010\u0007\u001a\u00020\u00012\u0006\u0010\u0002\u001a\u00020\u0001H\u0087\b\u001a\u0019\u0010\b\u001a\u00020\u00012\u0006\u0010\t\u001a\u00020\u00012\u0006\u0010\u0002\u001a\u00020\u0001H\u0087\b\u001a\u0011\u0010\n\u001a\u00020\u00012\u0006\u0010\u0002\u001a\u00020\u0001H\u0087\b\u001a\u0011\u0010\u000b\u001a\u00020\u00012\u0006\u0010\u0002\u001a\u00020\u0001H\u0087\b\u001a\u0011\u0010\f\u001a\u00020\u00012\u0006\u0010\u0002\u001a\u00020\u0001H\u0087\b\u001a\u0010\u0010\r\u001a\u00020\u00012\u0006\u0010\u0002\u001a\u00020\u0001H\u0007\u001a\u0010\u0010\u000e\u001a\u00020\u00012\u0006\u0010\u0002\u001a\u00020\u0001H\u0007\u001a\u0010\u0010\u000f\u001a\u00020\u00012\u0006\u0010\u0002\u001a\u00020\u0001H\u0007\u001a\u0019\u0010\u0010\u001a\u00020\u00012\u0006\u0010\u0002\u001a\u00020\u00012\u0006\u0010\t\u001a\u00020\u0001H\u0087\b\u001a\u0011\u0010\u0011\u001a\u00020\u00012\u0006\u0010\u0002\u001a\u00020\u0001H\u0087\b\u001a\u0011\u0010\u0012\u001a\u00020\u00012\u0006\u0010\u0002\u001a\u00020\u0001H\u0087\b\u001a\u0011\u0010\u0013\u001a\u00020\u00012\u0006\u0010\u0002\u001a\u00020\u0001H\u0087\b\u001a\u0018\u0010\u0014\u001a\u00020\u00012\u0006\u0010\u0002\u001a\u00020\u00012\u0006\u0010\u0015\u001a\u00020\u0001H\u0007\u001a\u0011\u0010\u0016\u001a\u00020\u00012\u0006\u0010\u0002\u001a\u00020\u0001H\u0087\b\u001a\u0011\u0010\u0017\u001a\u00020\u00012\u0006\u0010\u0002\u001a\u00020\u0001H\u0087\b\u001a\u0010\u0010\u0018\u001a\u00020\u00012\u0006\u0010\u0002\u001a\u00020\u0001H\u0007\u001a\u0011\u0010\u0019\u001a\u00020\u00012\u0006\u0010\u0002\u001a\u00020\u0001H\u0087\b\u001a\u0011\u0010\u001a\u001a\u00020\u00012\u0006\u0010\u0002\u001a\u00020\u0001H\u0087\b\u001a\u0011\u0010\u001b\u001a\u00020\u00012\u0006\u0010\u0002\u001a\u00020\u0001H\u0087\b\u001a\u0010\u0010\u001c\u001a\u00020\u00012\u0006\u0010\u0002\u001a\u00020\u0001H\u0007\u001a\u0011\u0010\u001d\u001a\u00020\u00012\u0006\u0010\u0002\u001a\u00020\u0001H\u0087\b\u001a\u0011\u0010\u001e\u001a\u00020\u00012\u0006\u0010\u0002\u001a\u00020\u0001H\u0087\b\u001a\u0011\u0010\u001f\u001a\u00020\u00012\u0006\u0010\u0002\u001a\u00020\u0001H\u0087\b\u001a\u0019\u0010 \u001a\u00020\u00012\u0006\u0010!\u001a\u00020\u00012\u0006\u0010\"\u001a\u00020\u0001H\u0087\b\u001a\u0019\u0010#\u001a\u00020\u00012\u0006\u0010!\u001a\u00020\u00012\u0006\u0010\"\u001a\u00020\u0001H\u0087\b\u001a\u0011\u0010$\u001a\u00020\u00012\u0006\u0010\u0002\u001a\u00020\u0001H\u0087\b\u001a\u0015\u0010%\u001a\u00020\u0001*\u00020\u00012\u0006\u0010\u0002\u001a\u00020\u0001H\u0087\b\u001a\u0015\u0010%\u001a\u00020\u0001*\u00020\u00012\u0006\u0010&\u001a\u00020'H\u0087\b\u001a\u0015\u0010(\u001a\u00020\u0001*\u00020\u00012\u0006\u0010)\u001a\u00020\u0001H\u0087\b\u001a\u0015\u00101\u001a\u00020\u0001*\u00020\u00012\u0006\u0010\u001f\u001a\u00020\u0001H\u0087\b\u001a\u0015\u00101\u001a\u00020\u0001*\u00020\u00012\u0006\u0010\u001f\u001a\u00020'H\u0087\b\u001a\r\u00105\u001a\u00020\u0001*\u00020\u0001H\u0087\b\u001a\r\u00106\u001a\u00020\u0001*\u00020\u0001H\u0087\b\u001a\u0015\u00107\u001a\u00020\u0001*\u00020\u00012\u0006\u00108\u001a\u00020\u0001H\u0087\b\u001a\f\u00109\u001a\u00020'*\u00020\u0001H\u0007\u001a\f\u0010:\u001a\u00020;*\u00020\u0001H\u0007\u001a\u0011\u0010\u0000\u001a\u00020<2\u0006\u0010\u0002\u001a\u00020<H\u0087\b\u001a\u0011\u0010\u0003\u001a\u00020<2\u0006\u0010\u0002\u001a\u00020<H\u0087\b\u001a\u0011\u0010\u0004\u001a\u00020<2\u0006\u0010\u0002\u001a\u00020<H\u0087\b\u001a\u0011\u0010\u0005\u001a\u00020<2\u0006\u0010\u0002\u001a\u00020<H\u0087\b\u001a\u0011\u0010\u0006\u001a\u00020<2\u0006\u0010\u0002\u001a\u00020<H\u0087\b\u001a\u0011\u0010\u0007\u001a\u00020<2\u0006\u0010\u0002\u001a\u00020<H\u0087\b\u001a\u0019\u0010\b\u001a\u00020<2\u0006\u0010\t\u001a\u00020<2\u0006\u0010\u0002\u001a\u00020<H\u0087\b\u001a\u0011\u0010\n\u001a\u00020<2\u0006\u0010\u0002\u001a\u00020<H\u0087\b\u001a\u0011\u0010\u000b\u001a\u00020<2\u0006\u0010\u0002\u001a\u00020<H\u0087\b\u001a\u0011\u0010\f\u001a\u00020<2\u0006\u0010\u0002\u001a\u00020<H\u0087\b\u001a\u0011\u0010\r\u001a\u00020<2\u0006\u0010\u0002\u001a\u00020<H\u0087\b\u001a\u0011\u0010\u000e\u001a\u00020<2\u0006\u0010\u0002\u001a\u00020<H\u0087\b\u001a\u0011\u0010\u000f\u001a\u00020<2\u0006\u0010\u0002\u001a\u00020<H\u0087\b\u001a\u0019\u0010\u0010\u001a\u00020<2\u0006\u0010\u0002\u001a\u00020<2\u0006\u0010\t\u001a\u00020<H\u0087\b\u001a\u0011\u0010\u0011\u001a\u00020<2\u0006\u0010\u0002\u001a\u00020<H\u0087\b\u001a\u0011\u0010\u0012\u001a\u00020<2\u0006\u0010\u0002\u001a\u00020<H\u0087\b\u001a\u0011\u0010\u0013\u001a\u00020<2\u0006\u0010\u0002\u001a\u00020<H\u0087\b\u001a\u0018\u0010\u0014\u001a\u00020<2\u0006\u0010\u0002\u001a\u00020<2\u0006\u0010\u0015\u001a\u00020<H\u0007\u001a\u0011\u0010\u0016\u001a\u00020<2\u0006\u0010\u0002\u001a\u00020<H\u0087\b\u001a\u0011\u0010\u0017\u001a\u00020<2\u0006\u0010\u0002\u001a\u00020<H\u0087\b\u001a\u0010\u0010\u0018\u001a\u00020<2\u0006\u0010\u0002\u001a\u00020<H\u0007\u001a\u0011\u0010\u0019\u001a\u00020<2\u0006\u0010\u0002\u001a\u00020<H\u0087\b\u001a\u0011\u0010\u001a\u001a\u00020<2\u0006\u0010\u0002\u001a\u00020<H\u0087\b\u001a\u0011\u0010\u001b\u001a\u00020<2\u0006\u0010\u0002\u001a\u00020<H\u0087\b\u001a\u0010\u0010\u001c\u001a\u00020<2\u0006\u0010\u0002\u001a\u00020<H\u0007\u001a\u0011\u0010\u001d\u001a\u00020<2\u0006\u0010\u0002\u001a\u00020<H\u0087\b\u001a\u0011\u0010\u001e\u001a\u00020<2\u0006\u0010\u0002\u001a\u00020<H\u0087\b\u001a\u0011\u0010\u001f\u001a\u00020<2\u0006\u0010\u0002\u001a\u00020<H\u0087\b\u001a\u0019\u0010 \u001a\u00020<2\u0006\u0010!\u001a\u00020<2\u0006\u0010\"\u001a\u00020<H\u0087\b\u001a\u0019\u0010#\u001a\u00020<2\u0006\u0010!\u001a\u00020<2\u0006\u0010\"\u001a\u00020<H\u0087\b\u001a\u0011\u0010$\u001a\u00020<2\u0006\u0010\u0002\u001a\u00020<H\u0087\b\u001a\u0015\u0010%\u001a\u00020<*\u00020<2\u0006\u0010\u0002\u001a\u00020<H\u0087\b\u001a\u0015\u0010%\u001a\u00020<*\u00020<2\u0006\u0010&\u001a\u00020'H\u0087\b\u001a\u0015\u0010(\u001a\u00020<*\u00020<2\u0006\u0010)\u001a\u00020<H\u0087\b\u001a\u0015\u00101\u001a\u00020<*\u00020<2\u0006\u0010\u001f\u001a\u00020<H\u0087\b\u001a\u0015\u00101\u001a\u00020<*\u00020<2\u0006\u0010\u001f\u001a\u00020'H\u0087\b\u001a\r\u00105\u001a\u00020<*\u00020<H\u0087\b\u001a\r\u00106\u001a\u00020<*\u00020<H\u0087\b\u001a\u0015\u00107\u001a\u00020<*\u00020<2\u0006\u00108\u001a\u00020<H\u0087\b\u001a\f\u00109\u001a\u00020'*\u00020<H\u0007\u001a\f\u0010:\u001a\u00020;*\u00020<H\u0007\u001a\u0011\u0010\u001e\u001a\u00020'2\u0006\u0010&\u001a\u00020'H\u0087\b\u001a\u0019\u0010 \u001a\u00020'2\u0006\u0010!\u001a\u00020'2\u0006\u0010\"\u001a\u00020'H\u0087\b\u001a\u0019\u0010#\u001a\u00020'2\u0006\u0010!\u001a\u00020'2\u0006\u0010\"\u001a\u00020'H\u0087\b\u001a\u0011\u0010\u001e\u001a\u00020;2\u0006\u0010&\u001a\u00020;H\u0087\b\u001a\u0019\u0010 \u001a\u00020;2\u0006\u0010!\u001a\u00020;2\u0006\u0010\"\u001a\u00020;H\u0087\b\u001a\u0019\u0010#\u001a\u00020;2\u0006\u0010!\u001a\u00020;2\u0006\u0010\"\u001a\u00020;H\u0087\b\"\u001f\u0010*\u001a\u00020\u0001*\u00020\u00018Æ\u0002X\u0087\u0004¢\u0006\f\u0012\u0004\b+\u0010,\u001a\u0004\b-\u0010.\"\u001f\u0010\u001f\u001a\u00020\u0001*\u00020\u00018Æ\u0002X\u0087\u0004¢\u0006\f\u0012\u0004\b/\u0010,\u001a\u0004\b0\u0010.\"\u001f\u00102\u001a\u00020\u0001*\u00020\u00018Æ\u0002X\u0087\u0004¢\u0006\f\u0012\u0004\b3\u0010,\u001a\u0004\b4\u0010.\"\u001f\u0010*\u001a\u00020<*\u00020<8Æ\u0002X\u0087\u0004¢\u0006\f\u0012\u0004\b+\u0010=\u001a\u0004\b-\u0010>\"\u001f\u0010\u001f\u001a\u00020<*\u00020<8Æ\u0002X\u0087\u0004¢\u0006\f\u0012\u0004\b/\u0010=\u001a\u0004\b0\u0010>\"\u001f\u00102\u001a\u00020<*\u00020<8Æ\u0002X\u0087\u0004¢\u0006\f\u0012\u0004\b3\u0010=\u001a\u0004\b4\u0010>\"\u001f\u0010*\u001a\u00020'*\u00020'8Æ\u0002X\u0087\u0004¢\u0006\f\u0012\u0004\b+\u0010?\u001a\u0004\b-\u0010@\"\u001e\u0010\u001f\u001a\u00020'*\u00020'8FX\u0087\u0004¢\u0006\f\u0012\u0004\b/\u0010?\u001a\u0004\b0\u0010@\"\u001f\u0010*\u001a\u00020;*\u00020;8Æ\u0002X\u0087\u0004¢\u0006\f\u0012\u0004\b+\u0010A\u001a\u0004\b-\u0010B\"\u001e\u0010\u001f\u001a\u00020'*\u00020;8FX\u0087\u0004¢\u0006\f\u0012\u0004\b/\u0010A\u001a\u0004\b0\u0010C¨\u0006D"}, d2 = {"sin", RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED, "x", "cos", "tan", "asin", "acos", "atan", "atan2", "y", "sinh", "cosh", "tanh", "asinh", "acosh", "atanh", "hypot", "sqrt", "exp", "expm1", "log", "base", "ln", "log10", "log2", "ln1p", "ceil", "floor", "truncate", "round", "abs", "sign", "min", "a", "b", "max", "cbrt", "pow", "n", RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED, "IEEErem", "divisor", "absoluteValue", "getAbsoluteValue$annotations", "(D)V", "getAbsoluteValue", "(D)D", "getSign$annotations", "getSign", "withSign", "ulp", "getUlp$annotations", "getUlp", "nextUp", "nextDown", "nextTowards", "to", "roundToInt", "roundToLong", RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED, RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED, "(F)V", "(F)F", "(I)V", "(I)I", "(J)V", "(J)J", "(J)I", "kotlin-stdlib"}, k = 5, mv = {2, 2, 0}, xi = 49, xs = "kotlin/math/MathKt")
|
|
/* loaded from: classes4.dex */
|
|
public class MathKt__MathJVMKt extends MathKt__MathHKt {
|
|
@SinceKotlin(version = "1.2")
|
|
@InlineOnly
|
|
private static final double IEEErem(double d, double d2) {
|
|
return Math.IEEEremainder(d, d2);
|
|
}
|
|
|
|
@SinceKotlin(version = "1.2")
|
|
@InlineOnly
|
|
private static final double abs(double d) {
|
|
return Math.abs(d);
|
|
}
|
|
|
|
@SinceKotlin(version = "1.2")
|
|
@InlineOnly
|
|
private static final double acos(double d) {
|
|
return Math.acos(d);
|
|
}
|
|
|
|
@SinceKotlin(version = "1.2")
|
|
public static final double acosh(double d) {
|
|
if (d < 1.0d) {
|
|
return Double.NaN;
|
|
}
|
|
if (d > Constants.upper_taylor_2_bound) {
|
|
return Math.log(d) + Constants.LN2;
|
|
}
|
|
double d2 = 1;
|
|
double d3 = d - d2;
|
|
if (d3 >= Constants.taylor_n_bound) {
|
|
return Math.log(Math.sqrt((d * d) - d2) + d);
|
|
}
|
|
double sqrt = Math.sqrt(d3);
|
|
if (sqrt >= Constants.taylor_2_bound) {
|
|
sqrt -= ((sqrt * sqrt) * sqrt) / 12;
|
|
}
|
|
return Math.sqrt(2.0d) * sqrt;
|
|
}
|
|
|
|
@SinceKotlin(version = "1.2")
|
|
@InlineOnly
|
|
private static final double asin(double d) {
|
|
return Math.asin(d);
|
|
}
|
|
|
|
@SinceKotlin(version = "1.2")
|
|
public static final double asinh(double d) {
|
|
double d2 = Constants.taylor_n_bound;
|
|
if (d < d2) {
|
|
if (d <= (-d2)) {
|
|
return -asinh(-d);
|
|
}
|
|
return Math.abs(d) >= Constants.taylor_2_bound ? d - (((d * d) * d) / 6) : d;
|
|
}
|
|
if (d <= Constants.upper_taylor_n_bound) {
|
|
return Math.log(Math.sqrt((d * d) + 1) + d);
|
|
}
|
|
if (d > Constants.upper_taylor_2_bound) {
|
|
return Math.log(d) + Constants.LN2;
|
|
}
|
|
double d3 = d * 2;
|
|
return Math.log((1 / d3) + d3);
|
|
}
|
|
|
|
@SinceKotlin(version = "1.2")
|
|
@InlineOnly
|
|
private static final double atan(double d) {
|
|
return Math.atan(d);
|
|
}
|
|
|
|
@SinceKotlin(version = "1.2")
|
|
@InlineOnly
|
|
private static final double atan2(double d, double d2) {
|
|
return Math.atan2(d, d2);
|
|
}
|
|
|
|
@SinceKotlin(version = "1.2")
|
|
public static final double atanh(double d) {
|
|
if (Math.abs(d) < Constants.taylor_n_bound) {
|
|
return Math.abs(d) > Constants.taylor_2_bound ? (((d * d) * d) / 3) + d : d;
|
|
}
|
|
double d2 = 1;
|
|
return Math.log((d2 + d) / (d2 - d)) / 2;
|
|
}
|
|
|
|
@SinceKotlin(version = "1.8")
|
|
@WasExperimental(markerClass = {ExperimentalStdlibApi.class})
|
|
@InlineOnly
|
|
private static final double cbrt(double d) {
|
|
return Math.cbrt(d);
|
|
}
|
|
|
|
@SinceKotlin(version = "1.2")
|
|
@InlineOnly
|
|
private static final double ceil(double d) {
|
|
return Math.ceil(d);
|
|
}
|
|
|
|
@SinceKotlin(version = "1.2")
|
|
@InlineOnly
|
|
private static final double cos(double d) {
|
|
return Math.cos(d);
|
|
}
|
|
|
|
@SinceKotlin(version = "1.2")
|
|
@InlineOnly
|
|
private static final double cosh(double d) {
|
|
return Math.cosh(d);
|
|
}
|
|
|
|
@SinceKotlin(version = "1.2")
|
|
@InlineOnly
|
|
private static final double exp(double d) {
|
|
return Math.exp(d);
|
|
}
|
|
|
|
@SinceKotlin(version = "1.2")
|
|
@InlineOnly
|
|
private static final double expm1(double d) {
|
|
return Math.expm1(d);
|
|
}
|
|
|
|
@SinceKotlin(version = "1.2")
|
|
@InlineOnly
|
|
private static final double floor(double d) {
|
|
return Math.floor(d);
|
|
}
|
|
|
|
private static final double getAbsoluteValue(double d) {
|
|
return Math.abs(d);
|
|
}
|
|
|
|
@SinceKotlin(version = "1.2")
|
|
@InlineOnly
|
|
public static /* synthetic */ void getAbsoluteValue$annotations(double d) {
|
|
}
|
|
|
|
private static final double getSign(double d) {
|
|
return Math.signum(d);
|
|
}
|
|
|
|
@SinceKotlin(version = "1.2")
|
|
@InlineOnly
|
|
public static /* synthetic */ void getSign$annotations(double d) {
|
|
}
|
|
|
|
private static final double getUlp(double d) {
|
|
return Math.ulp(d);
|
|
}
|
|
|
|
@SinceKotlin(version = "1.2")
|
|
@InlineOnly
|
|
public static /* synthetic */ void getUlp$annotations(double d) {
|
|
}
|
|
|
|
@SinceKotlin(version = "1.2")
|
|
@InlineOnly
|
|
private static final double hypot(double d, double d2) {
|
|
return Math.hypot(d, d2);
|
|
}
|
|
|
|
@SinceKotlin(version = "1.2")
|
|
@InlineOnly
|
|
private static final double ln(double d) {
|
|
return Math.log(d);
|
|
}
|
|
|
|
@SinceKotlin(version = "1.2")
|
|
@InlineOnly
|
|
private static final double ln1p(double d) {
|
|
return Math.log1p(d);
|
|
}
|
|
|
|
@SinceKotlin(version = "1.2")
|
|
public static final double log(double d, double d2) {
|
|
if (d2 <= 0.0d || d2 == 1.0d) {
|
|
return Double.NaN;
|
|
}
|
|
return Math.log(d) / Math.log(d2);
|
|
}
|
|
|
|
@SinceKotlin(version = "1.2")
|
|
@InlineOnly
|
|
private static final double log10(double d) {
|
|
return Math.log10(d);
|
|
}
|
|
|
|
@SinceKotlin(version = "1.2")
|
|
public static final double log2(double d) {
|
|
return Math.log(d) / Constants.LN2;
|
|
}
|
|
|
|
@SinceKotlin(version = "1.2")
|
|
@InlineOnly
|
|
private static final double max(double d, double d2) {
|
|
return Math.max(d, d2);
|
|
}
|
|
|
|
@SinceKotlin(version = "1.2")
|
|
@InlineOnly
|
|
private static final double min(double d, double d2) {
|
|
return Math.min(d, d2);
|
|
}
|
|
|
|
@SinceKotlin(version = "1.2")
|
|
@InlineOnly
|
|
private static final double nextDown(double d) {
|
|
return Math.nextAfter(d, Double.NEGATIVE_INFINITY);
|
|
}
|
|
|
|
@SinceKotlin(version = "1.2")
|
|
@InlineOnly
|
|
private static final double nextTowards(double d, double d2) {
|
|
return Math.nextAfter(d, d2);
|
|
}
|
|
|
|
@SinceKotlin(version = "1.2")
|
|
@InlineOnly
|
|
private static final double nextUp(double d) {
|
|
return Math.nextUp(d);
|
|
}
|
|
|
|
@SinceKotlin(version = "1.2")
|
|
@InlineOnly
|
|
private static final double pow(double d, double d2) {
|
|
return Math.pow(d, d2);
|
|
}
|
|
|
|
@SinceKotlin(version = "1.2")
|
|
@InlineOnly
|
|
private static final double round(double d) {
|
|
return Math.rint(d);
|
|
}
|
|
|
|
@SinceKotlin(version = "1.2")
|
|
public static int roundToInt(double d) {
|
|
if (Double.isNaN(d)) {
|
|
throw new IllegalArgumentException("Cannot round NaN value.");
|
|
}
|
|
if (d > 2.147483647E9d) {
|
|
return Integer.MAX_VALUE;
|
|
}
|
|
return d < -2.147483648E9d ? IntCompanionObject.MIN_VALUE : (int) Math.round(d);
|
|
}
|
|
|
|
@SinceKotlin(version = "1.2")
|
|
public static long roundToLong(double d) {
|
|
if (Double.isNaN(d)) {
|
|
throw new IllegalArgumentException("Cannot round NaN value.");
|
|
}
|
|
return Math.round(d);
|
|
}
|
|
|
|
@SinceKotlin(version = "1.2")
|
|
@InlineOnly
|
|
private static final double sign(double d) {
|
|
return Math.signum(d);
|
|
}
|
|
|
|
@SinceKotlin(version = "1.2")
|
|
@InlineOnly
|
|
private static final double sin(double d) {
|
|
return Math.sin(d);
|
|
}
|
|
|
|
@SinceKotlin(version = "1.2")
|
|
@InlineOnly
|
|
private static final double sinh(double d) {
|
|
return Math.sinh(d);
|
|
}
|
|
|
|
@SinceKotlin(version = "1.2")
|
|
@InlineOnly
|
|
private static final double sqrt(double d) {
|
|
return Math.sqrt(d);
|
|
}
|
|
|
|
@SinceKotlin(version = "1.2")
|
|
@InlineOnly
|
|
private static final double tan(double d) {
|
|
return Math.tan(d);
|
|
}
|
|
|
|
@SinceKotlin(version = "1.2")
|
|
@InlineOnly
|
|
private static final double tanh(double d) {
|
|
return Math.tanh(d);
|
|
}
|
|
|
|
@SinceKotlin(version = "1.2")
|
|
public static final double truncate(double d) {
|
|
if (Double.isNaN(d) || Double.isInfinite(d)) {
|
|
return d;
|
|
}
|
|
if (d > 0.0d) {
|
|
return Math.floor(d);
|
|
}
|
|
return Math.ceil(d);
|
|
}
|
|
|
|
@SinceKotlin(version = "1.2")
|
|
@InlineOnly
|
|
private static final double withSign(double d, double d2) {
|
|
return Math.copySign(d, d2);
|
|
}
|
|
|
|
@SinceKotlin(version = "1.2")
|
|
@InlineOnly
|
|
private static final float IEEErem(float f, float f2) {
|
|
return (float) Math.IEEEremainder(f, f2);
|
|
}
|
|
|
|
@SinceKotlin(version = "1.2")
|
|
@InlineOnly
|
|
private static final float abs(float f) {
|
|
return Math.abs(f);
|
|
}
|
|
|
|
@SinceKotlin(version = "1.2")
|
|
@InlineOnly
|
|
private static final float acos(float f) {
|
|
return (float) Math.acos(f);
|
|
}
|
|
|
|
@SinceKotlin(version = "1.2")
|
|
@InlineOnly
|
|
private static final float asin(float f) {
|
|
return (float) Math.asin(f);
|
|
}
|
|
|
|
@SinceKotlin(version = "1.2")
|
|
@InlineOnly
|
|
private static final float atan(float f) {
|
|
return (float) Math.atan(f);
|
|
}
|
|
|
|
@SinceKotlin(version = "1.2")
|
|
@InlineOnly
|
|
private static final float atan2(float f, float f2) {
|
|
return (float) Math.atan2(f, f2);
|
|
}
|
|
|
|
@SinceKotlin(version = "1.8")
|
|
@WasExperimental(markerClass = {ExperimentalStdlibApi.class})
|
|
@InlineOnly
|
|
private static final float cbrt(float f) {
|
|
return (float) Math.cbrt(f);
|
|
}
|
|
|
|
@SinceKotlin(version = "1.2")
|
|
@InlineOnly
|
|
private static final float ceil(float f) {
|
|
return (float) Math.ceil(f);
|
|
}
|
|
|
|
@SinceKotlin(version = "1.2")
|
|
@InlineOnly
|
|
private static final float cos(float f) {
|
|
return (float) Math.cos(f);
|
|
}
|
|
|
|
@SinceKotlin(version = "1.2")
|
|
@InlineOnly
|
|
private static final float cosh(float f) {
|
|
return (float) Math.cosh(f);
|
|
}
|
|
|
|
@SinceKotlin(version = "1.2")
|
|
@InlineOnly
|
|
private static final float exp(float f) {
|
|
return (float) Math.exp(f);
|
|
}
|
|
|
|
@SinceKotlin(version = "1.2")
|
|
@InlineOnly
|
|
private static final float expm1(float f) {
|
|
return (float) Math.expm1(f);
|
|
}
|
|
|
|
@SinceKotlin(version = "1.2")
|
|
@InlineOnly
|
|
private static final float floor(float f) {
|
|
return (float) Math.floor(f);
|
|
}
|
|
|
|
private static final float getAbsoluteValue(float f) {
|
|
return Math.abs(f);
|
|
}
|
|
|
|
@SinceKotlin(version = "1.2")
|
|
@InlineOnly
|
|
public static /* synthetic */ void getAbsoluteValue$annotations(float f) {
|
|
}
|
|
|
|
private static final float getSign(float f) {
|
|
return Math.signum(f);
|
|
}
|
|
|
|
@SinceKotlin(version = "1.2")
|
|
@InlineOnly
|
|
public static /* synthetic */ void getSign$annotations(float f) {
|
|
}
|
|
|
|
private static final float getUlp(float f) {
|
|
return Math.ulp(f);
|
|
}
|
|
|
|
@SinceKotlin(version = "1.2")
|
|
@InlineOnly
|
|
public static /* synthetic */ void getUlp$annotations(float f) {
|
|
}
|
|
|
|
@SinceKotlin(version = "1.2")
|
|
@InlineOnly
|
|
private static final float hypot(float f, float f2) {
|
|
return (float) Math.hypot(f, f2);
|
|
}
|
|
|
|
@SinceKotlin(version = "1.2")
|
|
@InlineOnly
|
|
private static final float ln(float f) {
|
|
return (float) Math.log(f);
|
|
}
|
|
|
|
@SinceKotlin(version = "1.2")
|
|
@InlineOnly
|
|
private static final float ln1p(float f) {
|
|
return (float) Math.log1p(f);
|
|
}
|
|
|
|
@SinceKotlin(version = "1.2")
|
|
public static final float log(float f, float f2) {
|
|
if (f2 <= 0.0f || f2 == 1.0f) {
|
|
return Float.NaN;
|
|
}
|
|
return (float) (Math.log(f) / Math.log(f2));
|
|
}
|
|
|
|
@SinceKotlin(version = "1.2")
|
|
@InlineOnly
|
|
private static final float log10(float f) {
|
|
return (float) Math.log10(f);
|
|
}
|
|
|
|
@SinceKotlin(version = "1.2")
|
|
public static final float log2(float f) {
|
|
return (float) (Math.log(f) / Constants.LN2);
|
|
}
|
|
|
|
@SinceKotlin(version = "1.2")
|
|
@InlineOnly
|
|
private static final float max(float f, float f2) {
|
|
return Math.max(f, f2);
|
|
}
|
|
|
|
@SinceKotlin(version = "1.2")
|
|
@InlineOnly
|
|
private static final float min(float f, float f2) {
|
|
return Math.min(f, f2);
|
|
}
|
|
|
|
@SinceKotlin(version = "1.2")
|
|
@InlineOnly
|
|
private static final float nextDown(float f) {
|
|
return Math.nextAfter(f, Double.NEGATIVE_INFINITY);
|
|
}
|
|
|
|
@SinceKotlin(version = "1.2")
|
|
@InlineOnly
|
|
private static final float nextTowards(float f, float f2) {
|
|
return Math.nextAfter(f, f2);
|
|
}
|
|
|
|
@SinceKotlin(version = "1.2")
|
|
@InlineOnly
|
|
private static final float nextUp(float f) {
|
|
return Math.nextUp(f);
|
|
}
|
|
|
|
@SinceKotlin(version = "1.2")
|
|
@InlineOnly
|
|
private static final double pow(double d, int i) {
|
|
return Math.pow(d, i);
|
|
}
|
|
|
|
@SinceKotlin(version = "1.2")
|
|
@InlineOnly
|
|
private static final float round(float f) {
|
|
return (float) Math.rint(f);
|
|
}
|
|
|
|
@SinceKotlin(version = "1.2")
|
|
public static final long roundToLong(float f) {
|
|
return roundToLong(f);
|
|
}
|
|
|
|
@SinceKotlin(version = "1.2")
|
|
@InlineOnly
|
|
private static final float sign(float f) {
|
|
return Math.signum(f);
|
|
}
|
|
|
|
@SinceKotlin(version = "1.2")
|
|
@InlineOnly
|
|
private static final float sin(float f) {
|
|
return (float) Math.sin(f);
|
|
}
|
|
|
|
@SinceKotlin(version = "1.2")
|
|
@InlineOnly
|
|
private static final float sinh(float f) {
|
|
return (float) Math.sinh(f);
|
|
}
|
|
|
|
@SinceKotlin(version = "1.2")
|
|
@InlineOnly
|
|
private static final float sqrt(float f) {
|
|
return (float) Math.sqrt(f);
|
|
}
|
|
|
|
@SinceKotlin(version = "1.2")
|
|
@InlineOnly
|
|
private static final float tan(float f) {
|
|
return (float) Math.tan(f);
|
|
}
|
|
|
|
@SinceKotlin(version = "1.2")
|
|
@InlineOnly
|
|
private static final float tanh(float f) {
|
|
return (float) Math.tanh(f);
|
|
}
|
|
|
|
@SinceKotlin(version = "1.2")
|
|
@InlineOnly
|
|
private static final double withSign(double d, int i) {
|
|
return Math.copySign(d, i);
|
|
}
|
|
|
|
@SinceKotlin(version = "1.2")
|
|
@InlineOnly
|
|
private static final int abs(int i) {
|
|
return Math.abs(i);
|
|
}
|
|
|
|
private static final int getAbsoluteValue(int i) {
|
|
return Math.abs(i);
|
|
}
|
|
|
|
@SinceKotlin(version = "1.2")
|
|
@InlineOnly
|
|
public static /* synthetic */ void getAbsoluteValue$annotations(int i) {
|
|
}
|
|
|
|
public static int getSign(int i) {
|
|
return Integer.signum(i);
|
|
}
|
|
|
|
@SinceKotlin(version = "1.2")
|
|
public static /* synthetic */ void getSign$annotations(int i) {
|
|
}
|
|
|
|
@SinceKotlin(version = "1.2")
|
|
@InlineOnly
|
|
private static final int max(int i, int i2) {
|
|
return Math.max(i, i2);
|
|
}
|
|
|
|
@SinceKotlin(version = "1.2")
|
|
@InlineOnly
|
|
private static final int min(int i, int i2) {
|
|
return Math.min(i, i2);
|
|
}
|
|
|
|
@SinceKotlin(version = "1.2")
|
|
@InlineOnly
|
|
private static final float pow(float f, float f2) {
|
|
return (float) Math.pow(f, f2);
|
|
}
|
|
|
|
@SinceKotlin(version = "1.2")
|
|
@InlineOnly
|
|
private static final float withSign(float f, float f2) {
|
|
return Math.copySign(f, f2);
|
|
}
|
|
|
|
@SinceKotlin(version = "1.2")
|
|
@InlineOnly
|
|
private static final long abs(long j) {
|
|
return Math.abs(j);
|
|
}
|
|
|
|
@SinceKotlin(version = "1.2")
|
|
@InlineOnly
|
|
private static final float atanh(float f) {
|
|
return (float) atanh(f);
|
|
}
|
|
|
|
private static final long getAbsoluteValue(long j) {
|
|
return Math.abs(j);
|
|
}
|
|
|
|
@SinceKotlin(version = "1.2")
|
|
@InlineOnly
|
|
public static /* synthetic */ void getAbsoluteValue$annotations(long j) {
|
|
}
|
|
|
|
public static int getSign(long j) {
|
|
return Long.signum(j);
|
|
}
|
|
|
|
@SinceKotlin(version = "1.2")
|
|
public static /* synthetic */ void getSign$annotations(long j) {
|
|
}
|
|
|
|
@SinceKotlin(version = "1.2")
|
|
@InlineOnly
|
|
private static final long max(long j, long j2) {
|
|
return Math.max(j, j2);
|
|
}
|
|
|
|
@SinceKotlin(version = "1.2")
|
|
@InlineOnly
|
|
private static final long min(long j, long j2) {
|
|
return Math.min(j, j2);
|
|
}
|
|
|
|
@SinceKotlin(version = "1.2")
|
|
@InlineOnly
|
|
private static final float pow(float f, int i) {
|
|
return (float) Math.pow(f, i);
|
|
}
|
|
|
|
@SinceKotlin(version = "1.2")
|
|
public static final int roundToInt(float f) {
|
|
if (Float.isNaN(f)) {
|
|
throw new IllegalArgumentException("Cannot round NaN value.");
|
|
}
|
|
return Math.round(f);
|
|
}
|
|
|
|
@SinceKotlin(version = "1.2")
|
|
public static final float truncate(float f) {
|
|
double ceil;
|
|
if (Float.isNaN(f) || Float.isInfinite(f)) {
|
|
return f;
|
|
}
|
|
if (f > 0.0f) {
|
|
ceil = Math.floor(f);
|
|
} else {
|
|
ceil = Math.ceil(f);
|
|
}
|
|
return (float) ceil;
|
|
}
|
|
|
|
@SinceKotlin(version = "1.2")
|
|
@InlineOnly
|
|
private static final float withSign(float f, int i) {
|
|
return Math.copySign(f, i);
|
|
}
|
|
|
|
@SinceKotlin(version = "1.2")
|
|
@InlineOnly
|
|
private static final float acosh(float f) {
|
|
return (float) acosh(f);
|
|
}
|
|
|
|
@SinceKotlin(version = "1.2")
|
|
@InlineOnly
|
|
private static final float asinh(float f) {
|
|
return (float) asinh(f);
|
|
}
|
|
}
|