Shift operators

From: <john.aynsley@doulos.com>
Date: Thu Nov 25 2010 - 01:14:10 PST

Dave,

You wrote the following many moons ago. Does it still stand?

[DVC, correction by DL] 7.6.4.7 The text in 7.6.4.7 is incorrect - it
should be similar to the description of sc_signed bitwise shift operators
in 7.6.3.7. I think the two paragraphs before Table 13 should be replaced
by:

"The left shift operator shall return a result with a word length that is
equal to the word length of its sc_unsigned operand plus the right
(integer) operand. Bits added on the right-hand side of the result shall
be set to zero.

The right shift operator shall return a result with a word length that is
equal to the word length of its sc_unsigned operand. Bits added on the
left-hand side of the result shall be set to zero.

The behavior of a shift operator is undefined if the right operand is
negative."

Thanks,

John A

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Received on Thu Nov 25 01:14:48 2010

This archive was generated by hypermail 2.1.8 : Thu Nov 25 2010 - 01:14:51 PST