]> git.karo-electronics.de Git - karo-tx-linux.git/commit
lib: vsprintf: optimize division by 10000
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)
commita6ab24593f43101b1d6ae523037fab75bc4dab4f
treef8fca7febb2599a9ad85c1b699194feda27d6729
parent092eb3c04e4a9b2b938b100476c55682fe0b34fe
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