MathUtils.smali
.class public Landroid/support/v4/math/MathUtils;
.super Ljava/lang/Object;
# direct methods
.method private constructor <init>()V
.registers 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public static clamp(DDD)D
.registers 8
cmpg-double v0, p0, p2
if-gez v0, :cond_5
:goto_4
return-wide p2
:cond_5
cmpl-double v0, p0, p4
if-lez v0, :cond_b
move-wide p2, p4
goto :goto_4
:cond_b
move-wide p2, p0
goto :goto_4
.end method
.method public static clamp(FFF)F
.registers 4
cmpg-float v0, p0, p1
if-gez v0, :cond_5
:goto_4
return p1
:cond_5
cmpl-float v0, p0, p2
if-lez v0, :cond_b
move p1, p2
goto :goto_4
:cond_b
move p1, p0
goto :goto_4
.end method
.method public static clamp(III)I
.registers 3
if-ge p0, p1, :cond_3
:goto_2
return p1
:cond_3
if-le p0, p2, :cond_7
move p1, p2
goto :goto_2
:cond_7
move p1, p0
goto :goto_2
.end method