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

Appearance settings
Discussion options

While working on #18092 I checked and this costs only about 8 bytes on samd, and might make formatting with "unusual" chars a bit faster (uint32_t fill4; declared uninitialized earlier in function):

        // Other pad characters are fairly unusual, so we'll take the hit
        // and output them 4 at a time.
        fill4 = UINT32_C(0x1010101) * (unsigned char)fill;
        pad_chars = (char *)&fill4;
        pad_size = 4;

but I didn't benchmark it or anything.

You must be logged in to vote

Replies: 0 comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
💡
Ideas
Labels
None yet
1 participant
Morty Proxy This is a proxified and sanitized view of the page, visit original site.