[Speex-dev] Improving memory allocation

Steve Kann stevek at stevek.com
Thu Mar 3 13:49:50 PST 2005


Jean-Marc Valin wrote:

>>alloca() allocates memory in the current stack frame, and works for both 
>>gcc and icc.
>>    
>>
>
>Another problem I find with alloca is that you cannot control the
>alignment. This might cause problem with the SSE code, which requires
>16-byte alignment.
>  
>

That's a pretty simple problem to solve, though; make a speex_alloca() 
which gives you back something aligned..

-SteveK

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.xiph.org/pipermail/speex-dev/attachments/20050303/efc23dc4/attachment.html


More information about the Speex-dev mailing list