-
Notifications
You must be signed in to change notification settings - Fork 1.6k
to_chars libc++ compatibility #1670
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
to_chars libc++ compatibility #1670
Conversation
64-bit types are long for libc++ on the amd64 platform. Explicitly cast the type to silence the warnings.
On libc++ __output is a reserved name. I'm open to other suggestions. Note that __out is also a reserved name for libc++.
|
I also notices line 1103 and 1105 look oddly similar in their suggestion "Consider retuning PrefixesToTest and FractionBits.". I suspect that's not intended. Both also have a small typo in "returning". |
STL/tests/std/tests/P0067R5_charconv/test.cpp Lines 1100 to 1104 in 834baa6
It was intentional, although I can see now how it could be confusing. By "retuning" I meant "re-tuning", and the similar messages were intended to say "if this test ran really fast, you should probably be testing more random values" and "if this test ran really slow, you should probably test fewer random values". I can clarify this. |
These messages were hard to understand.
StephanTLavavej
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me! I've pushed two small commits, one to restore indentation (clang-format is disabled for the Ryu-derived code so it can stay somewhat consistent with upstream, otherwise it would have detected the extra space) and another to clarify the fast/slow comments (also in another test that had used the same wording).
Our system involves 2 reviews before simultaneously merging to GitHub and the MSVC-internal repo, so we should be able to get a second reviewer and batch this up for merging early next week.
The new wording looks clearer, thanks.
Great, once it has landed I'll sync the code in libc++. |
|
Thanks for keeping our codebases aligned, and congratulations on your first microsoft/STL commit! 😸 🎉 🎆 |
@StephanTLavavej here some changes I made in libc++ for https://reviews.llvm.org/D70631 "Microsoft's floating-point to_chars powered by Ryu and Ryu Printf". If you don't like
_Outputfeel free to suggest an alternative and I'll adjust libc++ accordingly.