Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 30 Aug 2010 08:38:25 +0200
From:      Hans Petter Selasky <hselasky@c2i.net>
To:        freebsd-usb@freebsd.org
Subject:   Re: writing usb drivers under 8.x
Message-ID:  <201008300838.25970.hselasky@c2i.net>
In-Reply-To: <4C7B1510.1000601@gmail.com>
References:  <4C76AB76.4070806@gmail.com> <4C7B1139.4050106@gmail.com> <4C7B1510.1000601@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Monday 30 August 2010 04:18:56 Jim Bryant wrote:
> well, i can't speak for K&R 1978, as i can't currently find my copy,
> but, for a quick brush up, you might want to read pages 80 and 81 from
> K&R 2nd Ed. 1988.
> 
> your idea that the preprocessor will evaluate
> 
> #define thirtytwok (1<<15)
> 

For bit 31, you should consider adding a U, so that the values is not treated 
like a negative value.


1U << 31


--HPS



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201008300838.25970.hselasky>