> OK, how about:
> 
>        /* ??? For historical reasons, reject modes that would normally
>           receive greater alignment, even if unaligned accesses are
>           acceptable.  This has both advantages and disadvantages.

Fine with me.

> I think here we really do want unit (i.e. the GET_MODE_BITSIZE).
> We're dividing the bitfield into unit-sized chunks and want to know
> whether those chunks are aligned or not.  If they aren't aligned,
> we need to know whether unaligned accesses are OK.

We could conceivably have an aligned mode with bitsize 32 and alignment 16 
(i.e. STRICT_ALIGNMENT 1 and BIGGEST_ALIGNMENT 16), meaning that we can use 
16-bit aligned 32-bit chunks in this mode.  Why would the bitsize matter 
(assuming that it's a multiple of the alignment)?

-- 
Eric Botcazou

Reply via email to