]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/blame - arch/x86/boot/ctype.h
Merge tag 'imx-fixes-4.10-3' of git://git.kernel.org/pub/scm/linux/kernel/git/shawngu...
[mirror_ubuntu-zesty-kernel.git] / arch / x86 / boot / ctype.h
CommitLineData
60b217a0
AK
1#ifndef BOOT_CTYPE_H
2#define BOOT_CTYPE_H
f4ed2877
YL
3
4static inline int isdigit(int ch)
5{
6 return (ch >= '0') && (ch <= '9');
7}
8
9static inline int isxdigit(int ch)
10{
11 if (isdigit(ch))
12 return true;
13
14 if ((ch >= 'a') && (ch <= 'f'))
15 return true;
16
17 return (ch >= 'A') && (ch <= 'F');
18}
19
20#endif