1 // SPDX-License-Identifier: BSD-2-Clause 2 /* 3 * Copyright (c) 2018, Linaro Limited 4 */ 5 #include <ctype.h> 6 7 int __builtin_isxdigit(int c) 8 { 9 if (isdigit(c)) 10 return 1; 11 if (c >= 'A' && c <= 'F') 12 return 1; 13 if (c >= 'a' && c <= 'f') 14 return 1; 15 return 0; 16 } 17