Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 31 for overflows (0.83 sec)

  1. src/cmd/compile/internal/types2/expr.go

    			// If we reach here it's because of number under-/overflow.
    			// TODO(gri) setConst (and in turn the go/constant package)
    			// should return an error describing the issue.
    			check.errorf(e, InvalidConstVal, "malformed constant: %s", e.Value)
    			goto Error
    		}
    		// Ensure that integer values don't overflow (go.dev/issue/54280).
    		x.expr = e // make sure that check.overflow below has an error position
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 02:09:54 UTC 2024
    - 51.7K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/ssa/_gen/ARM64Ops.go

    		{name: "FGT", controls: 1},
    		{name: "FGE", controls: 1},
    		{name: "LTnoov", controls: 1}, // 'LT' but without honoring overflow
    		{name: "LEnoov", controls: 1}, // 'LE' but without honoring overflow
    		{name: "GTnoov", controls: 1}, // 'GT' but without honoring overflow
    		{name: "GEnoov", controls: 1}, // 'GE' but without honoring overflow
    
    		// JUMPTABLE implements jump tables.
    		// Aux is the symbol (an *obj.LSym) for the jump table.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 15:49:20 UTC 2024
    - 58.8K bytes
    - Viewed (0)
  3. src/runtime/mheap.go

    	ask := alignUp(npage, pallocChunkPages) * pageSize
    
    	totalGrowth := uintptr(0)
    	// This may overflow because ask could be very large
    	// and is otherwise unrelated to h.curArena.base.
    	end := h.curArena.base + ask
    	nBase := alignUp(end, physPageSize)
    	if nBase > h.curArena.end || /* overflow */ end < h.curArena.base {
    		// Not enough room in the current arena. Allocate more
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 22:31:00 UTC 2024
    - 78K bytes
    - Viewed (0)
  4. pkg/scheduler/framework/runtime/framework.go

    			f.scorePluginWeight[e.Name] = 1
    		}
    
    		// Checks totalPriority against MaxTotalScore to avoid overflow
    		if int64(f.scorePluginWeight[e.Name])*framework.MaxNodeScore > framework.MaxTotalScore-totalPriority {
    			return fmt.Errorf("total score of Score plugins could overflow")
    		}
    		totalPriority += int64(f.scorePluginWeight[e.Name]) * framework.MaxNodeScore
    	}
    	return nil
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 17 09:07:27 UTC 2024
    - 60.9K bytes
    - Viewed (0)
  5. src/runtime/mbitmap.go

    	n := (size/goarch.PtrSize + 7) / 8
    	x := (*[1 << 30]byte)(persistentalloc(n+1, 1, &memstats.buckhash_sys))[:n+1]
    	x[len(x)-1] = 0xa1 // overflow check sentinel
    	n = runGCProg(prog, &x[0])
    	if x[len(x)-1] != 0xa1 {
    		throw("progToPointerMask: overflow")
    	}
    	return bitvector{int32(n), &x[0]}
    }
    
    // Packed GC pointer bitmaps, aka GC programs.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 00:18:55 UTC 2024
    - 60K bytes
    - Viewed (0)
  6. src/math/big/int_test.go

    	{-99, -1,
    		"-933262154439441526816992388562667004907159682643816214685929" +
    			"638952175999932299156089414639761565182862536979208272237582" +
    			"511852109168640000000000000000000000", // -99!
    	},
    
    	// overflow situations
    	{math.MaxInt64 - 0, math.MaxInt64, "9223372036854775807"},
    	{math.MaxInt64 - 1, math.MaxInt64, "85070591730234615838173535747377725442"},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 58.5K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/ssa/rewrite.go

    func (fc flagConstant) Z() bool {
    	return fc&2 != 0
    }
    
    // C reports whether an unsigned add overflowed (carry), or an
    // unsigned subtract did not underflow (borrow).
    func (fc flagConstant) C() bool {
    	return fc&4 != 0
    }
    
    // V reports whether a signed operation overflowed or underflowed.
    func (fc flagConstant) V() bool {
    	return fc&8 != 0
    }
    
    func (fc flagConstant) eq() bool {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 19:02:52 UTC 2024
    - 64.2K bytes
    - Viewed (0)
  8. src/cmd/vendor/github.com/ianlancetaylor/demangle/demangle.go

    		st.fail("missing number")
    	}
    	val := 0
    	for len(st.str) > 0 && isDigit(st.str[0]) {
    		// Number picked to ensure we can't overflow with 32-bit int.
    		// Any very large number here is bogus.
    		if val >= 0x80000000/10-10 {
    			st.fail("numeric overflow")
    		}
    		val = val*10 + int(st.str[0]-'0')
    		st.advance(1)
    	}
    	if neg {
    		val = -val
    	}
    	return val
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 19:48:28 UTC 2024
    - 94.1K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/Sets.java

          int adjust = size() - 1;
          for (int i = 0; i < axes.size(); i++) {
            adjust *= 31;
            adjust = ~~adjust;
            // in GWT, we have to deal with integer overflow carefully
          }
          int hash = 1;
          for (Set<E> axis : axes) {
            hash = 31 * hash + (size() / axis.size() * axis.hashCode());
    
            hash = ~~hash;
          }
          hash += adjust;
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Sun Jun 02 13:36:19 UTC 2024
    - 77.3K bytes
    - Viewed (0)
  10. src/reflect/type.go

    	// This is a copy of sort.Search, with f(h) replaced by (t.nameOff(methods[h].name).name() >= name).
    	i, j := 0, len(methods)
    	for i < j {
    		h := int(uint(i+j) >> 1) // avoid overflow when computing h
    		// i ≤ h < j
    		if !(t.nameOff(methods[h].Name).Name() >= name) {
    			i = h + 1 // preserves f(i-1) == false
    		} else {
    			j = h // preserves f(j) == true
    		}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 85.5K bytes
    - Viewed (0)
Back to top