]> git.kernelconcepts.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>
Thu, 13 Sep 2012 07:28:05 +0000 (17:28 +1000)
commit756f2a55bf93a91a67329d0d4096e694a421ba37
treee780ea9ac52cf64fdff8f64adada21ee6a1f3c16
parentbf2a52c679cb767d133559b9cac331853060b81c
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