[SCM] libav/experimental: "General Tips" section

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 16:15:20 UTC 2013


The following commit has been merged in the experimental branch:
commit 7b8c3aedac0e8cf2fac509713515bbeff8afeff9
Author: Michael Niedermayer <michaelni at gmx.at>
Date:   Thu Feb 21 13:02:31 2008 +0000

    "General Tips" section
    
    Originally committed as revision 12168 to svn://svn.ffmpeg.org/ffmpeg/trunk

diff --git a/doc/optimization.txt b/doc/optimization.txt
index 27fcbba..091551a 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:
 ======

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list