I'm looking for a quick implementation of ctype's isdigit. There's the classic range test between '0' and '9', but is there anything faster? (disregarding locale considerations)
I know most library implementations take a different approach, using look-up tables; however I've read that depending on the processor and whether these are loaded into cache it can be either faster or slower. Can anyone add to this?