warning: right shift count >= width of type
Andreas Schwab
schwab@suse.de
Tue Nov 30 01:50:00 GMT 2004
Paul Schlie <schlie@comcast.net> writes:
> It likely needs to define what (x << z) means if:
>
> - z lesser-or-equal-to 0, [i.e. does (x << -1) == (x >> 1) ?]
Since left and right shift are usually separate insns this would result in
a runtime penalty.
Andreas.
--
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, MaxfeldstraÃe 5, 90409 Nürnberg, Germany
Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
More information about the Gcc
mailing list