]> git.karo-electronics.de Git - karo-tx-linux.git/commit
lib: vsprintf: optimize division by 10 for small integers
authorGeorge Spelvin <linux@horizon.com>
Thu, 13 Sep 2012 01:01:05 +0000 (11:01 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 18 Sep 2012 06:04:34 +0000 (16:04 +1000)
commit092eb3c04e4a9b2b938b100476c55682fe0b34fe
tree87a8d24a381ece0f5a4e3798fb2a1ac461258190
parentc3a1ebb4c6bc79309560b52c01498321a2d7e0e6
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