This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
RE: Question CYGNUM_KERNEL_THREADS_DATA_MAX?
- From: "Patrick Doyle" <wpd at delcomsys dot com>
- To: "Jonathan Larmour" <jifl at eCosCentric dot com>, "Andrew Lunn" <andrew dot lunn at ascom dot ch>
- Cc: "Fredrik Hederstierna" <fredrik at wespot dot com>, "eCos Discussion" <ecos-discuss at sources dot redhat dot com>
- Date: Tue, 28 Jan 2003 15:34:20 -0500
- Subject: RE: [ECOS] Question CYGNUM_KERNEL_THREADS_DATA_MAX?
> > Thats what im relying on. 1<<32 should be 0 on most processors. If so,
> > it all works out correct. But its not something i would trust unless
> > it was written down in some standard and gcc actually implements that
> > standard.
>
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.
OK, I'll drift back out now...
--wpd
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss