https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90693
Wilco changed:
What|Removed |Added
Status|UNCONFIRMED |ASSIGNED
Last reconfirmed|
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90693
--- Comment #3 from Dávid Bolvanský ---
I measured it a bit..
(x-1)
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90693
--- Comment #2 from Wilco ---
(In reply to Dávid Bolvanský from comment #1)
> >> __builtin_popcount (x) == 1 into x == (x & -x)
>
>
> This will not work for x = 0.
>
> Should work:
> x && x == (x & -x)
> x && (x & x-1) == 0
Good point, though
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90693
Dávid Bolvanský changed:
What|Removed |Added
CC||david.bolvansky at gmail dot
com
---