aboutsummaryrefslogtreecommitdiff
path: root/src/internal/runtime/math/math.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/internal/runtime/math/math.go')
-rw-r--r--src/internal/runtime/math/math.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/internal/runtime/math/math.go b/src/internal/runtime/math/math.go
index e0fdc3438d..7b616cff79 100644
--- a/src/internal/runtime/math/math.go
+++ b/src/internal/runtime/math/math.go
@@ -8,7 +8,10 @@ import "internal/goarch"
const (
MaxUint32 = ^uint32(0)
+ MaxUint64 = ^uint64(0)
MaxUintptr = ^uintptr(0)
+
+ MaxInt64 = int64(MaxUint64 >> 1)
)
// MulUintptr returns a * b and whether the multiplication overflowed.