Home
last modified time | relevance | path

Searched hist:"911918 aa7ef6f868c135505b0015e42072c54682" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/include/asm-generic/
H A Ddiv64.hdiff 911918aa7ef6f868c135505b0015e42072c54682 Mon Nov 02 13:55:05 CST 2015 Nicolas Pitre <nicolas.pitre@linaro.org> div64.h: optimize do_div() for power-of-two constant divisors

Let's perform the obvious mask and shift operation in this case.

On 32-bit targets, gcc is able to do the same thing with a constant
divisor that happens to be a power of two i.e. it turns the division
into an inline shift, but it doesn't hurt to be explicit.

Signed-off-by: Nicolas Pitre <nico@linaro.org>