Originally committed as revision 18606 to svn://svn.ffmpeg.org/ffmpeg/trunk
Måns Rullgård authored on 2009/04/18 22:57:30... | ... |
@@ -924,6 +924,7 @@ HAVE_LIST=" |
924 | 924 |
truncf |
925 | 925 |
VirtualAlloc |
926 | 926 |
winsock2_h |
927 |
+ xform_asm |
|
927 | 928 |
yasm |
928 | 929 |
" |
929 | 930 |
|
... | ... |
@@ -1908,6 +1909,7 @@ fi |
1908 | 1908 |
|
1909 | 1909 |
enabled ppc && check_asm dcbzl '"dcbzl 0, 1"' |
1910 | 1910 |
enabled ppc && check_asm ppc4xx '"maclhw r10, r11, r12"' |
1911 |
+enabled ppc && check_asm xform_asm '"lwzx 0, %y0" :: "Z"(*(int*)0)' |
|
1911 | 1912 |
|
1912 | 1913 |
# check for SIMD availability |
1913 | 1914 |
|
... | ... |
@@ -24,6 +24,8 @@ |
24 | 24 |
#include <stdint.h> |
25 | 25 |
#include "config.h" |
26 | 26 |
|
27 |
+#if HAVE_XFORM_ASM |
|
28 |
+ |
|
27 | 29 |
#define AV_RL16 AV_RL16 |
28 | 30 |
static inline uint16_t AV_RL16(const void *p) |
29 | 31 |
{ |
... | ... |
@@ -93,6 +95,8 @@ static inline void AV_WL64(void *p, uint64_t v) |
93 | 93 |
|
94 | 94 |
#endif /* HAVE_LDBRX */ |
95 | 95 |
|
96 |
+#endif /* HAVE_XFORM_ASM */ |
|
97 |
+ |
|
96 | 98 |
/* |
97 | 99 |
* GCC fails miserably on the packed struct version which is used by |
98 | 100 |
* default, so we override it here. |