Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 59 for bigIntegers (0.19 sec)

  1. guava/src/com/google/common/net/InetAddresses.java

       * Returns the {@code Inet4Address} corresponding to a given {@code BigInteger}.
       *
       * @param address BigInteger representing the IPv4 address
       * @return Inet4Address representation of the given BigInteger
       * @throws IllegalArgumentException if the BigInteger is not between 0 and 2^32-1
       * @since 28.2
       */
      public static Inet4Address fromIPv4BigInteger(BigInteger address) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Feb 19 21:24:11 UTC 2025
    - 47.4K bytes
    - Viewed (0)
  2. guava/src/com/google/common/primitives/UnsignedLong.java

        return (double) ((value >>> 1) | (value & 1)) * 2.0;
      }
    
      /** Returns the value of this {@code UnsignedLong} as a {@link BigInteger}. */
      public BigInteger bigIntegerValue() {
        BigInteger bigInt = BigInteger.valueOf(value & UNSIGNED_MASK);
        if (value < 0) {
          bigInt = bigInt.setBit(Long.SIZE - 1);
        }
        return bigInt;
      }
    
      @Override
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Jun 04 13:03:16 UTC 2025
    - 8.8K bytes
    - Viewed (0)
  3. src/test/java/jcifs/pac/kerberos/KerberosTicketTest.java

        }
    
        @Test
        void testConstructorWithBigIntegerVersion() throws IOException {
            // Test with a BigInteger Kerberos version
            byte[] validToken = createTestTicketBytes(new BigInteger(KerberosConstants.KERBEROS_VERSION), SERVER_REALM, SERVER_PRINCIPAL_NAME,
                    ENCRYPTION_TYPE, ENCRYPTED_DATA, null);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.4K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/math/DoubleUtils.java

        long significand = doubleToRawLongBits(x) & SIGNIFICAND_MASK;
        return longBitsToDouble(significand | ONE_BITS);
      }
    
      static double bigToDouble(BigInteger x) {
        // This is an extremely fast implementation of BigInteger.doubleValue(). JDK patch pending.
        BigInteger absX = x.abs();
        int exponent = absX.bitLength() - 1;
        // exponent == floor(log2(abs(x)))
        if (exponent < Long.SIZE - 1) {
          return x.longValue();
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Dec 21 03:10:51 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  5. src/test/java/jcifs/pac/PacDataInputStreamTest.java

        public void testReadFiletime() throws IOException {
            // A non-null date
            long time = System.currentTimeMillis();
            BigInteger filetime = BigInteger.valueOf(time)
                    .add(BigInteger.valueOf(SmbConstants.MILLISECONDS_BETWEEN_1970_AND_1601))
                    .multiply(BigInteger.valueOf(10000L));
    
            byte[] data = new byte[8];
            long low = filetime.longValue();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 9.2K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/primitives/UnsignedLongsTest.java

    import static com.google.common.truth.Truth.assertThat;
    import static java.math.BigInteger.ONE;
    
    import com.google.common.annotations.GwtCompatible;
    import com.google.common.annotations.GwtIncompatible;
    import com.google.common.annotations.J2ktIncompatible;
    import com.google.common.collect.testing.Helpers;
    import com.google.common.testing.NullPointerTester;
    import java.math.BigInteger;
    import java.util.Arrays;
    import java.util.Comparator;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 12.8K bytes
    - Viewed (0)
  7. guava/src/com/google/common/primitives/UnsignedInteger.java

       */
      @Override
      public double doubleValue() {
        return longValue();
      }
    
      /** Returns the value of this {@code UnsignedInteger} as a {@link BigInteger}. */
      public BigInteger bigIntegerValue() {
        return BigInteger.valueOf(longValue());
      }
    
      /**
       * Compares this unsigned integer to another unsigned integer. Returns {@code 0} if they are
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 8.3K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/math/DoubleUtilsTest.java

    import static com.google.common.truth.Truth.assertThat;
    import static org.junit.Assert.assertThrows;
    
    import java.lang.reflect.Method;
    import java.math.BigInteger;
    import junit.framework.TestCase;
    import org.jspecify.annotations.NullUnmarked;
    
    /**
     * Tests for {@link DoubleUtils}.
     *
     * @author Louis Wasserman
     */
    @NullUnmarked
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 3K bytes
    - Viewed (0)
  9. guava/src/com/google/common/math/DoubleUtils.java

        long significand = doubleToRawLongBits(x) & SIGNIFICAND_MASK;
        return longBitsToDouble(significand | ONE_BITS);
      }
    
      static double bigToDouble(BigInteger x) {
        // This is an extremely fast implementation of BigInteger.doubleValue(). JDK patch pending.
        BigInteger absX = x.abs();
        int exponent = absX.bitLength() - 1;
        // exponent == floor(log2(abs(x)))
        if (exponent < Long.SIZE - 1) {
          return x.longValue();
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Dec 21 03:10:51 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  10. okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/Adapters.kt

          tagClass = DerHeader.TAG_CLASS_UNIVERSAL,
          tag = 2L,
          codec =
            object : BasicDerAdapter.Codec<BigInteger> {
              override fun decode(reader: DerReader): BigInteger = reader.readBigInteger()
    
              override fun encode(
                writer: DerWriter,
                value: BigInteger,
              ) = writer.writeBigInteger(value)
            },
        )
    
      val BIT_STRING =
        BasicDerAdapter(
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 15K bytes
    - Viewed (0)
Back to top