diff options
| author | Rasmus Villemoes <[email protected]> | 2016-01-16 00:58:41 +0000 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2016-01-16 19:17:26 +0000 |
| commit | 1c7a8e622e84c9164dd665f5ad4879eac71bdc1e (patch) | |
| tree | b7c545e5d1b6ae370bd243bc5481e50aaf0c030f /lib/test_printf.c | |
| parent | lib/vsprintf.c: expand field_width to 24 bits (diff) | |
| download | kernel-1c7a8e622e84c9164dd665f5ad4879eac71bdc1e.tar.gz kernel-1c7a8e622e84c9164dd665f5ad4879eac71bdc1e.zip | |
lib/vsprintf.c: help gcc make number() smaller
One consequence of the reorganization of struct printf_spec to make
field_width 24 bits was that number() gained about 180 bytes. Since
spec is never passed to other functions, we can help gcc make number()
lose most of that extra weight by using local variables for the field
width and precision.
Reviewed-by: Andy Shevchenko <[email protected]>
Signed-off-by: Rasmus Villemoes <[email protected]>
Cc: Al Viro <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Joe Perches <[email protected]>
Cc: Kees Cook <[email protected]>
Cc: Maurizio Lombardi <[email protected]>
Cc: Tejun Heo <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'lib/test_printf.c')
0 files changed, 0 insertions, 0 deletions
