[libc] Implements isdigit and isalnum. Adds a utility header to inline
authorcgyurgyik <gyurgyikcp@gmail.com>
Thu, 30 Jul 2020 16:36:28 +0000 (12:36 -0400)
committercgyurgyik <gyurgyikcp@gmail.com>
Thu, 30 Jul 2020 16:37:30 +0000 (12:37 -0400)
commite263dcc3efeae419b691730da5e37977e1a681f6
tree32c83c55686477345371295622c6b986f0894c4b
parent1e8a9c3e026f4523eb9745d3a3f4c13f934dcbec
[libc] Implements isdigit and isalnum. Adds a utility header to inline
functions to avoid overhead of function calls.

Reviewed By: sivachandra

Differential Revision: https://reviews.llvm.org/D84893
14 files changed:
libc/config/linux/aarch64/entrypoints.txt
libc/config/linux/api.td
libc/config/linux/x86_64/entrypoints.txt
libc/spec/stdc.td
libc/src/ctype/CMakeLists.txt
libc/src/ctype/ctype_utils.h [new file with mode: 0644]
libc/src/ctype/isalnum.cpp [new file with mode: 0644]
libc/src/ctype/isalnum.h [new file with mode: 0644]
libc/src/ctype/isalpha.cpp
libc/src/ctype/isdigit.cpp [new file with mode: 0644]
libc/src/ctype/isdigit.h [new file with mode: 0644]
libc/test/src/ctype/CMakeLists.txt
libc/test/src/ctype/isalnum_test.cpp [new file with mode: 0644]
libc/test/src/ctype/isdigit_test.cpp [new file with mode: 0644]