]> 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, 28 Sep 2012 00:20:12 +0000 (10:20 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 28 Sep 2012 06:08:01 +0000 (16:08 +1000)
commit14779afdd9b3882258b28cc4443d7e5e4d478f43
tree9add2eb99e18b40f8246db75a4b91496587d4443
parentb82cefa7743d632796f89aab4f8e9d148f4136c4
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