Yes, but wasn't sscanf the fast code? Anyway, if you want to try something exotic, you can try:
int low_hex2int(int c)
{
int q = c & 0x40;
return (c + (q>>3) + (q>>6)) & 0xf;
}
Yes, but wasn't sscanf the fast code? Anyway, if you want to try something exotic, you can try:
int low_hex2int(int c)
{
int q = c & 0x40;
return (c + (q>>3) + (q>>6)) & 0xf;
}