Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 31 for overflows (0.46 sec)

  1. guava-tests/test/com/google/common/collect/SetsTest.java

        Set<List<Integer>> degenerate = Sets.cartesianProduct();
        checkHashCode(degenerate);
    
        checkHashCode(Sets.cartesianProduct(set(1, 2)));
    
        int num = Integer.MAX_VALUE / 3 * 2; // tickle overflow-related problems
        checkHashCode(Sets.cartesianProduct(set(1, 2, num)));
    
        Set<Integer> mt = emptySet();
        checkHashCode(Sets.cartesianProduct(mt, mt));
        checkHashCode(Sets.cartesianProduct(mt, set(num)));
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri May 17 15:27:58 UTC 2024
    - 49.2K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apimachinery/pkg/api/resource/quantity_test.go

    		{Quantity{d: maxAllowed, Format: DecimalSI}, math.MaxInt64},
    		{Quantity{d: maxAllowed, Format: BinarySI}, math.MaxInt64},
    		{decQuantity(12, 18, DecimalSI), 1.2e19},
    
    		// infinities caused due to float64 overflow
    		{decQuantity(12, 500, DecimalSI), math.Inf(0)},
    		{decQuantity(-12, 500, DecimalSI), math.Inf(-1)},
    	}
    
    	for _, item := range table {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 21:48:10 UTC 2024
    - 49.4K bytes
    - Viewed (0)
  3. src/cmd/link/internal/loader/loader.go

    	l := st.l
    	if l.extStart != 0 {
    		panic("addSym called after external symbol is created")
    	}
    	i := Sym(len(l.objSyms))
    	if int(i) != len(l.objSyms) { // overflow
    		panic("too many symbols")
    	}
    	addToGlobal := func() {
    		l.objSyms = append(l.objSyms, objSym{r.objidx, li})
    	}
    	if name == "" && kind != hashed64Def && kind != hashedDef {
    		addToGlobal()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 20:26:10 UTC 2024
    - 81.5K bytes
    - Viewed (0)
  4. src/crypto/tls/conn.go

    		payloadBytes-- // encrypted ContentType
    	}
    
    	// Allow packet growth in arithmetic progression up to max.
    	pkt := c.packetsSent
    	c.packetsSent++
    	if pkt > 1000 {
    		return maxPlaintext // avoid overflow in multiply below
    	}
    
    	n := payloadBytes * int(pkt+1)
    	if n > maxPlaintext {
    		n = maxPlaintext
    	}
    	return n
    }
    
    func (c *Conn) write(data []byte) (int, error) {
    	if c.buffering {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:10:12 UTC 2024
    - 51.8K bytes
    - Viewed (0)
  5. src/net/netip/netip_test.go

    		for i := 0; i < 100; i++ {
    			ips = append(ips, ip)
    		}
    	}
    }
    
    // ip4i was one of the possible representations of IP that came up in
    // discussions, inlining IPv4 addresses, but having an "overflow"
    // interface for IPv6 or IPv6 + zone. This is here for benchmarking.
    type ip4i struct {
    	ip4    [4]byte
    	flags1 byte
    	flags2 byte
    	flags3 byte
    	flags4 byte
    	ipv6   any
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 17:10:01 UTC 2024
    - 54.3K bytes
    - Viewed (0)
  6. src/runtime/mprof.go

    func SetBlockProfileRate(rate int) {
    	var r int64
    	if rate <= 0 {
    		r = 0 // disable profiling
    	} else if rate == 1 {
    		r = 1 // profile everything
    	} else {
    		// convert ns to cycles, use float64 to prevent overflow during multiplication
    		r = int64(float64(rate) * float64(ticksPerSecond()) / (1000 * 1000 * 1000))
    		if r == 0 {
    			r = 1
    		}
    	}
    
    	atomic.Store64(&blockprofilerate, uint64(r))
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:57:37 UTC 2024
    - 53.3K bytes
    - Viewed (0)
  7. cmd/api-errors.go

    		HTTPStatusCode: http.StatusBadRequest,
    	},
    	ErrIntegerOverflow: {
    		Code:           "IntegerOverflow",
    		Description:    "Int overflow or underflow in the SQL expression.",
    		HTTPStatusCode: http.StatusBadRequest,
    	},
    	ErrLikeInvalidInputs: {
    		Code:           "LikeInvalidInputs",
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jun 13 22:26:38 UTC 2024
    - 92.1K bytes
    - Viewed (1)
  8. src/net/http/client_test.go

    	for ; ; timeout *= 2 {
    		if timeout <= 0 {
    			// The only way we can feasibly hit this while the test is running is if
    			// the request fails without actually waiting for the timeout to occur.
    			t.Fatalf("timeout overflow")
    		}
    		if deadline, ok := t.Deadline(); ok && !time.Now().Add(timeout).Before(deadline) {
    			t.Fatalf("failed to produce expected timeout before test deadline")
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:30:50 UTC 2024
    - 63.8K bytes
    - Viewed (0)
  9. pkg/scheduler/internal/queue/scheduling_queue.go

    	duration := p.podInitialBackoffDuration
    	for i := 1; i < podInfo.Attempts; i++ {
    		// Use subtraction instead of addition or multiplication to avoid overflow.
    		if duration > p.podMaxBackoffDuration-duration {
    			return p.podMaxBackoffDuration
    		}
    		duration += duration
    	}
    	return duration
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 13:26:09 UTC 2024
    - 61.4K bytes
    - Viewed (0)
  10. src/runtime/pprof/pprof_test.go

    		},
    	}, {
    		name: "bug38096",
    		input: []uint64{
    			3, 0, 500, // hz = 500. Must match the period.
    			// count (data[2]) == 0 && len(stk) == 1 is an overflow
    			// entry. The "stk" entry is actually the count.
    			4, 0, 0, 4242,
    		},
    		count:    2,
    		wantLocs: [][]string{{"runtime/pprof.lostProfileEvent"}},
    		wantSamples: []*profile.Sample{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 68.8K bytes
    - Viewed (0)
Back to top