Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

String: compatibility with 64 bits scalars#7863

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
earlephilhower merged 9 commits intoesp8266:masterfromd-a-v:StringLL
Feb 13, 2021

Conversation

@d-a-v
Copy link
Collaborator

@d-a-vd-a-v commentedFeb 7, 2021
edited
Loading

time_t is now 64 bits.
This PR resolvesString(time_t) ambiguity.

Copy link
Collaborator

@earlephilhowerearlephilhower left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

LGTM!

Copy link
Collaborator

@mcsprmcspr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Also note of thecharconv in the stdlib (and it's source as well)
https://en.cppreference.com/w/cpp/utility/to_chars
https://en.cppreference.com/w/cpp/string/basic_string/to_string

lgtm as-is, but String is inherently weird with it's approach to conversions :/

@d-a-v
Copy link
CollaboratorAuthor

d-a-v commentedFeb 10, 2021
edited
Loading

@mcspr I tried withcharconv that I didn't know. That's very handy !
That one is faster (1.6x) but has a cost (+880B/flash+256B/rodata) (compared against lltoa)*
It has to be noted that these functionscharconv(std::to_chars) orlltoa are used only when radix is not 10 (in which casesprintf is used). It should be quite rare.
Without further comments, I will push a newer commit keeping onlylltoa. These functions will anyway not be linked in the general case.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@earlephilhowerearlephilhowerearlephilhower approved these changes

@mcsprmcsprmcspr left review comments

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@d-a-v@earlephilhower@mcspr

[8]ページ先頭

©2009-2025 Movatter.jp