Linux 4.6-rc6
[linux/fpc-iii.git] / arch / x86 / boot / ctype.h
blob020f137df7a24dfbcc810283136655fb64708af6
1 #ifndef BOOT_CTYPE_H
2 #define BOOT_CTYPE_H
4 static inline int isdigit(int ch)
6 return (ch >= '0') && (ch <= '9');
9 static inline int isxdigit(int ch)
11 if (isdigit(ch))
12 return true;
14 if ((ch >= 'a') && (ch <= 'f'))
15 return true;
17 return (ch >= 'A') && (ch <= 'F');
20 #endif