Merge tag 'v3.3.7' into 3.3/master
[zen-stable.git] / arch / x86 / boot / ctype.h
blob25e13403193cc4d0231b8ce97b49ef4fa6f4bb75
1 #ifndef BOOT_ISDIGIT_H
3 #define BOOT_ISDIGIT_H
5 static inline int isdigit(int ch)
7 return (ch >= '0') && (ch <= '9');
10 static inline int isxdigit(int ch)
12 if (isdigit(ch))
13 return true;
15 if ((ch >= 'a') && (ch <= 'f'))
16 return true;
18 return (ch >= 'A') && (ch <= 'F');
21 #endif