-
-
Notifications
You must be signed in to change notification settings - Fork 4
hex
pannous edited this page Nov 14, 2020
·
5 revisions
a hex is half a byte, 4 bits, 16 values 0...15 or 0... 9 A B C D E F (F=15)
the hex literal keyword is the same as the 0x prefix: hex 1010 = 0x1010 = 2^12 + 2^4
int60 is a smart pointer 0xB0000000.00000000 in which the first hex 0xB is used to denote the type and 15 of the 16 hexes are used for the numeric value (15*4 bit = 60 bit bignum)
int28 is a smart pointer 0x01234567 in which the first hex 0x0 is used to denote the type and 7 of the 8 hexes are used for the numeric value and