Here you can find small interesting and/or useful code snippets that do not deserve their own repositories
A conditional and array free hex digit to decimal value converter. Accepts both upper (A..F) and lower (a..f) letters. Return -1 for non-hexadecimal digits.