Initial commit
This commit is contained in:
29
sources/com/google/common/collect/Hashing.java
Normal file
29
sources/com/google/common/collect/Hashing.java
Normal file
@@ -0,0 +1,29 @@
|
||||
package com.google.common.collect;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
final class Hashing {
|
||||
static int a(int i) {
|
||||
return (int) (Integer.rotateLeft((int) (i * (-862048943)), 15) * 461845907);
|
||||
}
|
||||
|
||||
static boolean a(int i, int i2, double d) {
|
||||
return ((double) i) > d * ((double) i2) && i2 < 1073741824;
|
||||
}
|
||||
|
||||
static int a(Object obj) {
|
||||
return a(obj == null ? 0 : obj.hashCode());
|
||||
}
|
||||
|
||||
static int a(int i, double d) {
|
||||
int max = Math.max(i, 2);
|
||||
int highestOneBit = Integer.highestOneBit(max);
|
||||
if (max <= ((int) (d * highestOneBit))) {
|
||||
return highestOneBit;
|
||||
}
|
||||
int i2 = highestOneBit << 1;
|
||||
if (i2 > 0) {
|
||||
return i2;
|
||||
}
|
||||
return 1073741824;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user