Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 528 for overflows (0.52 sec)

  1. src/internal/trace/trace_test.go

    		// The execution trace may drop CPU profile samples if the profiling buffer
    		// overflows. Based on the size of profBufWordCount, that takes a bit over
    		// 1900 CPU samples or 19 thread-seconds at a 100 Hz sample rate. If we've
    		// hit that case, then we definitely have at least one full buffer's worth
    		// of CPU samples, so we'll call that success.
    		overflowed := totalTraceSamples >= 1900
    		if traceSamples < pprofSamples {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 18.5K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/types2/typeset.go

    // type sets may choose to ignore it.
    var invalidTypeSet _TypeSet
    
    // computeUnionTypeSet may be called with check == nil.
    // The result is &invalidTypeSet if the union overflows.
    func computeUnionTypeSet(check *Checker, unionSets map[*Union]*_TypeSet, pos syntax.Pos, utyp *Union) *_TypeSet {
    	if tset, _ := unionSets[utyp]; tset != nil {
    		return tset
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 13.6K 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. src/go/types/typeset.go

    // type sets may choose to ignore it.
    var invalidTypeSet _TypeSet
    
    // computeUnionTypeSet may be called with check == nil.
    // The result is &invalidTypeSet if the union overflows.
    func computeUnionTypeSet(check *Checker, unionSets map[*Union]*_TypeSet, pos token.Pos, utyp *Union) *_TypeSet {
    	if tset, _ := unionSets[utyp]; tset != nil {
    		return tset
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 13.7K bytes
    - Viewed (0)
  5. src/cmd/gofmt/gofmt.go

    	//
    	// If we have the FileInfo from filepath.WalkDir, use it to make
    	// a buffer of the right size and avoid ReadAll's reallocations.
    	//
    	// If the size is unknown (or bogus, or overflows an int), fall back to
    	// a size-independent ReadAll.
    	size := -1
    	if info != nil && info.Mode().IsRegular() && int64(int(info.Size())) == info.Size() {
    		size = int(info.Size())
    	}
    	if size+1 <= 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 19:41:17 UTC 2024
    - 15.1K bytes
    - Viewed (0)
  6. src/slices/slices_test.go

    		name  string
    		x     []struct{}
    		count int
    	}{
    		{name: "cannot be negative", x: make([]struct{}, 0), count: -1},
    		{name: "the result of (len(x) * count) overflows, hi > 0", x: make([]struct{}, 3), count: math.MaxInt},
    		{name: "the result of (len(x) * count) overflows, lo > maxInt", x: make([]struct{}, 2), count: 1 + math.MaxInt/2},
    	} {
    		if !panics(func() { _ = Repeat(test.x, test.count) }) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 13:32:06 UTC 2024
    - 33.2K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/typecheck/typecheck.go

    		base.Errorf("non-integer %s argument in make(%v) - %v", arg, t, n.Type())
    		return false
    	}
    
    	// Do range checks for constants before DefaultLit
    	// to avoid redundant "constant NNN overflows int" errors.
    	if n.Op() == ir.OLITERAL {
    		v := toint(n.Val())
    		if constant.Sign(v) < 0 {
    			base.Errorf("negative %s argument in make(%v)", arg, t)
    			return false
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 20 19:08:34 UTC 2024
    - 30.5K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/types/size.go

    		// field types.
    		if align := typ.align; align > maxAlign {
    			maxAlign = align
    		}
    
    		// Each field needs its own registers.
    		// We sum in uint64 to avoid possible overflows.
    		intRegs += uint64(typ.intRegs)
    		floatRegs += uint64(typ.floatRegs)
    	}
    
    	// Final size includes trailing padding.
    	size = RoundUp(size, int64(maxAlign))
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 15K bytes
    - Viewed (0)
  9. src/reflect/all_test.go

    		t.Errorf("%v should overflow float32", -ovfFloat32)
    	}
    
    	maxInt32 := int64(0x7fffffff)
    	if ovf := V(int32(0)).OverflowInt(maxInt32); ovf {
    		t.Errorf("%v wrongly overflows int32", maxInt32)
    	}
    	if ovf := V(int32(0)).OverflowInt(-1 << 31); ovf {
    		t.Errorf("%v wrongly overflows int32", -int64(1)<<31)
    	}
    	ovfInt32 := int64(1 << 31)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 218.8K bytes
    - Viewed (0)
  10. src/math/big/ratconv.go

    	// apply exp5 contributions
    	// (start with exp5 so the numbers to multiply are smaller)
    	if exp5 != 0 {
    		n := exp5
    		if n < 0 {
    			n = -n
    			if n < 0 {
    				// This can occur if -n overflows. -(-1 << 63) would become
    				// -1 << 63, which is still negative.
    				return nil, false
    			}
    		}
    		if n > 1e6 {
    			return nil, false // avoid excessively large exponents
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 15 22:16:34 UTC 2023
    - 12.3K bytes
    - Viewed (0)
Back to top