Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 668 for bigN (0.17 sec)

  1. pkg/registry/core/service/allocator/utils_test.go

    package allocator
    
    import (
    	"math/big"
    	"testing"
    )
    
    func TestCountBits(t *testing.T) {
    	// bigN is an integer that occupies more than one big.Word.
    	bigN, ok := big.NewInt(0).SetString("10000000000000000000000000000000000000000000000000000000000000000", 16)
    	if !ok {
    		t.Fatal("Failed to set bigN")
    	}
    	tests := []struct {
    		n        *big.Int
    		expected int
    	}{
    		{n: big.NewInt(int64(0)), expected: 0},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Oct 01 15:08:36 UTC 2021
    - 1.5K bytes
    - Viewed (0)
  2. src/crypto/elliptic/p256_test.go

    	Curve
    }
    
    func (s synthCombinedMult) CombinedMult(bigX, bigY *big.Int, baseScalar, scalar []byte) (x, y *big.Int) {
    	x1, y1 := s.ScalarBaseMult(baseScalar)
    	x2, y2 := s.ScalarMult(bigX, bigY, scalar)
    	return s.Add(x1, y1, x2, y2)
    }
    
    func TestP256CombinedMult(t *testing.T) {
    	type combinedMult interface {
    		Curve
    		CombinedMult(bigX, bigY *big.Int, baseScalar, scalar []byte) (x, y *big.Int)
    	}
    
    	p256, ok := P256().(combinedMult)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 31 16:58:48 UTC 2022
    - 4.2K bytes
    - Viewed (0)
  3. src/crypto/internal/boring/bbig/big.go

    package bbig
    
    import (
    	"crypto/internal/boring"
    	"math/big"
    	"unsafe"
    )
    
    func Enc(b *big.Int) boring.BigInt {
    	if b == nil {
    		return nil
    	}
    	x := b.Bits()
    	if len(x) == 0 {
    		return boring.BigInt{}
    	}
    	return unsafe.Slice((*uint)(&x[0]), len(x))
    }
    
    func Dec(b boring.BigInt) *big.Int {
    	if b == nil {
    		return nil
    	}
    	if len(b) == 0 {
    		return new(big.Int)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 29 14:23:28 UTC 2022
    - 603 bytes
    - Viewed (0)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. src/archive/tar/testdata/writer-big.tar

    Joe Tsai <******@****.***> 1503528984 -0700
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 24 01:35:39 UTC 2017
    - 512 bytes
    - Viewed (0)
Back to top