WIP FPC-III support
[linux/fpc-iii.git] / arch / x86 / boot / ctype.h
blob8f5ef2994b5e2e8a8cb6f0d705a0175dd045eb3c
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef BOOT_CTYPE_H
3 #define BOOT_CTYPE_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