On 11/21/2013 01:03 AM, Sieghard wrote:
> the values you assign to the symbols (bit patterns, in this case) are 
> just convention. And don't matter as long as no calculation can return 
> a result outside of the base set. 
Yep. And for casting them to "bigger" types (also implicitly when doing 
operation between them and a "bigger" partner) the obvious way is 
sign-extension (i.e. duplicate highest order bit i.e. "sign" bit) for 
signed types  and zero-extend unsigned types. As the extend operation is 
not allowed to change the value, it's obvious that for a 1 bit signed 
type the possible values are 0 and -1.

This is what I tried to show with the example.

-Michael


------------------------------------------------------------------------------
Shape the Mobile Experience: Free Subscription
Software experts and developers: Be at the forefront of tech innovation.
Intel(R) Software Adrenaline delivers strategic insight and game-changing 
conversations that shape the rapidly evolving mobile landscape. Sign up now. 
http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk
_______________________________________________
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk

Reply via email to