int main( )
{
unsigned int i;

    i = 0xf0;
    i >> 4;
    Display( i, 4 );
    i /= 16;
    Display( i, 4 );
}

try: i >>= 4;

Reinier


> -----Original Message-----
> From: [email protected]
> [mailto:[email protected]]on Behalf Of Mark
> Stokes
> Sent: 03 december, 2002 16:24
> To: [email protected]
> Subject: RE: [Mspgcc-users] Shift Operators?
> 
> 
> Example code attached.
> Note line 45 has no resulting assembly.  This was compiled w/ no
> optimizations.
> -Mark
> 
> 
> -----Original Message-----
> From: [email protected]
> [mailto:[email protected]] On Behalf Of Dmitry
> Sent: Tuesday, December 03, 2002 9:44 AM
> To: [email protected]
> Subject: Re: [Mspgcc-users] Shift Operators?
> 
> 
> sources? example code?
> ~d
> 
> On Tuesday 03 December 2002 17:41, Mark Stokes wrote:
> > Looks like shift operators are just being ignored.  The easy
> workaround
> > is to multiply or divide by a power of 2.
> > Am I missing something?  Is this support planned?
> > -Mark
> >
> >
> >
> > -------------------------------------------------------
> > This SF.net email is sponsored by: Get the new Palm Tungsten T
> > handheld. Power & Color in a compact size!
> > http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en
> > _______________________________________________
> > Mspgcc-users mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/mspgcc-users
> 
> -- 
> /********************************************************************
>      ("`-''-/").___..--''"`-._     (\   Dimmy the Wild      UA1ACZ
>       `6_ 6  )   `-.  (     ).`-.__.`)  Enterprise Information Sys 
>       (_Y_.)'  ._   )  `._ `. ``-..-'   Nevsky prospekt,   20 / 44
>     _..`--'_..-_/  /--'_.' ,'           Saint Petersburg,   Russia
>    (il),-''  (li),'  ((!.-'             +7 (812)  3468202, 5585314
>  ********************************************************************/
> 
> 
> 
> -------------------------------------------------------
> This SF.net email is sponsored by: Get the new Palm Tungsten T 
> handheld. Power & Color in a compact size! 
> http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en
> _______________________________________________
> Mspgcc-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/mspgcc-users
> 

Reply via email to