- Sort Score
- Num 10 results
- Language All
Results 51 - 60 of 73 for BigInteger (0.06 seconds)
-
okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/CertificateAdapters.kt
* See the License for the specific language governing permissions and * limitations under the License. */ package okhttp3.tls.internal.der import java.math.BigInteger import java.net.ProtocolException import okio.ByteString /** * ASN.1 adapters adapted from the specifications in [RFC 5280][rfc_5280]. * * [rfc_5280]: https://tools.ietf.org/html/rfc5280 */
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Jan 27 09:00:39 GMT 2026 - 13.6K bytes - Click Count (0) -
android/guava/src/com/google/common/primitives/UnsignedLongs.java
static final int[] maxValueMods = new int[Character.MAX_RADIX + 1]; static final int[] maxSafeDigits = new int[Character.MAX_RADIX + 1]; static { BigInteger overflow = BigInteger.ONE.shiftLeft(64); for (int i = Character.MIN_RADIX; i <= Character.MAX_RADIX; i++) { maxValueDivs[i] = divide(MAX_VALUE, i); maxValueMods[i] = (int) remainder(MAX_VALUE, i);
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Jan 05 22:13:21 GMT 2026 - 17.8K bytes - Click Count (0) -
android/guava/src/com/google/common/math/LongMath.java
import com.google.common.primitives.UnsignedLongs; import com.google.errorprone.annotations.InlineMe; import java.math.BigInteger; import java.math.RoundingMode; /** * A class for arithmetic on values of type {@code long}. Where possible, methods are defined and * named analogously to their {@code BigInteger} counterparts. * * <p>The implementations of many methods in this class are based on material from Henry S. Warren,Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 09 23:01:02 GMT 2026 - 46.8K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/math/DoubleMathTest.java
import com.google.common.collect.Iterables; import com.google.common.primitives.Doubles; import com.google.common.testing.NullPointerTester; import java.math.BigDecimal; import java.math.BigInteger; import java.math.RoundingMode; import java.util.Arrays; import junit.framework.TestCase; import org.jspecify.annotations.NullUnmarked; /** * Tests for {@code DoubleMath}. * * @author Louis WassermanCreated: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Feb 03 16:20:39 GMT 2026 - 27.5K bytes - Click Count (0) -
android/guava-testlib/src/com/google/common/testing/FreshValueGenerator.java
} @Generates UnsignedLong generateUnsignedLong() { return UnsignedLong.fromLongBits(generateLong()); } @Generates BigInteger generateBigInteger() { return BigInteger.valueOf(generateInt()); } @Generates BigDecimal generateBigDecimal() { return BigDecimal.valueOf(generateInt()); } @Generates
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Mar 17 16:45:58 GMT 2026 - 28.1K bytes - Click Count (0) -
guava-tests/test/com/google/common/math/DoubleMathTest.java
import com.google.common.collect.Iterables; import com.google.common.primitives.Doubles; import com.google.common.testing.NullPointerTester; import java.math.BigDecimal; import java.math.BigInteger; import java.math.RoundingMode; import java.util.Arrays; import junit.framework.TestCase; import org.jspecify.annotations.NullUnmarked; /** * Tests for {@code DoubleMath}. * * @author Louis WassermanCreated: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Feb 03 16:20:39 GMT 2026 - 27.5K bytes - Click Count (0) -
guava-testlib/src/com/google/common/testing/FreshValueGenerator.java
} @Generates UnsignedLong generateUnsignedLong() { return UnsignedLong.fromLongBits(generateLong()); } @Generates BigInteger generateBigInteger() { return BigInteger.valueOf(generateInt()); } @Generates BigDecimal generateBigDecimal() { return BigDecimal.valueOf(generateInt()); } @Generates
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Mar 17 16:45:58 GMT 2026 - 28.7K bytes - Click Count (0) -
guava-tests/test/com/google/common/math/StatsTesting.java
BigInteger.valueOf(Integer.MAX_VALUE) .multiply(BigInteger.valueOf(3L)) .divide(BigInteger.valueOf(4L)) .doubleValue(); static final double LARGE_INTEGER_VALUES_POPULATION_VARIANCE = BigInteger.valueOf(Integer.MAX_VALUE) .multiply(BigInteger.valueOf(Integer.MAX_VALUE)) .divide(BigInteger.valueOf(16L)) .doubleValue();
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Mar 03 05:21:26 GMT 2026 - 24K bytes - Click Count (0) -
guava-tests/test/com/google/common/collect/DiscreteDomainTest.java
} public void testBigIntegersOffset() { assertEquals(BigInteger.ONE, DiscreteDomain.bigIntegers().offset(BigInteger.ZERO, 1)); assertEquals( BigInteger.valueOf(Long.MAX_VALUE), DiscreteDomain.bigIntegers().offset(BigInteger.ZERO, Long.MAX_VALUE)); } public void testBigIntegersOffsetExceptions() { assertThrows(
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Dec 19 18:03:30 GMT 2024 - 3.7K bytes - Click Count (0) -
guava-tests/test/com/google/common/primitives/LongsTest.java
.that(Longs.tryParse(BigInteger.valueOf(MAX_VALUE).add(BigInteger.ONE).toString())) .isNull(); assertWithMessage("Max long * 10") .that(Longs.tryParse(BigInteger.valueOf(MAX_VALUE).multiply(BigInteger.TEN).toString())) .isNull(); assertWithMessage("Min long - 1") .that(Longs.tryParse(BigInteger.valueOf(MIN_VALUE).subtract(BigInteger.ONE).toString())) .isNull();
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Mar 17 16:45:58 GMT 2026 - 28.8K bytes - Click Count (0)