ghaerr / elks

Embeddable Linux Kernel Subset - Linux for 8086
Other
1.02k stars 108 forks source link

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

Closed ghaerr closed 2 months ago

ghaerr commented 2 months ago

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.