diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2008-02-21 13:02:31 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2008-02-21 13:02:31 +0000 |
commit | 7b8c3aedac0e8cf2fac509713515bbeff8afeff9 (patch) | |
tree | 23e395975d92ebb43b676d468161f6175e444ba1 | |
parent | 086ab00158cb8e0d5f7b7bce00b5c5cbed3177ce (diff) | |
download | ffmpeg-7b8c3aedac0e8cf2fac509713515bbeff8afeff9.tar.gz |
"General Tips" section
Originally committed as revision 12168 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | doc/optimization.txt | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/doc/optimization.txt b/doc/optimization.txt index 27fcbba02f..091551a25f 100644 --- a/doc/optimization.txt +++ b/doc/optimization.txt @@ -151,6 +151,22 @@ The minimum guaranteed alignment is written in the .h files, for example: void (*put_pixels_clamped)(const DCTELEM *block/*align 16*/, UINT8 *pixels/*align 8*/, int line_size); +General Tips: +------------- +Use asm loops like: +asm( + "1: .... + ... + "jump_instruciton .... +dont use C loops: +do{ + asm( + ... +}while() + +Use asm() instead of intrinsics. Later require a good optimizing compiler +which gcc is not. + Links: ====== |