Go to the documentation of this file.
21 #ifndef AVUTIL_X86_INTREADWRITE_H
22 #define AVUTIL_X86_INTREADWRITE_H
30 #if !HAVE_FAST_64BIT && defined(__MMX__)
32 #define AV_COPY64 AV_COPY64
35 __asm__(
"movq %1, %%mm0 \n\t"
38 :
"m" (*(
const uint64_t*)s)
42 #define AV_SWAP64 AV_SWAP64
45 __asm__(
"movq %1, %%mm0 \n\t"
49 :
"+m"(*(uint64_t*)a),
"+m"(*(uint64_t*)b)
53 #define AV_ZERO64 AV_ZERO64
56 __asm__(
"pxor %%mm0, %%mm0 \n\t"
66 #define AV_COPY128 AV_COPY128
69 struct v {uint64_t v[2];};
71 __asm__(
"movaps %1, %%xmm0 \n\t"
72 "movaps %%xmm0, %0 \n\t"
74 :
"m" (*(
const struct v*)s)
82 #define AV_ZERO128 AV_ZERO128
85 struct v {uint64_t v[2];};
87 __asm__(
"pxor %%xmm0, %%xmm0 \n\t"
88 "movdqa %%xmm0, %0 \n\t"