@@ -42,7 +42,7 @@ So, FEEL FREE to carefully review the code visually.
4242
4343// Unspecified size, i.e. normal signed int
4444
45- // Add sums two ints, returning the result and a boolean status .
45+ // Add sums two ints, returning the result and a ok result indicating whether the operation is safe .
4646func Add (a , b int ) (int , bool ) {
4747 if _is64Bit () {
4848 r64 , ok := Add64 (int64 (a ), int64 (b ))
@@ -52,7 +52,7 @@ func Add(a, b int) (int, bool) {
5252 return int (r32 ), ok
5353}
5454
55- // UAdd sums two uints, returning the result and a boolean status .
55+ // UAdd sums two uints, returning the result and a ok result indicating whether the operation is safe .
5656func UAdd (a , b uint ) (uint , bool ) {
5757 if _is64Bit () {
5858 r64 , ok := UAdd64 (uint64 (a ), uint64 (b ))
@@ -62,7 +62,7 @@ func UAdd(a, b uint) (uint, bool) {
6262 return uint (r32 ), ok
6363}
6464
65- // Sub returns the difference of two ints and a boolean status .
65+ // Sub returns the difference of two ints and a ok result indicating whether the operation is safe .
6666func Sub (a , b int ) (int , bool ) {
6767 if _is64Bit () {
6868 r64 , ok := Sub64 (int64 (a ), int64 (b ))
@@ -72,7 +72,7 @@ func Sub(a, b int) (int, bool) {
7272 return int (r32 ), ok
7373}
7474
75- // USub returns the difference of two uints and a boolean status .
75+ // USub returns the difference of two uints and a ok result indicating whether the operation is safe .
7676func USub (a , b uint ) (uint , bool ) {
7777 if _is64Bit () {
7878 r64 , ok := USub64 (uint64 (a ), uint64 (b ))
@@ -82,7 +82,7 @@ func USub(a, b uint) (uint, bool) {
8282 return uint (r32 ), ok
8383}
8484
85- // Mul returns the product of two ints and a boolean status .
85+ // Mul returns the product of two ints and a ok result indicating whether the operation is safe .
8686func Mul (a , b int ) (int , bool ) {
8787 if _is64Bit () {
8888 r64 , ok := Mul64 (int64 (a ), int64 (b ))
@@ -92,7 +92,7 @@ func Mul(a, b int) (int, bool) {
9292 return int (r32 ), ok
9393}
9494
95- // UMul returns the product of two uints and a boolean status .
95+ // UMul returns the product of two uints and a ok result indicating whether the operation is safe .
9696func UMul (a , b uint ) (uint , bool ) {
9797 if _is64Bit () {
9898 r64 , ok := UMul64 (uint64 (a ), uint64 (b ))
@@ -102,7 +102,7 @@ func UMul(a, b uint) (uint, bool) {
102102 return uint (r32 ), ok
103103}
104104
105- // Div returns the quotient of two ints and a boolean status
105+ // Div returns the quotient of two ints and a ok result indicating whether the operation is safe.
106106func Div (a , b int ) (int , bool ) {
107107 if _is64Bit () {
108108 r64 , ok := Div64 (int64 (a ), int64 (b ))
@@ -112,7 +112,7 @@ func Div(a, b int) (int, bool) {
112112 return int (r32 ), ok
113113}
114114
115- // UDiv returns the quotient of two uints and a boolean status
115+ // UDiv returns the quotient of two uints and a ok result indicating whether the operation is safe.
116116func UDiv (a , b uint ) (uint , bool ) {
117117 if _is64Bit () {
118118 r64 , ok := UDiv64 (uint64 (a ), uint64 (b ))
@@ -122,7 +122,7 @@ func UDiv(a, b uint) (uint, bool) {
122122 return uint (r32 ), ok
123123}
124124
125- // Quotient returns the quotient, remainder and status of two ints
125+ // Quotient returns the quotient, remainder and ok result indicating whether the operation is safe.
126126func Quotient (a , b int ) (int , int , bool ) {
127127 if _is64Bit () {
128128 q64 , r64 , ok := Quotient64 (int64 (a ), int64 (b ))
@@ -132,7 +132,7 @@ func Quotient(a, b int) (int, int, bool) {
132132 return int (q32 ), int (r32 ), ok
133133}
134134
135- // UQuotient returns the quotient, remainder and status of two uints
135+ // UQuotient returns the quotient, remainder and ok result indicating whether the operation is safe.
136136func UQuotient (a , b uint ) (uint , uint , bool ) {
137137 if _is64Bit () {
138138 uq64 , ur64 , ok := UQuotient64 (uint64 (a ), uint64 (b ))
0 commit comments