[x264-devel] [PATCH] Align dct arrays (Altivec optimization, step 0)

Guillaume POIRIER gpoirier at mplayerhq.hu
Sat Sep 16 14:14:15 CEST 2006


Hello folks,
In order to reduce the size of my Altivec optimizations patchset, here's 
a patch that just forces the alignment of dct arrays found in 
encoder/macroblock.c
As you probably know, un-aligned memory access are are not implemented 
in hardware, so handling them requires to re-align data in software, 
which is both slower, and undesirable if the data can be aligned.
Note that proper alignment usually improves performance on other archs too.

It also aligns the test arrays as found in tool/checkasm.c.


Please review and comment.

Guillaume
-- 
A lie can travel half way around the world while the truth is putting on 
its shoes.
    Mark Twain 
<http://www.brainyquote.com/quotes/quotes/m/marktwain105835.html>

-------------- next part --------------
A non-text attachment was scrubbed...
Name: align_tabs.0.diff
Type: text/x-patch
Size: 5157 bytes
Desc: not available
Url : http://mailman.videolan.org/pipermail/x264-devel/attachments/20060916/4e199161/attachment.bin 


More information about the x264-devel mailing list