Skip to content

Some minor printf improvements

Rasmus Villemoes lkml 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4lib/vsprintf.c: Eliminate some brancheslib/vsprintf.c+11 -190 replies
2/4lib/vsprintf.c: Reduce stack use in number()lib/vsprintf.c+1 -60 replies
3/4lib/vsprintf.c: Eliminate duplicate hex string arraylib/vsprintf.c+2 -50 replies
4/4lib/vsprintf.c: Another small hacklib/vsprintf.c+4 -30 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/4] Some minor printf improvements

While studying the kernel's printf internals in order to write the kernel-specific format checking for smatch, I stumbled on a few things one could do to shave an instruction here and there. Nothing earth-shattering.

Rasmus Villemoes (4):
lib/vsprintf.c: Eliminate some branches lib/vsprintf.c: Reduce stack use in number() lib/vsprintf.c: Eliminate duplicate hex string array lib/vsprintf.c: Another small hack

 lib/vsprintf.c | 49 +++++++++++++++++--------------------------------
 1 file changed, 17 insertions(+), 32 deletions(-)
Signature · 1 line
2.1.3