mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
Implement a proper configure test for AltiVec vector declaration syntax.
Originally committed as revision 13555 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
81a5cdde80
commit
b006b26c83
8
configure
vendored
8
configure
vendored
@ -714,6 +714,7 @@ HAVE_LIST="
|
|||||||
$ARCH_EXT_LIST
|
$ARCH_EXT_LIST
|
||||||
$THREADS_LIST
|
$THREADS_LIST
|
||||||
altivec_h
|
altivec_h
|
||||||
|
altivec_vector_braces
|
||||||
arpa_inet_h
|
arpa_inet_h
|
||||||
bswap
|
bswap
|
||||||
byteswap_h
|
byteswap_h
|
||||||
@ -1542,6 +1543,13 @@ int main(void) {
|
|||||||
v1 = vec_add(v2,v3);
|
v1 = vec_add(v2,v3);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
EOF
|
||||||
|
|
||||||
|
# check if our compiler supports braces for vector declarations
|
||||||
|
check_cc <<EOF && enable altivec_vector_braces
|
||||||
|
$inc_altivec_h
|
||||||
|
#define AVV(x...) {x}
|
||||||
|
int main (void) { (vector int) AVV(1); return 0; }
|
||||||
EOF
|
EOF
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -50,11 +50,10 @@
|
|||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Use Apple-specific AltiVec syntax for vector declarations when necessary. */
|
#ifdef HAVE_ALTIVEC_VECTOR_BRACES
|
||||||
#ifdef __APPLE_CC__
|
|
||||||
#define AVV(x...) (x)
|
|
||||||
#else
|
|
||||||
#define AVV(x...) {x}
|
#define AVV(x...) {x}
|
||||||
|
#else
|
||||||
|
#define AVV(x...) (x)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef M_PI
|
#ifndef M_PI
|
||||||
|
Loading…
Reference in New Issue
Block a user