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

[libc,kernel] Rewrite ptostr for speed, add thousands separator to printk #2016

Merged
merged 2 commits into from
Sep 15, 2024

Conversation

ghaerr
Copy link
Owner

@ghaerr ghaerr commented Sep 15, 2024

Rewrites ptostr precision timer routine to be much faster, using __divmod routine.
Same for kernel %k precision timing output: rewritten for speed to using __divmod.

Adds %ld, %lu thousands grouping to kernel printk (like recently added libc printf).

Enhances some kernel output to use thousands grouping commas for large numbers.

@ghaerr ghaerr merged commit 6cea184 into master Sep 15, 2024
2 checks passed
@ghaerr ghaerr deleted the ptick branch September 15, 2024 23:54
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

Successfully merging this pull request may close these issues.

1 participant