ffmpeg AT&T汇编转intel汇编 之(MULL)

来源:互联网 发布:java switch case if 编辑:程序博客网 时间:2024/06/08 17:30
static av_always_inline av_const int MULL(int a, int b, unsigned shift)
{
 int rt;
 //__asm__ (
 //    "imull %3               \n\t"
 //    "shrdl %4, %%edx, %%eax \n\t"
 //    :"=a"(rt), "=d"(dummy)
 //    :"a"(a), "rm"(b), "ci"((uint8_t)shift)
 //);
 __asm__{
  mov eax, a
   imul b
   mov ecx, shift
   shrd eax,edx,cl
   mov rt, eax
 }
 return rt;
}
原创粉丝点击