40 lines
1005 B
Java
40 lines
1005 B
Java
package com.google.common.primitives;
|
|
|
|
import com.google.common.base.Preconditions;
|
|
|
|
/* loaded from: classes.dex */
|
|
public final class UnsignedInts {
|
|
static int a(int i) {
|
|
return i ^ Integer.MIN_VALUE;
|
|
}
|
|
|
|
public static int a(int i, int i2) {
|
|
return Ints.a(a(i), a(i2));
|
|
}
|
|
|
|
public static int b(int i, int i2) {
|
|
return (int) (b(i) / b(i2));
|
|
}
|
|
|
|
public static long b(int i) {
|
|
return i & 4294967295L;
|
|
}
|
|
|
|
public static int c(int i, int i2) {
|
|
return (int) (b(i) % b(i2));
|
|
}
|
|
|
|
public static String d(int i, int i2) {
|
|
return Long.toString(i & 4294967295L, i2);
|
|
}
|
|
|
|
public static int a(String str, int i) {
|
|
Preconditions.a(str);
|
|
long parseLong = Long.parseLong(str, i);
|
|
if ((4294967295L & parseLong) == parseLong) {
|
|
return (int) parseLong;
|
|
}
|
|
throw new NumberFormatException("Input " + str + " in base " + i + " is not in the range of an unsigned integer");
|
|
}
|
|
}
|