OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2010 Alexander Strange <astrange@ithinksw.com> | 2 * Copyright (c) 2010 Alexander Strange <astrange@ithinksw.com> |
3 * | 3 * |
4 * This file is part of FFmpeg. | 4 * This file is part of FFmpeg. |
5 * | 5 * |
6 * FFmpeg is free software; you can redistribute it and/or | 6 * FFmpeg is free software; you can redistribute it and/or |
7 * modify it under the terms of the GNU Lesser General Public | 7 * modify it under the terms of the GNU Lesser General Public |
8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
9 * version 2.1 of the License, or (at your option) any later version. | 9 * version 2.1 of the License, or (at your option) any later version. |
10 * | 10 * |
11 * FFmpeg is distributed in the hope that it will be useful, | 11 * FFmpeg is distributed in the hope that it will be useful, |
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
14 * Lesser General Public License for more details. | 14 * Lesser General Public License for more details. |
15 * | 15 * |
16 * You should have received a copy of the GNU Lesser General Public | 16 * You should have received a copy of the GNU Lesser General Public |
17 * License along with FFmpeg; if not, write to the Free Software | 17 * License along with FFmpeg; if not, write to the Free Software |
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | 18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
19 */ | 19 */ |
20 | 20 |
21 #ifndef AVUTIL_X86_INTREADWRITE_H | 21 #ifndef AVUTIL_X86_INTREADWRITE_H |
22 #define AVUTIL_X86_INTREADWRITE_H | 22 #define AVUTIL_X86_INTREADWRITE_H |
23 | 23 |
24 #include <stdint.h> | 24 #include <stdint.h> |
25 #include "config.h" | 25 #include "config.h" |
| 26 #include "libavutil/common.h" |
26 | 27 |
27 #if HAVE_MMX | 28 #if HAVE_MMX |
28 | 29 |
29 #if !HAVE_FAST_64BIT && defined(__MMX__) | 30 #if !HAVE_FAST_64BIT && defined(__MMX__) |
30 | 31 |
31 #define AV_COPY64 AV_COPY64 | 32 #define AV_COPY64 AV_COPY64 |
32 static av_always_inline void AV_COPY64(void *d, const void *s) | 33 static av_always_inline void AV_COPY64(void *d, const void *s) |
33 { | 34 { |
34 __asm__("movq %1, %%mm0 \n\t" | 35 __asm__("movq %1, %%mm0 \n\t" |
35 "movq %%mm0, %0 \n\t" | 36 "movq %%mm0, %0 \n\t" |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 "movdqa %%xmm0, %0 \n\t" | 88 "movdqa %%xmm0, %0 \n\t" |
88 : "=m"(*(struct v*)d) | 89 : "=m"(*(struct v*)d) |
89 :: "xmm0"); | 90 :: "xmm0"); |
90 } | 91 } |
91 | 92 |
92 #endif /* __SSE2__ */ | 93 #endif /* __SSE2__ */ |
93 | 94 |
94 #endif /* HAVE_MMX */ | 95 #endif /* HAVE_MMX */ |
95 | 96 |
96 #endif /* AVUTIL_X86_INTREADWRITE_H */ | 97 #endif /* AVUTIL_X86_INTREADWRITE_H */ |
OLD | NEW |