lkml.org 
[lkml]   [1997]   [Dec]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: BITS_PER_LONG
From
Date
Hans Lermen <lermen@elserv.ffm.fgan.de> writes:

> On Sun, 28 Dec 1997, Martin Mares wrote:
>
> > +#define BITS_PER_LONG 32
> > #else
> > +#define BITS_PER_LONG 64
> > #endif
>
> what about a global, unconditional
>
> #define BITS_PER_LONG (sizeof(long)<<3)

That won't work; we want to be able to test BITS_PER_LONG with
preprocessor directives, and the preprocessor doesn't (and shouldn't)
know the size of anything.

--
Aaron M. Ucko <amu@mit.edu> (finger amu@monk.mit.edu) [Stark raving sane]

\
 
 \ /
  Last update: 2005-03-22 13:40    [W:0.371 / U:0.964 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site