On Mon, 2003-12-01 at 00:06, Steven M. Schultz wrote:
>       As a temporary measure you can try editing the compat function
>       posix_memalign to return an aligned address.  NOTE:  this will result
>       in a pointer that can NOT be passed to 'free()' - which makes this an
>       unacceptable solution in the long term (but as an experiment it would
>       be worth trying).

Is this function called often? If not, it can be easily worked around by
creating a linked list of allocated pointers from posix_memalign().
Then, return (ret + 3) &~ 3. In posix_memalign_free, check the given
pointer against each value in the list (listval + 3) &~ 3 and free
listval.

If we don't call this too often, this will have no measurable
performance effects.

Ronald

-- 
Ronald Bultje <[EMAIL PROTECTED]>
Linux Video/Multimedia developer



-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
Mjpeg-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mjpeg-users

Reply via email to