hex2ascii_upper
c = upper ? hex2ascii_upper(num % base) :
static char const hex2ascii_upper[] = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ";
#define hex2ascii_upper(hex) (hex2ascii_upper[hex])