[Ffmpeg-devel] [PATCH] "p" asm constraint in swscale_template.c

Reimar Döffinger Reimar.Doeffinger
Sat Nov 25 15:24:06 CET 2006


Hello,
I stumbled over this because icc can not compile it. Can someone tell me
what using "p" instead of "r" is good for? Any reason not to just change
it to "r"? I did test on 32 bit with icc 9.1 and on 64 bit with gcc 4.1
so far.

Greetings,
Reimar D?ffinger
-------------- next part --------------
Index: libswscale/swscale_template.c
===================================================================
--- libswscale/swscale_template.c	(revision 21216)
+++ libswscale/swscale_template.c	(working copy)
@@ -102,7 +102,7 @@
 			"mov (%%"REG_d"), %%"REG_S"	\n\t"\
 			"jb 1b				\n\t"\
                         :: "r" (&c->redDither),\
-                        "r" (dest), "p" (width)\
+                        "r" (dest), "r" (width)\
                         : "%"REG_a, "%"REG_d, "%"REG_S\
                 );
 
@@ -164,7 +164,7 @@
 			"mov (%%"REG_d"), %%"REG_S"	\n\t"\
 			"jb 1b				\n\t"\
                         :: "r" (&c->redDither),\
-                        "r" (dest), "p" (width)\
+                        "r" (dest), "r" (width)\
                         : "%"REG_a, "%"REG_d, "%"REG_S\
                 );
 



More information about the ffmpeg-devel mailing list