Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 531 for overflows (0.11 sec)

  1. internal/disk/stat_linux_32bit.go

    	info = Info{
    		Total:  uint64(s.Frsize) * (s.Blocks - reservedBlocks),
    		Free:   uint64(s.Frsize) * s.Bavail,
    		Files:  s.Files,
    		Ffree:  s.Ffree,
    		FSType: getFSType(s.Type),
    	}
    	// Check for overflows.
    	// https://github.com/minio/minio/issues/8035
    	// XFS can show wrong values at times error out
    	// in such scenarios.
    	if info.Free > info.Total {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Feb 26 19:34:50 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  2. src/internal/coverage/cmerge/merge.go

    		}
    	}
    	ovf := m.overflow
    	m.overflow = false
    	return nil, ovf
    }
    
    // Saturating add does a saturating addition of 'dst' and 'src',
    // returning added value or math.MaxUint32 if there is an overflow.
    // Overflows are recorded in case the client needs to track them.
    func (m *Merger) SaturatingAdd(dst, src uint32) uint32 {
    	result, overflow := SaturatingAdd(dst, src)
    	if overflow {
    		m.overflow = true
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jul 12 23:26:34 UTC 2023
    - 3.7K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/math/LongMath.java

        }
        return a << min(aTwos, bTwos);
      }
    
      /**
       * Returns the sum of {@code a} and {@code b}, provided it does not overflow.
       *
       * @throws ArithmeticException if {@code a + b} overflows in signed {@code long} arithmetic
       */
      @SuppressWarnings("ShortCircuitBoolean")
      public static long checkedAdd(long a, long b) {
        long result = a + b;
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 07 17:50:39 UTC 2024
    - 44.6K bytes
    - Viewed (0)
  4. src/go/types/conversions.go

    		ok = constConvertibleTo(T, &x.val)
    		// A conversion from an integer constant to an integer type
    		// can only fail if there's overflow. Give a concise error.
    		// (go.dev/issue/63563)
    		if !ok && isInteger(x.typ) && isInteger(T) {
    			check.errorf(x, InvalidConversion, "constant %s overflows %s", x.val, T)
    			x.mode = invalid
    			return
    		}
    	case constArg && isTypeParam(T):
    		// x is convertible to T if it is convertible
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 18:51:00 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  5. src/database/sql/driver/types.go

    		i64 := rv.Int()
    		if i64 > (1<<31)-1 || i64 < -(1<<31) {
    			return nil, fmt.Errorf("sql/driver: value %d overflows int32", v)
    		}
    		return i64, nil
    	case reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64:
    		u64 := rv.Uint()
    		if u64 > (1<<31)-1 {
    			return nil, fmt.Errorf("sql/driver: value %d overflows int32", v)
    		}
    		return int64(u64), nil
    	case reflect.String:
    		i, err := strconv.Atoi(rv.String())
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 27 16:30:20 UTC 2024
    - 8.8K bytes
    - Viewed (0)
  6. src/strconv/atoi.go

    		}
    
    		if d >= byte(base) {
    			return 0, syntaxError(fnParseUint, s0)
    		}
    
    		if n >= cutoff {
    			// n*base overflows
    			return maxVal, rangeError(fnParseUint, s0)
    		}
    		n *= uint64(base)
    
    		n1 := n + uint64(d)
    		if n1 < n || n1 > maxVal {
    			// n+d overflows
    			return maxVal, rangeError(fnParseUint, s0)
    		}
    		n = n1
    	}
    
    	if underscores && !underscoreOK(s0) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun May 05 00:24:26 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  7. cmd/warm-backend-minio.go

    	if objectSize > maxMultipartPutObjectSize {
    		err = errors.New("entity too large")
    		return
    	}
    
    	configuredPartSize := minPartSize
    	// Use floats for part size for all calculations to avoid
    	// overflows during float64 to int64 conversions.
    	partSizeFlt := float64(objectSize / maxPartsCount)
    	partSizeFlt = math.Ceil(partSizeFlt/float64(configuredPartSize)) * float64(configuredPartSize)
    
    	// Part size.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Sun Apr 21 11:43:18 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  8. src/image/geom.go

    	}
    	if y0 > y1 {
    		y0, y1 = y1, y0
    	}
    	return Rectangle{Point{x0, y0}, Point{x1, y1}}
    }
    
    // mul3NonNeg returns (x * y * z), unless at least one argument is negative or
    // if the computation overflows the int type, in which case it returns -1.
    func mul3NonNeg(x int, y int, z int) int {
    	if (x < 0) || (y < 0) || (z < 0) {
    		return -1
    	}
    	hi, lo := bits.Mul64(uint64(x), uint64(y))
    	if hi != 0 {
    		return -1
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 12:02:45 UTC 2023
    - 7.3K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apimachinery/pkg/runtime/serializer/cbor/internal/modes/appendixa_test.go

    		},
    		{
    			example: hex("3bffffffffffffffff"),
    			reject:  "-2^64-1 overflows int64 and falling back to float64 (as with JSON) loses distinction between float and integer",
    		},
    		{
    			example: hex("c349010000000000000000"),
    			reject:  "-18446744073709551617 overflows int64 and falling back to float64 (as with JSON) loses distinction between float and integer",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Feb 15 18:59:36 UTC 2024
    - 15.8K bytes
    - Viewed (0)
  10. guava/src/com/google/common/math/LongMath.java

        }
        return a << min(aTwos, bTwos);
      }
    
      /**
       * Returns the sum of {@code a} and {@code b}, provided it does not overflow.
       *
       * @throws ArithmeticException if {@code a + b} overflows in signed {@code long} arithmetic
       */
      @SuppressWarnings("ShortCircuitBoolean")
      public static long checkedAdd(long a, long b) {
        long result = a + b;
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 07 17:50:39 UTC 2024
    - 44.6K bytes
    - Viewed (0)
Back to top