]> git.karo-electronics.de Git - karo-tx-linux.git/commit
lib: vsprintf: optimize division by 10 for small integers
authorGeorge Spelvin <linux@horizon.com>
Fri, 21 Sep 2012 01:01:59 +0000 (11:01 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 21 Sep 2012 05:59:08 +0000 (15:59 +1000)
commit5d71cb8ba7609e4127749ccb6b44a1656ce56a5c
tree02cb9687177c5af2958313d68327aad5834558d6
parentb48c9efd8f22565d14dfa711f88d5ae6d713a956
lib: vsprintf: optimize division by 10 for small integers

Shrink the reciprocal approximations used in put_dec_full4() based on the
comments in put_dec_full9().

Signed-off-by: George Spelvin <linux@horizon.com>
Cc: Denys Vlasenko <vda.linux@googlemail.com>
Cc: Michal Nazarewicz <mina86@mina86.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
lib/vsprintf.c