mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2025-01-09 13:43:22 +00:00
293 lines
6.6 KiB
Smali
293 lines
6.6 KiB
Smali
.class final Lcom/google/common/hash/SipHashFunction;
|
|
.super Lcom/google/common/hash/AbstractHashFunction;
|
|
.source "SipHashFunction.java"
|
|
|
|
# interfaces
|
|
.implements Ljava/io/Serializable;
|
|
|
|
|
|
# annotations
|
|
.annotation runtime Lcom/google/common/hash/ElementTypesAreNonnullByDefault;
|
|
.end annotation
|
|
|
|
.annotation runtime Lcom/google/errorprone/annotations/Immutable;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Lcom/google/common/hash/SipHashFunction$SipHasher;
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field static final SIP_HASH_24:Lcom/google/common/hash/HashFunction;
|
|
|
|
.field private static final serialVersionUID:J
|
|
|
|
|
|
# instance fields
|
|
.field private final c:I
|
|
|
|
.field private final d:I
|
|
|
|
.field private final k0:J
|
|
|
|
.field private final k1:J
|
|
|
|
|
|
# direct methods
|
|
.method static constructor <clinit>()V
|
|
.locals 8
|
|
|
|
.line 39
|
|
new-instance v7, Lcom/google/common/hash/SipHashFunction;
|
|
|
|
const/4 v1, 0x2
|
|
|
|
const/4 v2, 0x4
|
|
|
|
const-wide v3, 0x706050403020100L
|
|
|
|
const-wide v5, 0xf0e0d0c0b0a0908L
|
|
|
|
move-object v0, v7
|
|
|
|
invoke-direct/range {v0 .. v6}, Lcom/google/common/hash/SipHashFunction;-><init>(IIJJ)V
|
|
|
|
sput-object v7, Lcom/google/common/hash/SipHashFunction;->SIP_HASH_24:Lcom/google/common/hash/HashFunction;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method constructor <init>(IIJJ)V
|
|
.locals 4
|
|
|
|
.line 56
|
|
invoke-direct {p0}, Lcom/google/common/hash/AbstractHashFunction;-><init>()V
|
|
|
|
const/4 v0, 0x1
|
|
|
|
const/4 v1, 0x0
|
|
|
|
if-lez p1, :cond_0
|
|
|
|
move v2, v0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
move v2, v1
|
|
|
|
:goto_0
|
|
const-string v3, "The number of SipRound iterations (c=%s) during Compression must be positive."
|
|
|
|
.line 57
|
|
invoke-static {v2, v3, p1}, Lcom/google/common/base/Preconditions;->checkArgument(ZLjava/lang/String;I)V
|
|
|
|
if-lez p2, :cond_1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
move v0, v1
|
|
|
|
:goto_1
|
|
const-string v1, "The number of SipRound iterations (d=%s) during Finalization must be positive."
|
|
|
|
.line 59
|
|
invoke-static {v0, v1, p2}, Lcom/google/common/base/Preconditions;->checkArgument(ZLjava/lang/String;I)V
|
|
|
|
iput p1, p0, Lcom/google/common/hash/SipHashFunction;->c:I
|
|
|
|
iput p2, p0, Lcom/google/common/hash/SipHashFunction;->d:I
|
|
|
|
iput-wide p3, p0, Lcom/google/common/hash/SipHashFunction;->k0:J
|
|
|
|
iput-wide p5, p0, Lcom/google/common/hash/SipHashFunction;->k1:J
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public bits()I
|
|
.locals 0
|
|
|
|
const/16 p0, 0x40
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method public equals(Ljava/lang/Object;)Z
|
|
.locals 6
|
|
.param p1 # Ljava/lang/Object;
|
|
.annotation runtime Ljavax/annotation/CheckForNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 86
|
|
instance-of v0, p1, Lcom/google/common/hash/SipHashFunction;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 87
|
|
check-cast p1, Lcom/google/common/hash/SipHashFunction;
|
|
|
|
iget v0, p0, Lcom/google/common/hash/SipHashFunction;->c:I
|
|
|
|
.line 88
|
|
iget v2, p1, Lcom/google/common/hash/SipHashFunction;->c:I
|
|
|
|
if-ne v0, v2, :cond_0
|
|
|
|
iget v0, p0, Lcom/google/common/hash/SipHashFunction;->d:I
|
|
|
|
iget v2, p1, Lcom/google/common/hash/SipHashFunction;->d:I
|
|
|
|
if-ne v0, v2, :cond_0
|
|
|
|
iget-wide v2, p0, Lcom/google/common/hash/SipHashFunction;->k0:J
|
|
|
|
iget-wide v4, p1, Lcom/google/common/hash/SipHashFunction;->k0:J
|
|
|
|
cmp-long v0, v2, v4
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
iget-wide v2, p0, Lcom/google/common/hash/SipHashFunction;->k1:J
|
|
|
|
iget-wide p0, p1, Lcom/google/common/hash/SipHashFunction;->k1:J
|
|
|
|
cmp-long p0, v2, p0
|
|
|
|
if-nez p0, :cond_0
|
|
|
|
const/4 v1, 0x1
|
|
|
|
:cond_0
|
|
return v1
|
|
.end method
|
|
|
|
.method public hashCode()I
|
|
.locals 4
|
|
|
|
.line 95
|
|
invoke-virtual {p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Ljava/lang/Object;->hashCode()I
|
|
|
|
move-result v0
|
|
|
|
iget v1, p0, Lcom/google/common/hash/SipHashFunction;->c:I
|
|
|
|
xor-int/2addr v0, v1
|
|
|
|
iget v1, p0, Lcom/google/common/hash/SipHashFunction;->d:I
|
|
|
|
xor-int/2addr v0, v1
|
|
|
|
int-to-long v0, v0
|
|
|
|
iget-wide v2, p0, Lcom/google/common/hash/SipHashFunction;->k0:J
|
|
|
|
xor-long/2addr v0, v2
|
|
|
|
iget-wide v2, p0, Lcom/google/common/hash/SipHashFunction;->k1:J
|
|
|
|
xor-long/2addr v0, v2
|
|
|
|
long-to-int p0, v0
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method public newHasher()Lcom/google/common/hash/Hasher;
|
|
.locals 8
|
|
|
|
.line 74
|
|
new-instance v7, Lcom/google/common/hash/SipHashFunction$SipHasher;
|
|
|
|
iget v1, p0, Lcom/google/common/hash/SipHashFunction;->c:I
|
|
|
|
iget v2, p0, Lcom/google/common/hash/SipHashFunction;->d:I
|
|
|
|
iget-wide v3, p0, Lcom/google/common/hash/SipHashFunction;->k0:J
|
|
|
|
iget-wide v5, p0, Lcom/google/common/hash/SipHashFunction;->k1:J
|
|
|
|
move-object v0, v7
|
|
|
|
invoke-direct/range {v0 .. v6}, Lcom/google/common/hash/SipHashFunction$SipHasher;-><init>(IIJJ)V
|
|
|
|
return-object v7
|
|
.end method
|
|
|
|
.method public toString()Ljava/lang/String;
|
|
.locals 7
|
|
|
|
iget v0, p0, Lcom/google/common/hash/SipHashFunction;->c:I
|
|
|
|
iget v1, p0, Lcom/google/common/hash/SipHashFunction;->d:I
|
|
|
|
iget-wide v2, p0, Lcom/google/common/hash/SipHashFunction;->k0:J
|
|
|
|
iget-wide v4, p0, Lcom/google/common/hash/SipHashFunction;->k1:J
|
|
|
|
.line 81
|
|
new-instance p0, Ljava/lang/StringBuilder;
|
|
|
|
const/16 v6, 0x51
|
|
|
|
invoke-direct {p0, v6}, Ljava/lang/StringBuilder;-><init>(I)V
|
|
|
|
const-string v6, "Hashing.sipHash"
|
|
|
|
invoke-virtual {p0, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-virtual {p0, v0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-virtual {p0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object p0
|
|
|
|
const-string v0, "("
|
|
|
|
invoke-virtual {p0, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-virtual {p0, v2, v3}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object p0
|
|
|
|
const-string v0, ", "
|
|
|
|
invoke-virtual {p0, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-virtual {p0, v4, v5}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object p0
|
|
|
|
const-string v0, ")"
|
|
|
|
invoke-virtual {p0, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-virtual {p0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|