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

Emanuele Giaquinta emanuele.giaquinta at gmail.com
Wed Aug 2 11:48:00 CEST 2006


On 7/29/06, Diego Biurrun <diego at biurrun.de> wrote:
> On Sat, Jul 15, 2006 at 01:52:07PM -0400, Rich Felker wrote:
> > Does the test also check for posix_memalign? This is the standard
> > name.
>
> No, it doesn't.  Should it?

Yes but afaik the only system which implements it is freebsd-current
(on glibc it is aliased to memalign iirc); note that also *BSD malloc
should guarantee proper alignment, quoting the manpage:

"The allocated space is suitably aligned (after possible pointer
coercion) for storage of any type of object."

So it would be better to have MEMALIGN_HACK configurable, making it
depend on the presence of memalign is not very right.

-- 
Emanuele Giaquinta



More information about the MPlayer-dev-eng mailing list