Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 93 for maxInt (0.28 sec)

  1. src/internal/types/testdata/check/shifts.go

    	}
    
    	// from src/runtime/softfloat64.go:234
    	{
    		var gm uint64
    		var shift uint
    		_ = gm & (1<<shift - 1)
    	}
    
    	// from src/strconv/atof.go:326
    	{
    		var mant uint64
    		var mantbits uint
    		if mant == 2<<mantbits {}
    	}
    
    	// from src/route_bsd.go:82
    	{
    		var Addrs int32
    		const rtaRtMask = 1
    		var i uint
    		if Addrs&rtaRtMask&(1<<i) == 0 {}
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 17 19:54:27 UTC 2023
    - 12.7K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/test/testdata/arith_test.go

    		t.Errorf("arithConstShift_ssa(1) failed, wanted %d got %d", want, got)
    	}
    }
    
    // overflowConstShift_ssa verifies that constant folding for shift
    // doesn't wrap (i.e. x << MAX_INT << 1 doesn't get folded to x << 0).
    //
    //go:noinline
    func overflowConstShift64_ssa(x int64) int64 {
    	return x << uint64(0xffffffffffffffff) << uint64(1)
    }
    
    //go:noinline
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Dec 01 19:30:59 UTC 2023
    - 43.5K bytes
    - Viewed (0)
  3. src/crypto/rsa/rsa_test.go

    		t.Errorf("failed to generate key")
    	}
    	testKeyBasics(t, priv)
    }
    
    func TestNPrimeKeyGeneration(t *testing.T) {
    	primeSize := 64
    	maxN := 24
    	if testing.Short() {
    		primeSize = 16
    		maxN = 16
    	}
    	// Test that generation of N-prime keys works for N > 4.
    	for n := 5; n < maxN; n++ {
    		priv, err := GenerateMultiPrimeKey(rand.Reader, n, 64+n*primeSize)
    		if err == nil {
    			testKeyBasics(t, priv)
    		} else {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jan 12 00:55:41 UTC 2024
    - 30.9K bytes
    - Viewed (0)
  4. src/go/constant/value.go

    	// conversion to avoid precise but possibly slow Float
    	// formatting.
    	// f = mant * 2**exp
    	var mant big.Float
    	exp := f.MantExp(&mant) // 0.5 <= |mant| < 1.0
    
    	// approximate float64 mantissa m and decimal exponent d
    	// f ~ m * 10**d
    	m, _ := mant.Float64()                     // 0.5 <= |m| < 1.0
    	d := float64(exp) * (math.Ln2 / math.Ln10) // log_10(2)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 12:02:03 UTC 2023
    - 34K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/validation/validation.go

    // would exceed math.MaxUint, in which case math.MaxUint is returned.
    func multiplyWithOverflowGuard(baseCost, cardinality uint64) uint64 {
    	if baseCost == 0 {
    		// an empty rule can return 0, so guard for that here
    		return 0
    	} else if math.MaxUint/baseCost < cardinality {
    		return math.MaxUint
    	}
    	return baseCost * cardinality
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 10 22:07:40 UTC 2024
    - 82.6K bytes
    - Viewed (0)
  6. src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go

    		{"Log2E", Const, 0},
    		{"Logb", Func, 0},
    		{"Max", Func, 0},
    		{"MaxFloat32", Const, 0},
    		{"MaxFloat64", Const, 0},
    		{"MaxInt", Const, 17},
    		{"MaxInt16", Const, 0},
    		{"MaxInt32", Const, 0},
    		{"MaxInt64", Const, 0},
    		{"MaxInt8", Const, 0},
    		{"MaxUint", Const, 17},
    		{"MaxUint16", Const, 0},
    		{"MaxUint32", Const, 0},
    		{"MaxUint64", Const, 0},
    		{"MaxUint8", Const, 0},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 534.2K bytes
    - Viewed (0)
  7. src/flag/flag_test.go

      -Z int
        	an int that defaults to zero
      -ZP0 value
        	a flag whose String method panics when it is zero
      -ZP1 value
        	a flag whose String method panics when it is zero
      -maxT timeout
        	set timeout for dial
    
    panic calling String method on zero flag_test.zeroPanicker for flag ZP0: panic!
    panic calling String method on zero flag_test.zeroPanicker for flag ZP1: panic!
    `
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 18:38:24 UTC 2024
    - 22K bytes
    - Viewed (0)
  8. src/cmd/vendor/github.com/google/pprof/internal/report/report.go

    		minValue = int64(float64(minValue) * r)
    		maxValue = int64(float64(maxValue) * r)
    	}
    
    	_, minUnit := measurement.Scale(minValue, o.SampleUnit, "minimum")
    	_, maxUnit := measurement.Scale(maxValue, o.SampleUnit, "minimum")
    
    	unit := minUnit
    	if minUnit != maxUnit && minValue*100 < maxValue && o.OutputFormat != Callgrind {
    		// Minimum and maximum values have different units. Scale
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 19:48:28 UTC 2024
    - 37.5K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/lite/transforms/prepare_quantize_helper.h

              /*scale=*/bound / -llvm::minIntN(tensor_property.number_of_bits),
              /*zeroPoint=*/0, llvm::minIntN(tensor_property.number_of_bits),
              llvm::maxIntN(tensor_property.number_of_bits));
        } else {
          // int16 uses range [-32767, 32767]
          if (tensor_property.number_of_bits == 16) {
            max = std::max(std::abs(min), std::abs(max));
            min = -max;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 03 18:01:23 UTC 2024
    - 28K bytes
    - Viewed (0)
  10. src/runtime/signal_unix.go

    		// Unfortunately, that's complicated to do in general (mostly for x86
    		// and s930x, but other archs have non-standard instruction lengths also).
    		// Opt to print 16 bytes, which covers most instructions.
    		const maxN = 16
    		n := uintptr(maxN)
    		// We have to be careful, though. If we're near the end of
    		// a page and the following page isn't mapped, we could
    		// segfault. So make sure we don't straddle a page (even though
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 10 16:04:54 UTC 2024
    - 45K bytes
    - Viewed (0)
Back to top