- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 639 for maxint (0.18 sec)
-
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) -
api/go1.17.txt
pkg math (linux-arm), const MaxInt = 2147483647 pkg math (linux-arm), const MaxUint = 4294967295 pkg math (linux-arm), const MinInt = -2147483648 pkg math (linux-arm-cgo), const MaxInt = 2147483647 pkg math (linux-arm-cgo), const MaxUint = 4294967295 pkg math (linux-arm-cgo), const MinInt = -2147483648 pkg math (netbsd-386), const MaxInt = 2147483647 pkg math (netbsd-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/check/const1.go
) const ( minInt8 = -1<<(8<<iota - 1) minInt16 minInt32 minInt64 minInt = -1<<(8<<logSizeofInt - 1) ) const ( maxInt8 = 1<<(8<<iota - 1) - 1 maxInt16 maxInt32 maxInt64 maxInt = 1<<(8<<logSizeofInt - 1) - 1 ) const ( maxUint8 = 1<<(8<<iota) - 1 maxUint16 maxUint32 maxUint64 maxUint = 1<<(8<<logSizeofUint) - 1 maxUintptr = 1<<(8<<logSizeofUintptr) - 1 ) 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/internal/saferio/io_test.go
} }) t.Run("large", func(t *testing.T) { _, err := ReadData(bytes.NewReader(input), 10<<30) if err == nil { t.Error("large read succeeded unexpectedly") } }) t.Run("maxint", func(t *testing.T) { _, err := ReadData(bytes.NewReader(input), 1<<62) if err == nil { t.Error("large read succeeded unexpectedly") } }) t.Run("small-EOF", func(t *testing.T) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Aug 31 00:34:05 UTC 2023 - 3.1K bytes - Viewed (0) -
test/fixedbugs/issue29190.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package main import ( "strings" ) type T struct{} const maxInt = int(^uint(0) >> 1) func main() { s := make([]T, maxInt) shouldPanic("len out of range", func() { s = append(s, T{}) }) var oneElem = make([]T, 1)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Aug 08 16:58:57 UTC 2022 - 707 bytes - Viewed (0) -
src/math/const.go
const ( intSize = 32 << (^uint(0) >> 63) // 32 or 64 MaxInt = 1<<(intSize-1) - 1 // MaxInt32 or MaxInt64 depending on intSize. MinInt = -1 << (intSize - 1) // MinInt32 or MinInt64 depending on intSize. MaxInt8 = 1<<7 - 1 // 127 MinInt8 = -1 << 7 // -128 MaxInt16 = 1<<15 - 1 // 32767 MinInt16 = -1 << 15 // -32768 MaxInt32 = 1<<31 - 1 // 2147483647
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Sep 21 14:07:39 UTC 2022 - 2.8K bytes - Viewed (0) -
src/slices/slices_test.go
{x: make([]struct{}, math.MaxInt/6-5), count: 6, want: make([]struct{}, 6*(math.MaxInt/6-5))}, {x: make([]struct{}, math.MaxInt/7-6), count: 7, want: make([]struct{}, 7*(math.MaxInt/7-6))}, {x: make([]struct{}, math.MaxInt/8-7), count: 8, want: make([]struct{}, 8*(math.MaxInt/8-7))}, {x: make([]struct{}, math.MaxInt/9-8), count: 9, want: make([]struct{}, 9*(math.MaxInt/9-8))}, } {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 26 13:32:06 UTC 2024 - 33.2K bytes - Viewed (0) -
src/internal/concurrent/hashtriemap_test.go
expectPresent(t, s, i)(m.Load(s)) expectLoaded(t, s, i)(m.LoadOrStore(s, 0)) } for i, s := range testData { expectPresent(t, s, i)(m.Load(s)) expectNotDeleted(t, s, math.MaxInt)(m.CompareAndDelete(s, math.MaxInt)) expectDeleted(t, s, i)(m.CompareAndDelete(s, i)) expectNotDeleted(t, s, i)(m.CompareAndDelete(s, i)) expectMissing(t, s, 0)(m.Load(s)) } for _, s := range testData {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 16:01:55 UTC 2024 - 9.3K bytes - Viewed (0) -
src/internal/types/testdata/check/const0.go
const maxInt = (1<<(prec/2) - 1) * (1<<(prec/2) + 1) // == 1<<prec - 1 const _ = maxInt + /* ERROR "constant addition overflow" */ 1 const _ = -maxInt - /* ERROR "constant subtraction overflow" */ 1 const _ = maxInt ^ /* ERROR "constant bitwise XOR overflow" */ -1 const _ = maxInt * /* ERROR "constant multiplication overflow" */ 2 const _ = maxInt << /* ERROR "constant shift overflow" */ 2
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jan 17 19:54:25 UTC 2023 - 9.2K bytes - Viewed (0) -
src/encoding/base64/base64_test.go
switch strconv.IntSize { case 32: tests = append(tests, test{RawStdEncoding, (math.MaxInt-5)/8 + 1, 357913942}) tests = append(tests, test{RawStdEncoding, math.MaxInt/4*3 + 2, math.MaxInt}) case 64: tests = append(tests, test{RawStdEncoding, (math.MaxInt-5)/8 + 1, 1537228672809129302}) tests = append(tests, test{RawStdEncoding, math.MaxInt/4*3 + 2, math.MaxInt}) } for _, tt := range tests {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sun Sep 03 18:57:29 UTC 2023 - 15.9K bytes - Viewed (0)