Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 137 for bigN (0.06 sec)

  1. android/guava-tests/test/com/google/common/math/LongMathTest.java

      private static boolean fitsInLong(BigInteger big) {
        return big.bitLength() <= 63;
      }
    
      private static final BigInteger MAX_LONG = BigInteger.valueOf(Long.MAX_VALUE);
      private static final BigInteger MIN_LONG = BigInteger.valueOf(Long.MIN_VALUE);
    
      private static long saturatedCast(BigInteger big) {
        if (big.compareTo(MAX_LONG) > 0) {
          return Long.MAX_VALUE;
        }
        if (big.compareTo(MIN_LONG) < 0) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Mar 04 20:15:57 UTC 2024
    - 32.5K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/math/LongMathTest.java

      private static boolean fitsInLong(BigInteger big) {
        return big.bitLength() <= 63;
      }
    
      private static final BigInteger MAX_LONG = BigInteger.valueOf(Long.MAX_VALUE);
      private static final BigInteger MIN_LONG = BigInteger.valueOf(Long.MIN_VALUE);
    
      private static long saturatedCast(BigInteger big) {
        if (big.compareTo(MAX_LONG) > 0) {
          return Long.MAX_VALUE;
        }
        if (big.compareTo(MIN_LONG) < 0) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Mar 04 20:15:57 UTC 2024
    - 32.5K bytes
    - Viewed (0)
  3. src/time/zoneinfo_read.go

    	}
    	p := d.p[0:n]
    	d.p = d.p[n:]
    	return p
    }
    
    func (d *dataIO) big4() (n uint32, ok bool) {
    	p := d.read(4)
    	if len(p) < 4 {
    		d.error = true
    		return 0, false
    	}
    	return uint32(p[3]) | uint32(p[2])<<8 | uint32(p[1])<<16 | uint32(p[0])<<24, true
    }
    
    func (d *dataIO) big8() (n uint64, ok bool) {
    	n1, ok1 := d.big4()
    	n2, ok2 := d.big4()
    	if !ok1 || !ok2 {
    		d.error = true
    		return 0, false
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 19:57:43 UTC 2024
    - 14.4K bytes
    - Viewed (0)
  4. src/crypto/rsa/rsa.go

    	}
    
    	// Fill in the backwards-compatibility *big.Int values.
    	if priv.Precomputed.Dp != nil {
    		return
    	}
    
    	priv.Precomputed.Dp = new(big.Int).Sub(priv.Primes[0], bigOne)
    	priv.Precomputed.Dp.Mod(priv.D, priv.Precomputed.Dp)
    
    	priv.Precomputed.Dq = new(big.Int).Sub(priv.Primes[1], bigOne)
    	priv.Precomputed.Dq.Mod(priv.D, priv.Precomputed.Dq)
    
    	priv.Precomputed.Qinv = new(big.Int).ModInverse(priv.Primes[1], priv.Primes[0])
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 00:11:18 UTC 2024
    - 23.4K bytes
    - Viewed (0)
  5. src/crypto/internal/mlkem768/mlkem768_test.go

    func TestZetas(t *testing.T) {
    	ζ := big.NewInt(17)
    	q := big.NewInt(q)
    	for k, zeta := range zetas {
    		// ζ^BitRev7(k) mod q
    		exp := new(big.Int).Exp(ζ, big.NewInt(int64(BitRev7(uint8(k)))), q)
    		if big.NewInt(int64(zeta)).Cmp(exp) != 0 {
    			t.Errorf("zetas[%d] = %v, expected %v", k, zeta, exp)
    		}
    	}
    }
    
    func TestGammas(t *testing.T) {
    	ζ := big.NewInt(17)
    	q := big.NewInt(q)
    	for k, gamma := range gammas {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 06 15:27:18 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  6. src/math/rand/v2/regress_test.go

    					}
    					x = int(big)
    
    				case reflect.Uint:
    					if m.Name == "Uint" {
    						continue
    					}
    					big := uint64s[repeat%len(uint64s)]
    					if uint64(uint(big)) != big {
    						r.Uint64N(big) // what would happen on 64-bit machine, to keep stream in sync
    						if *update {
    							t.Fatalf("must run -update on 64-bit machine")
    						}
    						p++
    						continue
    					}
    					x = uint(big)
    
    				case reflect.Int32:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 18:03:11 UTC 2024
    - 20.3K bytes
    - Viewed (0)
  7. cmd/kube-apiserver/app/options/validation_test.go

    		},
    		{
    			name:         "service cidr is too big",
    			expectErrors: true,
    			options:      makeOptionsWithCIDRs("10.0.0.0/8", ""),
    		},
    		{
    			name:         "service cidr IPv4 is too big but gate enbled",
    			expectErrors: false,
    			options:      makeOptionsWithCIDRs("10.0.0.0/8", ""),
    			gate:         true,
    		},
    		{
    			name:         "service cidr IPv6 is too big but gate enbled",
    			expectErrors: false,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 11.4K bytes
    - Viewed (0)
  8. src/crypto/ecdsa/ecdsa.go

    func (curve *nistCurve[Point]) pointToAffine(p Point) (x, y *big.Int, err error) {
    	out := p.Bytes()
    	if len(out) == 1 && out[0] == 0 {
    		// This is the encoding of the point at infinity.
    		return nil, nil, errors.New("ecdsa: public key point is the infinity")
    	}
    	byteLen := (curve.curve.Params().BitSize + 7) / 8
    	x = new(big.Int).SetBytes(out[1 : 1+byteLen])
    	y = new(big.Int).SetBytes(out[1+byteLen:])
    	return x, y, nil
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 00:11:18 UTC 2024
    - 20.4K bytes
    - Viewed (0)
  9. src/encoding/binary/binary_test.go

    func TestLittleEndianPtrWrite(t *testing.T) { testWrite(t, LittleEndian, little, &s) }
    
    func TestBigEndianRead(t *testing.T)     { testRead(t, BigEndian, big, s) }
    func TestBigEndianWrite(t *testing.T)    { testWrite(t, BigEndian, big, s) }
    func TestBigEndianPtrWrite(t *testing.T) { testWrite(t, BigEndian, big, &s) }
    
    func TestReadSlice(t *testing.T) {
    	t.Run("Read", func(t *testing.T) {
    		slice := make([]int32, 2)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 19:16:18 UTC 2024
    - 25.4K bytes
    - Viewed (0)
  10. src/crypto/ecdsa/ecdsa_test.go

    	}
    
    	if r0.Cmp(r1) == 0 {
    		t.Errorf("two signatures of the same message produced the same nonce")
    	}
    }
    
    func fromHex(s string) *big.Int {
    	r, ok := new(big.Int).SetString(s, 16)
    	if !ok {
    		panic("bad hex")
    	}
    	return r
    }
    
    func TestVectors(t *testing.T) {
    	// This test runs the full set of NIST test vectors from
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 21:33:58 UTC 2024
    - 13.5K bytes
    - Viewed (0)
Back to top