[all-commits] [llvm/llvm-project] 625d69: [libc] Extend IntegerToString to convert UInt* num...

Siva Chandra via All-commits all-commits at lists.llvm.org
Thu May 18 09:45:02 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 625d6928a863cdc60a907d5fcaf03dee60d25c8a
      https://github.com/llvm/llvm-project/commit/625d6928a863cdc60a907d5fcaf03dee60d25c8a
  Author: Siva Chandra Reddy <sivachandra at google.com>
  Date:   2023-05-18 (Thu, 18 May 2023)

  Changed paths:
    M libc/src/__support/integer_to_string.h
    M libc/test/src/__support/CMakeLists.txt
    M libc/test/src/__support/integer_to_string_test.cpp

  Log Message:
  -----------
  [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




More information about the All-commits mailing list