Re: Shift operators

From: <david.long@doulos.com>
Date: Thu Nov 25 2010 - 01:37:28 PST

John,

That looks OK to me, please replace the existing text before Table 13 in
the 1666-2005 (it is wrong).

Thanks,

Dave

From:
John Aynsley/doulos
To:
David Long/doulos@DOULOS
Cc:
systemc-p1666-technical@eda.org
Date:
25/11/2010 09:14
Subject:
Shift operators

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:38:10 2010

This archive was generated by hypermail 2.1.8 : Thu Nov 25 2010 - 01:38:13 PST