------- Comment #4 from ubizjak at gmail dot com  2009-09-29 20:53 -------
In fact, this implements short-cut of boolean OR. Function returns early for x
== 0 and should not execute right part of OR expression in this case. Something
like:

if (x == 0 || (x & (x - 1)) == 0)
  return 1;
else
  return 0;


-- 

ubizjak at gmail dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19778

Reply via email to