Home
last modified time | relevance | path

Searched refs:to_digit (Results 1 – 2 of 2) sorted by relevance

/bionic/libc/stdio/
Dscanf_common.h84 #define to_digit(c) static_cast<int>((c) - '0') macro
85 #define is_digit(c) (static_cast<unsigned>(to_digit(c)) <= 9)
94 if ((val) > INT_MAX - to_digit((dig))) \
97 (val) += to_digit((dig)); \
Dprintf_common.h117 #define to_digit(c) ((c) - '0') macro
118 #define is_digit(c) ((unsigned)to_digit(c) <= 9)
269 if ((val) > INT_MAX - to_digit((dig))) goto overflow; \
270 (val) += to_digit((dig)); \