128-bit integer
int128 and uint128 are very similar classes for operations over 128-bit numbers.
Unlike other large number classes, you can work with these just like with other P.O.D. types (for example store and load from files using fwrite/fread). Internal representation of these is correct 128-bit little-endian integer.
Features:
Implemented are all relevant operators and following abilities:
- Classes can parse up to 128-bit number from classic C string in decimal, octal (0...) or hexadecimal (0x...) notation. Numbers can be negative.
- Convert number to string (with radix from 2 to 37).
- Compute division and remainder in single operation (div method).
- Classes support GNU G++ operators <? a >?.
Donwload (6k):
Future:
- Consider implementation of operators for conversion to intrinsic types.
- Rewrite division operation
- Remove the bit method used only in division.
|
| |
 |
News at this page |
|
There are no news available for this page. |
|  |
|
|
|