- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 93 for maxInt (0.13 sec)
-
src/go/doc/testdata/b.2.golden
C5 ) // const C notExported = 0 // const Pi = 3.14 // Pi VARIABLES // var ( U1, U2, U4, U5 notExported U7 notExported = 7 ) // var MaxInt int // MaxInt // var V notExported // var V1, V2, V4, V5 notExported FUNCTIONS // Associated with comparable type if AllDecls is set. func ComparableFactory() comparable //
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Feb 11 16:05:02 UTC 2022 - 766 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/go/doc/testdata/b.go
// license that can be found in the LICENSE file. package b import "a" // ---------------------------------------------------------------------------- // Basic declarations const Pi = 3.14 // Pi var MaxInt int // MaxInt type T struct{} // T var V T // v func F(x int) int {} // F func (x *T) M() {} // M // Corner cases: association with (presumed) predeclared types
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Feb 11 16:05:02 UTC 2022 - 1.5K bytes - Viewed (0) -
src/go/doc/testdata/b.1.golden
// PACKAGE b IMPORTPATH testdata/b IMPORTS a FILENAMES testdata/b.go CONSTANTS // const Pi = 3.14 // Pi VARIABLES // var MaxInt int // MaxInt FUNCTIONS // func F(x int) int // Always under the package functions list. func NotAFactory() int TYPES // type T struct{} // T // var V T // v // func (x *T) M()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Feb 11 16:05:02 UTC 2022 - 1.1K bytes - Viewed (0) -
src/internal/fuzz/mutator.go
switch v := vals[i].(type) { case int: vals[i] = int(m.mutateInt(int64(v), maxInt)) case int8: vals[i] = int8(m.mutateInt(int64(v), math.MaxInt8)) case int16: vals[i] = int16(m.mutateInt(int64(v), math.MaxInt16)) case int64: vals[i] = m.mutateInt(v, maxInt) case uint: vals[i] = uint(m.mutateUInt(uint64(v), maxUint)) case uint16: vals[i] = uint16(m.mutateUInt(uint64(v), math.MaxUint16)) case uint32:
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/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) -
src/encoding/base32/base32_test.go
switch strconv.IntSize { case 32: tests = append(tests, test{rawStdEncoding, (math.MaxInt-4)/8 + 1, 429496730}) tests = append(tests, test{rawStdEncoding, math.MaxInt/8*5 + 4, math.MaxInt}) case 64: tests = append(tests, test{rawStdEncoding, (math.MaxInt-4)/8 + 1, 1844674407370955162}) tests = append(tests, test{rawStdEncoding, math.MaxInt/8*5 + 4, math.MaxInt}) } for _, tt := range tests {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 14 16:25:54 UTC 2024 - 26K bytes - Viewed (0) -
src/go/constant/example_test.go
// -1 (1 + -1i) // -1 (-1 + 1i) // -1 (-1 + -1i) // 0 0 // 0 (0 + 0i) // 1 1 // 1 (0 + 1i) // 1 (1 + 1i) } func ExampleVal() { maxint := constant.MakeInt64(math.MaxInt64) fmt.Printf("%v\n", constant.Val(maxint)) e := constant.MakeFloat64(math.E) fmt.Printf("%v\n", constant.Val(e)) b := constant.MakeBool(true) fmt.Printf("%v\n", constant.Val(b))
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 3.5K 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) -
src/cmd/compile/internal/ssa/loopbce.go
limit = f.constVal(limit.Op, limit.Type, v, true) inclusive = true } return true } if step == 1 && !inclusive { // Can't overflow because maxint is never a possible value. return true } // If the limit is not a constant, check to see if it is a // negative offset from a known non-negative value. knn, k := findKNN(limit)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Nov 07 17:37:47 UTC 2023 - 11.8K bytes - Viewed (0)