| 390 | #define X(c) (c >= 'A' ? ((c & 0xdf) - 'A') + 10 : (c - '0')) |
| 391 | |
| 392 | static inline int x2c(unsigned char* x) { |
| 393 | if (!IsAsciiHex(x[0]) || !IsAsciiHex(x[1])) |
| 394 | return -1; |
| 395 | return X(x[0]) * 16 + X(x[1]); |
| 396 | } |
| 397 | |
| 398 | #undef X |
| 399 |
no test coverage detected