writing usb drivers under 8.x
perryh at pluto.rain.com
perryh at pluto.rain.com
Sat Aug 28 23:00:59 UTC 2010
Jim Bryant <kc5vdj.freebsd at gmail.com> wrote:
> what kind of idiot defines a constant assignment for a 32k buffer as a
> 15 bit left shift of 1?
>
> clever, yes. but in production, stupid.
>
> a constant should be just that, a constant, and thus require no
> computation at runtime.
Er, did you bother to look at the generated code before spouting off?
Most compilers, even as far back as K&R 1st edition, will compute
constant expressions like that at compile time.
More information about the freebsd-usb
mailing list