[libc] move int conversion out of base template
authorMichael Jones <michaelrj@google.com>
Thu, 11 Aug 2022 21:16:00 +0000 (14:16 -0700)
committerMichael Jones <michaelrj@google.com>
Thu, 11 Aug 2022 23:56:27 +0000 (16:56 -0700)
commit5e22ef3198d1686f7978dd150a3eefad4f737bfc
tree5259a5330da9b3598a19b8a24325c643e4b4bc3f
parentce075dfa190454f6f85920ad4ffe6928980868af
[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
libc/src/__support/integer_to_string.h