Jonathan Larmour jifl@eCosCentric.com
Thu Jan 30 06:42:00 GMT 2003

Jonathan Larmour wrote:
> Patrick Doyle wrote:
>> Wandering in here very late in the game, I am wondering why you don't 
>> just
>> mask the result of the shift with 0xFFFFFFFFu whereever you use it.  On
>> 32-bit machines, the optimizer will (presumably) ignore the NOP mask, 
>> and on
>> other machines, the result will be 0 as you desire.
> Well that's true,

Except it isn't actually where we're shifting left by 32 of course. Still, 
my alternative avoids any possible portability problems.

eCosCentric       http://www.eCosCentric.com/       <info@eCosCentric.com>
--[ "You can complain because roses have thorns, or you ]--
--[  can rejoice because thorns have roses." -Lincoln   ]-- Opinions==mine

Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss

More information about the Ecos-discuss mailing list