You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,6 +10,7 @@ This project is a fork of [lukechampine/uint128](https://github.com/lukechampine
10
10
- Add `AddOverflow`, `Add64Overflow`, `SubOverflow`, `Sub64Overflow`, `MulOverflow`, `Mul64Overflow` functions which returns additional boolean indicating whether the operation overflowed. The original functions now ignores overflow instead of panicking.
11
11
- Change `FromBig` function behaviour to return errors instead of panicking.
12
12
2. Add conversion functions `Uint64()`, `Uint32()`, `Uint16()`, `Uint8()` to convert `Uint128` to native types.
13
+
3. Add functions `IsUint64()`, `IsUint32()`, `IsUint16()`, `IsUint8()` to check if `Uint128` can be converted to native types without overflow.
13
14
14
15
`uint128` provides a high-performance `Uint128` type that supports standard arithmetic
15
16
operations. Unlike `math/big`, operations on `Uint128` values always produce new values
0 commit comments