.class public Lkotlin/e/c; .super Lkotlin/e/b; .source "MathJVM.kt" # direct methods .method public static final D(F)I .locals 1 invoke-static {p0}, Ljava/lang/Float;->isNaN(F)Z move-result v0 if-nez v0, :cond_0 invoke-static {p0}, Ljava/lang/Math;->round(F)I move-result p0 return p0 :cond_0 new-instance p0, Ljava/lang/IllegalArgumentException; const-string v0, "Cannot round NaN value." invoke-direct {p0, v0}, Ljava/lang/IllegalArgumentException;->(Ljava/lang/String;)V check-cast p0, Ljava/lang/Throwable; throw p0 .end method .method public static final g(D)I .locals 3 invoke-static {p0, p1}, Ljava/lang/Double;->isNaN(D)Z move-result v0 if-nez v0, :cond_2 const-wide v0, 0x41dfffffffc00000L # 2.147483647E9 cmpl-double v2, p0, v0 if-lez v2, :cond_0 const p0, 0x7fffffff return p0 :cond_0 const-wide/high16 v0, -0x3e20000000000000L # -2.147483648E9 cmpg-double v2, p0, v0 if-gez v2, :cond_1 const/high16 p0, -0x80000000 return p0 :cond_1 invoke-static {p0, p1}, Ljava/lang/Math;->round(D)J move-result-wide p0 long-to-int p1, p0 return p1 :cond_2 new-instance p0, Ljava/lang/IllegalArgumentException; const-string p1, "Cannot round NaN value." invoke-direct {p0, p1}, Ljava/lang/IllegalArgumentException;->(Ljava/lang/String;)V check-cast p0, Ljava/lang/Throwable; throw p0 .end method