Diego Biurrun <[email protected]> writes:

> On Sun, Jul 03, 2011 at 02:44:51PM +0100, Måns Rullgård wrote:
>> The AES and DES functions currently require, but do not document it,
>> 8-byte alignment for input and output buffers.  This is causing the AES
>> test to fail on SPARC.
>> 
>> What shall we do about this?  I can see two options:
>> 
>> 1. Document the requirement and fix all internal uses to ensure it is
>>    met (none currently do).
>> 
>> 2. Change the crypto code to allow arbitrarily aligned buffers (easy).
>
> Is there any drawback to 2)?  Otherwise why would we want to go with 1)?

Aligned would be ever so slightly faster on machines where unaligned
accesses are expensive.

-- 
Måns Rullgård
[email protected]
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to