Iustin,
> Negative constant left-shift is undefined behaviour in the C standard,
> and as such newer versions of clang (at least) warn against it. GCC
> supports it for a long time, but it would be better to remove it and
> rely on defined behaviour.
Applied to 5.1/scsi-queue. Thanks!
--
Mart
On 2/21/19 4:20 PM, Iustin Pop wrote:
> Negative constant left-shift is undefined behaviour in the C standard,
> and as such newer versions of clang (at least) warn against it. GCC
> supports it for a long time, but it would be better to remove it and
> rely on defined behaviour.
>
> My understand
Negative constant left-shift is undefined behaviour in the C standard,
and as such newer versions of clang (at least) warn against it. GCC
supports it for a long time, but it would be better to remove it and
rely on defined behaviour.
My understanding is "~(-1 << N)" in 2's complement is intended
3 matches
Mail list logo