1 function hex2int
(str
, i
) {
4 for (i =
1; i
<=
16; i
++) {
5 char =
substr("0123456789abcdef", i
, 1)
10 for (i =
1; i
<=
length(str
); i
++) {
12 char =
substr(str
, i
, 1)
13 result = result
+ lookup
[char
]
18 function parse_const
(str
) {
19 sign =
sub(/^
-/, "", str
)
20 hex =
sub(/^
0x
/, "", str
)