[all-commits] [llvm/llvm-project] 5e22ef: [libc] move int conversion out of base template

michaelrj-google via All-commits all-commits at lists.llvm.org
Thu Aug 11 16:56:44 PDT 2022

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5e22ef3198d1686f7978dd150a3eefad4f737bfc
  Author: Michael Jones <michaelrj at google.com>
  Date:   2022-08-11 (Thu, 11 Aug 2022)

  Changed paths:
    M libc/src/__support/integer_to_string.h

  Log Message:
  [libc] move int conversion out of base template

The convert_alpha_numeric function is intentionally non-templated so
that its code can be reused for different bases in code-size sensitive
cases. Previously it was inside the IntegerToString class which created
a different version for each base.

Reviewed By: sivachandra, lntue

Differential Revision: https://reviews.llvm.org/D131725

More information about the All-commits mailing list