Printf's integer converter has been modified to use the new converter. In
future, it will be used to implement other parts of the libc.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
overall LGTM, with a few comments
libc/src/__support/integer_to_string.h | ||
---|---|---|
34–35 | for integer division you can just add (divisor - 1) to the initial number to get ceil, so in this case it would be ((sizeof(T) * 5) + 1) / 2) | |
libc/test/src/__support/integer_to_string_test.cpp | ||
21 | would it be better to implement an equality checker for string views? |
Comment Actions
Address comments.
libc/test/src/__support/integer_to_string_test.cpp | ||
---|---|---|
21 | Yes, I think we should. I will do it in a separate patch. |
for integer division you can just add (divisor - 1) to the initial number to get ceil, so in this case it would be ((sizeof(T) * 5) + 1) / 2)