This is the mail archive of the
mailing list for the GCC project.
c++ >> and signed numbers?
- From: Jerry Quinn <jlquinn at optonline dot net>
- To: libstdc++ at gcc dot gnu dot org, gcc at gcc dot gnu dot org
- Date: Sun, 14 Sep 2003 22:35:47 -0400
- Subject: 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.