Skip to content
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

I don't think n can ever be < 10 here #8

Closed
jeaiii opened this issue Jul 18, 2022 · 0 comments
Closed

I don't think n can ever be < 10 here #8

jeaiii opened this issue Jul 18, 2022 · 0 comments

Comments

@jeaiii
Copy link
Owner

jeaiii commented Jul 18, 2022

b = n < 10 ? b + 1 : b + 2;

all 9 digits numbers should be handled above (and ~4/10ths of the 10 digits numbers) so this should be like:

if (n < u32(1e2))
{
*reinterpret_cast<pair*>(b) = digits.dd[n];
b += 2;
}

@jeaiii jeaiii closed this as completed Sep 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant