A simple c/c++ hex converter using bitshifts and a lookup table