<DIV>Why not x264 use to malloc() ?</DIV>
<DIV>I don't understand the x264_malloc() code.</DIV>
<DIV>For speed, Is below-code used ?</DIV>
<DIV>I want to know the meaning of the x264_malloc() code.</DIV>
<DIV> </DIV>
<DIV>void *x264_malloc( int i_size )<BR>{<BR>#ifdef SYS_MACOSX<BR> /* Mac OS X always returns 16 bytes aligned memory */<BR> return malloc( i_size );<BR>#elif defined( HAVE_MALLOC_H )<BR> return memalign( 16, i_size );<BR>#else<BR> uint8_t * buf;<BR> uint8_t * align_buf;<BR> buf = (uint8_t *) malloc( i_size + 15 + sizeof( void ** ) +<BR> sizeof( int ) );<BR> align_buf = buf + 15 + sizeof( void ** ) + sizeof( int );<BR> align_buf -= (long) align_buf & 15;<BR> *( (void **) ( align_buf - sizeof( void ** ) ) ) = buf;<BR> *( (int *) ( align_buf - sizeof( void ** ) - sizeof( int ) ) ) = i_size;<BR> return align_buf;<BR>#endif<BR>}</DIV>
<DIV> </DIV>
<DIV>Thanks..</DIV>
<DIV> </DIV>
<DIV>Best regards</DIV>
<DIV> </DIV>
<DIV>Bae</DIV><p>
                <hr size=1>Yahoo! Mail<br>
Stay connected, organized, and protected. <a href="http://tour.mail.yahoo.com/mailtour.html">Take the tour</a>