lists.zerezo.com
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
***BOGO*** Re: [MPlayer-dev-eng] [PATCH] use av_malloc/av_free instead of malloc where missing memalign
- Date: Sun, 12 Oct 2008 04:20:43 -0600 (MDT)
- From: Loren Merritt <lorenm@xxxxxxxxxxxxxxxx>
- Subject: ***BOGO*** Re: [MPlayer-dev-eng] [PATCH] use av_malloc/av_free instead of malloc where missing memalign
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
_______________________________________________
MPlayer-dev-eng mailing list
MPlayer-dev-eng@xxxxxxxxxxxx
https://lists.mplayerhq.hu/mailman/listinfo/mplayer-dev-eng