Gcc idiocy fixes related to filter_mb_edge*.
authorMichael Niedermayer <michaelni@gmx.at>
Fri, 22 Jan 2010 01:59:17 +0000 (01:59 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 22 Jan 2010 01:59:17 +0000 (01:59 +0000)
commit258b60c22454bf8d97e72ce99d0f6c841923d999
tree83d2cab9bbdc4c139ae17b75bc16468389031485
parentac1e18cb780a54c9802e35dc258f920041c4085d
Gcc idiocy fixes related to filter_mb_edge*.
Change order of operands as gcc uses a hardcoded register per operand it seems
even for static functions
thus reducing unneeded moved (now functions try to pass the same argument in
the same spot).
Change signed int to unsigned int for array indexes as signed requires signed
extension while unsigned is free.
move the +52 up and merge it where it will end as a lea instruction, gcc always
splits the 52 out there turning the free +52 into an expensive one otherwise.
The changed code becomes a little faster.

Originally committed as revision 21375 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/h264_loopfilter.c