29 lines
629 B
Java
29 lines
629 B
Java
package gnu.trove;
|
|
|
|
/* loaded from: classes2.dex */
|
|
public final class HashFunctions {
|
|
public static int a(double d) {
|
|
long doubleToLongBits = Double.doubleToLongBits(d);
|
|
return (int) (doubleToLongBits ^ (doubleToLongBits >>> 32));
|
|
}
|
|
|
|
public static int a(int i) {
|
|
return i;
|
|
}
|
|
|
|
public static int a(long j) {
|
|
return (int) (j ^ (j >> 32));
|
|
}
|
|
|
|
public static int a(float f) {
|
|
return Float.floatToIntBits(f * 6.6360896E8f);
|
|
}
|
|
|
|
public static int a(Object obj) {
|
|
if (obj == null) {
|
|
return 0;
|
|
}
|
|
return obj.hashCode();
|
|
}
|
|
}
|