Re: [PATCH] lib: Make _find_next_bit helper function inline

From: Andrew Morton
Date: Tue Jul 28 2015 - 17:45:44 EST


On Wed, 29 Jul 2015 00:23:18 +0300 Yury <yury.norov@xxxxxxxxx> wrote:

> But I think, before/after for x86 is needed as well.

That would be nice.

> And why don't you consider '__always_inline__'? Simple inline is only a
> hint and
> guarantees nothing.

Yup. My x86_64 compiler just ignores the "inline". When I use
__always_inline, find_bit.o's text goes from 776 bytes to 863.
Hopefully we get something in return for that bloat!


Also, if _find_next_bit() benefits from this then _find_next_bit_le()
will presumably also benefit.


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/