PPC: check for x-form asm constraint support
Originally committed as revision 18606 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
2
configure
vendored
2
configure
vendored
@@ -924,6 +924,7 @@ HAVE_LIST="
|
|||||||
truncf
|
truncf
|
||||||
VirtualAlloc
|
VirtualAlloc
|
||||||
winsock2_h
|
winsock2_h
|
||||||
|
xform_asm
|
||||||
yasm
|
yasm
|
||||||
"
|
"
|
||||||
|
|
||||||
@@ -1908,6 +1909,7 @@ fi
|
|||||||
|
|
||||||
enabled ppc && check_asm dcbzl '"dcbzl 0, 1"'
|
enabled ppc && check_asm dcbzl '"dcbzl 0, 1"'
|
||||||
enabled ppc && check_asm ppc4xx '"maclhw r10, r11, r12"'
|
enabled ppc && check_asm ppc4xx '"maclhw r10, r11, r12"'
|
||||||
|
enabled ppc && check_asm xform_asm '"lwzx 0, %y0" :: "Z"(*(int*)0)'
|
||||||
|
|
||||||
# check for SIMD availability
|
# check for SIMD availability
|
||||||
|
|
||||||
|
@@ -24,6 +24,8 @@
|
|||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
|
||||||
|
#if HAVE_XFORM_ASM
|
||||||
|
|
||||||
#define AV_RL16 AV_RL16
|
#define AV_RL16 AV_RL16
|
||||||
static inline uint16_t AV_RL16(const void *p)
|
static inline uint16_t AV_RL16(const void *p)
|
||||||
{
|
{
|
||||||
@@ -93,6 +95,8 @@ static inline void AV_WL64(void *p, uint64_t v)
|
|||||||
|
|
||||||
#endif /* HAVE_LDBRX */
|
#endif /* HAVE_LDBRX */
|
||||||
|
|
||||||
|
#endif /* HAVE_XFORM_ASM */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* GCC fails miserably on the packed struct version which is used by
|
* GCC fails miserably on the packed struct version which is used by
|
||||||
* default, so we override it here.
|
* default, so we override it here.
|
||||||
|
Reference in New Issue
Block a user