Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 7 Feb 2007 10:20:34 +0100
From:      Hans Petter Selasky <hselasky@c2i.net>
To:        freebsd-current@freebsd.org
Cc:        Luigi Rizzo <rizzo@icir.org>
Subject:   Re: C macro to find the next power of 2 ?
Message-ID:  <200702071020.34656.hselasky@c2i.net>
In-Reply-To: <20070207004131.A62183@xorpc.icir.org>
References:  <20070207004131.A62183@xorpc.icir.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi Luigi,

Why don't you hardcode the structures with the correct alignment, and maybe 
you find the __align() macro useful.

What you are discovering is an old issue. Hardware structures must be 
indexable without addition.

--HPS



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