Re: [sv-ac] Re: [sv-bc] Re: if-else

From: Steven Sharp <sharp_at_.....>
Date: Thu Nov 01 2007 - 11:41:47 PDT
>'b0 is another possibility.  I am trying to understand the
>technical distinction, if any, from the different choices.

If you actually had (expression != 'b0), that would force the
expression to be evaluated at a width of 32 bits (if it were
itself narrower) and unsigned.  But again, this is taking the
equivalence too literally.  The semantics of "if (expression)"
are those of self-determined evaluation of expression, followed
by a comparison of that value with a zero of equivalent width
to the result, or more simply, a check for any 1 bits.

Steven Sharp
sharp@cadence.com


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Received on Thu Nov 1 11:42:10 2007

This archive was generated by hypermail 2.1.8 : Thu Nov 01 2007 - 11:42:21 PDT