diff --git a/src/math/const.go b/src/math/const.go index 0fc8715dd07ce0..3ca23a5dd35e16 100644 --- a/src/math/const.go +++ b/src/math/const.go @@ -49,4 +49,8 @@ const ( MaxUint16 = 1<<16 - 1 MaxUint32 = 1<<32 - 1 MaxUint64 = 1<<64 - 1 + MaxUint = ^uint(0) + MinUint = 0 + MaxInt = int(MaxUint >> 1) + MinInt = -MaxInt - 1 )