- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 51 for MaxUint (0.19 sec)
-
api/go1.17.txt
pkg math (darwin-arm64), const MaxUint = 18446744073709551615 pkg math (darwin-arm64), const MinInt = -9223372036854775808 pkg math (darwin-arm64-cgo), const MaxInt = 9223372036854775807 pkg math (darwin-arm64-cgo), const MaxUint = 18446744073709551615 pkg math (darwin-arm64-cgo), const MinInt = -9223372036854775808 pkg math (freebsd-386), const MaxInt = 2147483647 pkg math (freebsd-386), const MaxUint = 4294967295
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Feb 17 20:31:46 UTC 2023 - 18K bytes - Viewed (0) -
src/internal/types/testdata/spec/range_int.go
} func issue65133() { for range maxInt { } for range maxInt /* ERROR "cannot use maxInt + 1 (untyped int constant 9223372036854775808) as int value in range clause (overflows)" */ + 1 { } for range maxUint /* ERROR "cannot use maxUint (untyped int constant 18446744073709551615) as int value in range clause (overflows)" */ { } for i := range maxInt { _ = i }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 16 18:56:00 UTC 2024 - 4.7K bytes - Viewed (0) -
src/math/const_test.go
// license that can be found in the LICENSE file. package math_test import ( "testing" . "math" ) func TestMaxUint(t *testing.T) { if v := uint(MaxUint); v+1 != 0 { t.Errorf("MaxUint should wrap around to zero: %d", v+1) } if v := uint8(MaxUint8); v+1 != 0 { t.Errorf("MaxUint8 should wrap around to zero: %d", v+1) } if v := uint16(MaxUint16); v+1 != 0 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 03 22:44:33 UTC 2021 - 1.3K bytes - Viewed (0) -
src/internal/fuzz/mutator.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Sep 18 20:01:34 UTC 2023 - 6.6K bytes - Viewed (0) -
src/internal/types/testdata/check/const1.go
) const ( _ uint = 0 /* ERROR "overflows" */ - 1 _ uint = 0 _ uint = maxUint _ uint = maxUint /* ERROR "overflows" */ + 1 _ uint = smallestFloat64 /* ERROR "truncated" */ _ = uint(0 /* ERROR "overflows" */ - 1) _ = uint(0) _ = uint(maxUint) _ = uint(maxUint /* ERROR "overflows" */ + 1) _ = uint(smallestFloat64 /* ERROR "cannot convert" */) ) const (
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Oct 31 16:11:16 UTC 2023 - 8.5K bytes - Viewed (0) -
src/math/const.go
MaxInt32 = 1<<31 - 1 // 2147483647 MinInt32 = -1 << 31 // -2147483648 MaxInt64 = 1<<63 - 1 // 9223372036854775807 MinInt64 = -1 << 63 // -9223372036854775808 MaxUint = 1<<intSize - 1 // MaxUint32 or MaxUint64 depending on intSize. MaxUint8 = 1<<8 - 1 // 255 MaxUint16 = 1<<16 - 1 // 65535 MaxUint32 = 1<<32 - 1 // 4294967295
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Sep 21 14:07:39 UTC 2022 - 2.8K bytes - Viewed (0) -
test/shift3.go
func main() { var x int = 1 f(x<<1, 2) f(x<<1., 2) f(x<<(1+0i), 2) f(x<<0i, 1) f(x<<(1<<x), 4) f(x<<(1.<<x), 4) f(x<<((1+0i)<<x), 4) f(x<<(0i<<x), 1) // corner cases const M = math.MaxUint f(x<<(M+0), 0) // shift by untyped int representable as uint f(x<<(M+0.), 0) // shift by untyped float representable as uint f(x<<(M+0.+0i), 0) // shift by untyped complex representable as uint
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 07 17:19:55 UTC 2022 - 834 bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/cel/environment/environment.go
return nil, err } p, err := e.newExpressions.Extend(newExprOpts) if err != nil { return nil, err } storedExprOpt, err := e.filterAndBuildOpts(e.storedExpressions, version.MajorMinor(math.MaxUint, math.MaxUint), options) if err != nil { return nil, err } s, err := e.storedExpressions.Extend(storedExprOpt) if err != nil { return nil, err }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon May 08 15:52:31 UTC 2023 - 10.1K bytes - Viewed (0) -
src/image/image_test.go
} } } // Passing a Rectangle whose width and height is MaxInt should also fail // (panic), due to overflow. { zeroAsUint := uint(0) maxUint := zeroAsUint - 1 maxInt := int(maxUint / 2) got := call(tc.f, Rectangle{ Min: Point{0, 0}, Max: Point{maxInt, maxInt}, }) if got { t.Errorf("New%s: overflow: got ok, want !ok", tc.name) } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jun 30 02:00:49 UTC 2021 - 10.8K bytes - Viewed (0) -
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)