[FFmpeg-cvslog] r12275 - in trunk: libavcodec/cabac.h libavutil/internal.h

reimar subversion
Thu Feb 28 18:01:35 CET 2008


Author: reimar
Date: Thu Feb 28 18:01:35 2008
New Revision: 12275

Log:
Use cltd instead of cdq asm mnemonic, ICC and gcc support but, but
SunStudio 12 only supports the former.


Modified:
   trunk/libavcodec/cabac.h
   trunk/libavutil/internal.h

Modified: trunk/libavcodec/cabac.h
==============================================================================
--- trunk/libavcodec/cabac.h	(original)
+++ trunk/libavcodec/cabac.h	Thu Feb 28 18:01:35 2008
@@ -327,7 +327,7 @@ static inline void renorm_cabac_decoder_
     //P3:665    athlon:517
     asm(
         "lea -0x100(%0), %%eax      \n\t"
-        "cdq                        \n\t"
+        "cltd                       \n\t"
         "mov %0, %%eax              \n\t"
         "and %%edx, %0              \n\t"
         "and %1, %%edx              \n\t"
@@ -599,7 +599,7 @@ static int get_cabac_bypass(CABACContext
         "shl $17, %%ebx                         \n\t"
         "add %%eax, %%eax                       \n\t"
         "sub %%ebx, %%eax                       \n\t"
-        "cdq                                    \n\t"
+        "cltd                                   \n\t"
         "and %%edx, %%ebx                       \n\t"
         "add %%ebx, %%eax                       \n\t"
         "test %%ax, %%ax                        \n\t"
@@ -646,7 +646,7 @@ static av_always_inline int get_cabac_by
         "shl $17, %%ebx                         \n\t"
         "add %%eax, %%eax                       \n\t"
         "sub %%ebx, %%eax                       \n\t"
-        "cdq                                    \n\t"
+        "cltd                                   \n\t"
         "and %%edx, %%ebx                       \n\t"
         "add %%ebx, %%eax                       \n\t"
         "xor %%edx, %%ecx                       \n\t"

Modified: trunk/libavutil/internal.h
==============================================================================
--- trunk/libavutil/internal.h	(original)
+++ trunk/libavutil/internal.h	Thu Feb 28 18:01:35 2008
@@ -205,7 +205,7 @@ static inline unsigned int ff_sqrt(unsig
 #if defined(ARCH_X86)
 #define MASK_ABS(mask, level)\
             asm volatile(\
-                "cdq                    \n\t"\
+                "cltd                   \n\t"\
                 "xorl %1, %0            \n\t"\
                 "subl %1, %0            \n\t"\
                 : "+a" (level), "=&d" (mask)\




More information about the ffmpeg-cvslog mailing list