* Richard Biener via Gcc-patches:

> Given you know the constant bit position of the possibly nonzero
> bit you can elide the conversion to unsigned for all but the case
> of a possibly negative input (IIRC GCC doesn't yet take advantage
> of negative right shift undefinedness - but maybe sanitizers complain).

It's not undefined: “Signed '>>' acts on negative numbers by sign
extension.”

Thanks,
Florian

Reply via email to