]> git.karo-electronics.de Git - karo-tx-linux.git/commit
lib: vsprintf: optimize division by 10000
authorGeorge Spelvin <linux@horizon.com>
Fri, 7 Sep 2012 00:24:28 +0000 (10:24 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 10 Sep 2012 06:18:13 +0000 (16:18 +1000)
commit30a7b31c84172f86fe2db19fa5e1d11d78e355d2
treef612c574312f9700c9a8541d6d1e7532a47ad242
parent88765ebfafe9362deaec4262ccea61ca7c466274
lib: vsprintf: optimize division by 10000

The same multiply-by-inverse technique can be used to convert division by
10000 to a 32x32->64-bit multiply.

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