cogl-flags: Fix iterating flag when the most-significant bit is set
cogl-flags: Fix iterating flag when the most-significant bit is set

When the flags contain a value that only has the most-significant bit
set then ffsl will return the size of an unsigned long. According to
the C spec it is undefined what happens when shifting by a number
greater than or equal to the size of the left operand. On Intel (and
probably others) this seems to end up being a no-op so the iteration
breaks. To fix this we can split the shift into two separate
shifts. We always need to shift by at least one bit so we can put this
one bit shift into a separate operator.

Reviewed-by: Robert Bragg <12e9293ec6b30c7fa8a0926af42807e929c1684f@linux.intel.com>

djdeath/cogl-android,Distrotech/cogl,djdeath/cogl,Distrotech/cogl,djdeath/cogl-android,gcampax/cogl,collects/cogl,djdeath/cogl,djdeath/cogl,djdeath/cogl-android,Distrotech/cogl,gcampax/cogl,Distrotech/cogl,collects/cogl,gcampax/cogl,gcampax/cogl