diff options
| author | Rasmus Villemoes <linux@rasmusvillemoes.dk> | 2015-04-16 12:43:42 -0700 |
|---|---|---|
| committer | Mister Oyster <oysterized@gmail.com> | 2017-04-11 10:59:17 +0200 |
| commit | 82832b1ca6bf78e365b67cf260f2a41c78ad2a93 (patch) | |
| tree | b4515aaa5427f7ee2e0521c181ac02c5c5837e94 /lib/strncpy_from_user.c | |
| parent | a74d108f9be4e736491dc4d165f2ebd957c9022a (diff) | |
lib/vsprintf.c: improve put_dec_trunc8 slightly
I hadn't had enough coffee when I wrote this. Currently, the final
increment of buf depends on the value loaded from the table, and
causes gcc to emit a cmov immediately before the return. It is smarter
to let it depend on r, since the increment can then be computed in
parallel with the final load/store pair. It also shaves 16 bytes of
.text.
Signed-off-by: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Cc: Tejun Heo <tj@kernel.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'lib/strncpy_from_user.c')
0 files changed, 0 insertions, 0 deletions
