[MPlayer-dev-eng] [PATCH] use av_malloc/av_free instead of malloc where missing memalign

Loren Merritt lorenm at u.washington.edu
Sun Oct 12 12:20:43 CEST 2008


On Sun, 12 Oct 2008, Siarhei Siamashka wrote:
>
> I may be misinterpreting something (C99 draft and 'man malloc'), but isn't
> alignment of a pointer returned by malloc supposed to be sufficient for using
> it with any data type supported on the target platform? That would mean that
> the pointer returned by malloc must be at least 16 bytes aligned on the
> systems supporting SSE instructions.

Any C type, yes. But there is no vector type in standard C.
Gcc happens to support extensions for sse, but I don't see how that can 
make a libc noncompliant.

--Loren Merritt



More information about the MPlayer-dev-eng mailing list