On Fri, Mar 10, 2017 at 03:41:23PM +0100, Christophe LEROY wrote:FYI, see https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80131
Heh, yes. But is't okay with GCC, so don't worry about it.Euh .... I'm a bit lost. Do you mean the form we have today is theSure, that works. "1 << (31 - i)" is most readable (but it doesn't yetShall it be 1U << 31 ?gpio_get() and gpio_set() are used extensively by some GPIO based1 << 31 is undefined behaviour, of course.
drivers like SPI, NAND, so it may be worth it as it doesn't impair
readability (if anyone prefers, we could write (1 << 31) >> i instead
of 0x80000000 >> i )
generate the code you want).
driver is wrong ?
The point is that "0x80000000 >> i" is less readable.