This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

c++ >> and signed numbers?


According to the c++ spec, operator >> is implementation-defined as to
what it does with negative numbers.  So, does g++ sign-extend negative
numbers shifted to the right?  Or is it triplet-specific?

I scanned the docs but couldn't find any mention of the answer.

Jerry Quinn


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]