mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
Use a function for repeated AltiVec output and condition check.
Originally committed as revision 7749 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
d7a9562415
commit
1658bc4f96
34
configure
vendored
34
configure
vendored
@ -1330,48 +1330,40 @@ fi
|
||||
# Add processor-specific flags
|
||||
POWERPCMODE="32bits"
|
||||
if test $cpu != "generic"; then
|
||||
warn_altivec_enabled(){
|
||||
enabled altivec && echo "WARNING: Tuning for $1 but AltiVec enabled.";
|
||||
}
|
||||
warn_altivec_disabled(){
|
||||
disabled altivec && echo "WARNING: Tuning for $1 but AltiVec disabled.";
|
||||
}
|
||||
case $cpu in
|
||||
601|ppc601|PowerPC601)
|
||||
add_cflags "-mcpu=601"
|
||||
if enabled altivec; then
|
||||
echo "WARNING: Tuning for PPC601 but AltiVec enabled.";
|
||||
fi
|
||||
warn_altivec_enabled PPC601
|
||||
;;
|
||||
603*|ppc603*|PowerPC603*)
|
||||
add_cflags "-mcpu=603"
|
||||
if enabled altivec; then
|
||||
echo "WARNING: Tuning for PPC603 but AltiVec enabled.";
|
||||
fi
|
||||
warn_altivec_enabled PPC603
|
||||
;;
|
||||
604*|ppc604*|PowerPC604*)
|
||||
add_cflags "-mcpu=604"
|
||||
if enabled altivec; then
|
||||
echo "WARNING: Tuning for PPC604 but AltiVec enabled.";
|
||||
fi
|
||||
warn_altivec_enabled PPC604
|
||||
;;
|
||||
G3|g3|75*|ppc75*|PowerPC75*)
|
||||
add_cflags "-mcpu=750 -mpowerpc-gfxopt"
|
||||
if enabled altivec; then
|
||||
echo "WARNING: Tuning for PPC75x but AltiVec enabled.";
|
||||
fi
|
||||
warn_altivec_enabled PPC75x
|
||||
;;
|
||||
G4|g4|745*|ppc745*|PowerPC745*)
|
||||
add_cflags "-mcpu=7450 -mpowerpc-gfxopt"
|
||||
if disabled altivec; then
|
||||
echo "WARNING: Tuning for PPC745x but AltiVec disabled.";
|
||||
fi
|
||||
warn_altivec_disabled PPC745x
|
||||
;;
|
||||
74*|ppc74*|PowerPC74*)
|
||||
add_cflags "-mcpu=7400 -mpowerpc-gfxopt"
|
||||
if disabled altivec; then
|
||||
echo "WARNING: Tuning for PPC74xx but AltiVec disabled.";
|
||||
fi
|
||||
warn_altivec_disabled PPC74xx
|
||||
;;
|
||||
G5|g5|970|ppc970|PowerPC970|power4*|Power4*)
|
||||
add_cflags "-mcpu=970 -mpowerpc-gfxopt -mpowerpc64"
|
||||
if disabled altivec; then
|
||||
echo "WARNING: Tuning for PPC970 but AltiVec disabled.";
|
||||
fi
|
||||
warn_altivec_disabled PPC970
|
||||
POWERPCMODE="64bits"
|
||||
;;
|
||||
# targets that do NOT support conditional mov (cmov)
|
||||
|
Loading…
Reference in New Issue
Block a user