C macro to find the next power of 2 ?

Hans Petter Selasky hselasky at c2i.net
Wed Feb 7 09:20:59 UTC 2007


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


More information about the freebsd-current mailing list