[libc] add printf hex conversion
authorMichael Jones <michaelrj@google.com>
Fri, 20 May 2022 18:50:16 +0000 (11:50 -0700)
committerMichael Jones <michaelrj@google.com>
Thu, 16 Jun 2022 16:51:09 +0000 (09:51 -0700)
commit652ecb251ec9fa65bc506c8934271ef231872b53
tree7c92e0fb0c41911494d6be8bd993427a0a48ca0c
parentf011d32c3a625eb86d1e33a70100b0a031f5fcd4
[libc] add printf hex conversion

The hex converter handles the %x and %X conversions.

Reviewed By: sivachandra

Differential Revision: https://reviews.llvm.org/D126082
libc/src/stdio/printf_core/CMakeLists.txt
libc/src/stdio/printf_core/char_converter.h
libc/src/stdio/printf_core/converter.cpp
libc/src/stdio/printf_core/converter_atlas.h
libc/src/stdio/printf_core/converter_utils.h [new file with mode: 0644]
libc/src/stdio/printf_core/core_structs.h
libc/src/stdio/printf_core/hex_converter.h [new file with mode: 0644]
libc/src/stdio/printf_core/int_converter.h
libc/src/stdio/printf_core/string_converter.h
libc/test/src/stdio/printf_core/converter_test.cpp
libc/test/src/stdio/sprintf_test.cpp