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.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
libc/src/__support/integer_to_string.h | ||
---|---|---|
115 | Will be interesting to see if this if is being optimized out because buffer is a constexpr in your use case. |
libc/src/__support/integer_to_string.h | ||
---|---|---|
115 | Yes at high enough optimization settings, along with everything else in this file except the main loop of convert_alpha_numeric and a couple other checks. |
Will be interesting to see if this if is being optimized out because buffer is a constexpr in your use case.