[libc] Extend IntegerToString to convert UInt* numbers to hex string.
authorSiva Chandra Reddy <sivachandra@google.com>
Thu, 18 May 2023 08:19:24 +0000 (08:19 +0000)
committerSiva Chandra Reddy <sivachandra@google.com>
Thu, 18 May 2023 16:44:43 +0000 (16:44 +0000)
commit625d6928a863cdc60a907d5fcaf03dee60d25c8a
treef7cea9d5f264b759e3824ec7fc4b783ea3d6ed39
parentdb814552132d614e410118e22b22c89d35ae6062
[libc] Extend IntegerToString to convert UInt* numbers to hex string.

This new functionality will help us avoid duplicated code in various
places in the testing infrastructure. Since the string representation
of the wide numbers is to be used by tests, to keep it simple, we
zero-pad the strings.

Reviewed By: lntue

Differential Revision: https://reviews.llvm.org/D150849
libc/src/__support/integer_to_string.h
libc/test/src/__support/CMakeLists.txt
libc/test/src/__support/integer_to_string_test.cpp