[MPlayer-dev-eng] [PATCH] do not define MEMALIGN_HACK on mac os x

Emanuele Giaquinta emanuele.giaquinta at gmail.com
Wed Aug 2 20:04:40 CEST 2006


On 8/2/06, Rich Felker <dalias at aerifal.cx> wrote:
> On Wed, Aug 02, 2006 at 11:48:00AM +0200, Emanuele Giaquinta wrote:
> > So it would be better to have MEMALIGN_HACK configurable, making it
> > depend on the presence of memalign is not very right.
>
> No, it is correct. malloc is not sufficient unless the platform has a
> C type with alignment requirements of 16 or more.

Ok I understand.
My patch still stands then, darwin malloc guarantees alignment for
altivec types and av_malloc hack aligns on 16 too.

-- 
Emanuele Giaquinta



More information about the MPlayer-dev-eng mailing list