Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 517 for bigN (0.08 sec)

  1. android/guava-tests/test/com/google/common/primitives/UnsignedLongTest.java

              .add(doubleConversionTest + i);
          BigInteger bigI = BigInteger.valueOf(i);
          testBigIntegersBuilder
              .add(bigI)
              .add(BigInteger.valueOf(Long.MAX_VALUE).add(bigI))
              .add(BigInteger.valueOf(Long.MIN_VALUE).add(bigI))
              .add(BigInteger.valueOf(Integer.MAX_VALUE).add(bigI))
              .add(BigInteger.valueOf(Integer.MIN_VALUE).add(bigI))
              .add(BigInteger.ONE.shiftLeft(63).add(bigI))
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Feb 06 16:10:08 UTC 2024
    - 10.5K bytes
    - Viewed (0)
  2. test/codegen/memops_bigoffset.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package codegen
    
    type big1 struct {
    	w [1<<30 - 1]uint32
    }
    type big2 struct {
    	d [1<<29 - 1]uint64
    }
    
    func loadLargeOffset(sw *big1, sd *big2) (uint32, uint64) {
    
    	// ppc64x:`MOVWZ\s+[0-9]+\(R[0-9]+\)`,-`ADD`
    	a3 := sw.w[1<<10]
    	// ppc64le/power10:`MOVWZ\s+[0-9]+\(R[0-9]+\),\sR[0-9]+`,-`ADD`
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 15 18:20:54 UTC 2023
    - 2.5K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/math/IntMathTest.java

       * arithmetic.
       */
      private static int computeMeanSafely(int x, int y) {
        BigInteger bigX = BigInteger.valueOf(x);
        BigInteger bigY = BigInteger.valueOf(y);
        BigDecimal bigMean =
            new BigDecimal(bigX.add(bigY)).divide(BigDecimal.valueOf(2), BigDecimal.ROUND_FLOOR);
        // parseInt blows up on overflow as opposed to intValue() which does not.
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 07 17:50:39 UTC 2024
    - 24.5K bytes
    - Viewed (0)
  4. 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)
  5. 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)
  6. 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)
  7. src/crypto/elliptic/params.go

    func (curve *CurveParams) affineFromJacobian(x, y, z *big.Int) (xOut, yOut *big.Int) {
    	if z.Sign() == 0 {
    		return new(big.Int), new(big.Int)
    	}
    
    	zinv := new(big.Int).ModInverse(z, curve.P)
    	zinvsq := new(big.Int).Mul(zinv, zinv)
    
    	xOut = new(big.Int).Mul(x, zinvsq)
    	xOut.Mod(xOut, curve.P)
    	zinvsq.Mul(zinvsq, zinv)
    	yOut = new(big.Int).Mul(y, zinvsq)
    	yOut.Mod(yOut, curve.P)
    	return
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 16 17:46:09 UTC 2024
    - 9.6K bytes
    - Viewed (0)
  8. src/crypto/internal/nistec/p256_ordinv_test.go

    	}
    
    	// Check inv(1) and inv(N+1) against math/big
    	exp := new(big.Int).ModInverse(big.NewInt(1), N).FillBytes(make([]byte, 32))
    	big.NewInt(1).FillBytes(input)
    	out, err = nistec.P256OrdInverse(input)
    	if err != nil {
    		t.Fatal(err)
    	}
    	if !bytes.Equal(out, exp) {
    		t.Error("unexpected output for inv(1)")
    	}
    	new(big.Int).Add(N, big.NewInt(1)).FillBytes(input)
    	out, err = nistec.P256OrdInverse(input)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:29:44 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  9. test/fixedbugs/issue9604b.go

    	unop{"-", func(x *big.Int) *big.Int { return new(big.Int).Neg(x) }},
    	unop{"^", func(x *big.Int) *big.Int { return new(big.Int).Not(x) }},
    }
    
    type shiftop struct {
    	name string
    	eval func(x *big.Int, i uint) *big.Int
    }
    
    var shiftops = []shiftop{
    	shiftop{"<<", func(x *big.Int, i uint) *big.Int { return new(big.Int).Lsh(x, i) }},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:25 UTC 2023
    - 4.8K bytes
    - Viewed (0)
  10. src/crypto/elliptic/elliptic_test.go

    	xx.Add(x, p)
    	checkIsOnCurveFalse("x+P, y", xx, y)
    	yy.Add(y, p)
    	checkIsOnCurveFalse("x, y+P", x, yy)
    
    	// Check if the overflow is dropped.
    	xx.Add(x, new(big.Int).Lsh(big.NewInt(1), 535))
    	checkIsOnCurveFalse("x+2⁵³⁵, y", xx, y)
    	yy.Add(y, new(big.Int).Lsh(big.NewInt(1), 535))
    	checkIsOnCurveFalse("x, y+2⁵³⁵", x, yy)
    
    	// Check if P is treated like zero (if possible).
    	// y^2 = x^3 - 3x + B
    	// y = mod_sqrt(x^3 - 3x + B)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 27 02:00:03 UTC 2023
    - 11.6K bytes
    - Viewed (0)
Back to top