#ifdef CODIF_FAST
static char _cHex[16] = {
'0', '1', '2', '3', '4', '5', '6', '7', '8', '9',
'A', 'B', 'C', 'D', 'E', 'F'
};
#define HexToAsc( d ) _cHex[d] // Hexadecimal To Ascii
static BYTE _dHex[23] = {
0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, // '0'-'9' (48-57)
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, // KKKKKKK (58-64)
0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f // 'A'-'F' (65-70)
};
#define AscToHex( c ) ((int)_dHex[(c)-'0']) // Ascii To Hexadecimal
#else
#define HexToAsc( d ) ((char)(((d)<10) ? ('0'+(d)) : ('A'+(d)-10)))
#define AscToHex( c ) ((int)(((c)<'A') ? ((c)-'0') : ((c)-'A'+10)))
#endif // FAST