tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Threaded file system benchmark



On Sun, Jul 12, 2015 at 03:13:56PM +0100, Mindaugas Rasiukevicius wrote:
 > > +#if !defined(BITS_PER_LONG)
 > > +#define	BITS_PER_LONG __SIZEOF_LONG__*8
 > > +#endif
 > 
 > I did not look how exactly is this used, but it is a good idea to use
 > brackets around the expression when dealing with macros.  Just prevents
 > from any future bugs.

Also, that should be CHAR_BIT and not a magic 8...

-- 
David A. Holland
dholland%netbsd.org@localhost


Home | Main Index | Thread Index | Old Index