]> git.sesse.net Git - ffmpeg/blobdiff - doc/optimization.txt
lavf, lavu: bump minor versions and add an APIChanges entry for av_ prefixes
[ffmpeg] / doc / optimization.txt
index 3a5d85e62a1dc278991a72af4ee749ce48111a95..08954f9973ea0acd703bb82998c8cef3dbe9b7d6 100644 (file)
@@ -17,8 +17,8 @@ Understanding these overoptimized functions:
 As many functions tend to be a bit difficult to understand because
 of optimizations, it can be hard to optimize them further, or write
 architecture-specific versions. It is recommended to look at older
-revisions of the interesting files (for a web frontend try ViewVC at
-http://svn.ffmpeg.org/ffmpeg/trunk/).
+revisions of the interesting files (web frontends for the various FFmpeg
+branches are listed at http://ffmpeg.org/download.html).
 Alternatively, look into the other architecture-specific versions in
 the x86/, ppc/, alpha/ subdirectories. Even if you don't exactly
 comprehend the instructions, it could help understanding the functions
@@ -172,6 +172,12 @@ yasm), you do this by using:
 cglobal functon_name, num_args, num_regs, num_xmm_regs
 In inline asm, you specify clobbered registers at the end of your asm:
 __asm__(".." ::: "%eax").
+If gcc is not set to support sse (-msse) it will not accept xmm registers
+in the clobber list. For that we use two macros to declare the clobbers.
+XMM_CLOBBERS should be used when there are other clobbers, for example:
+__asm__(".." ::: XMM_CLOBBERS("xmm0",) "eax");
+and XMM_CLOBBERS_ONLY should be used when the only clobbers are xmm registers:
+__asm__(".." :: XMM_CLOBBERS_ONLY("xmm0"));
 
 Do not expect a compiler to maintain values in your registers between separate
 (inline) asm code blocks. It is not required to. For example, this is bad: