1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

configure: Drop check for availability of ten assembler operands.

This was done to support gcc 2.95, which is an old legacy compiler
that fails to compile the current codebase anyway.
This commit is contained in:
Diego Biurrun 2011-06-22 23:30:15 +02:00
parent 1bb52045d3
commit d2ee495fb2
3 changed files with 5 additions and 19 deletions

14
configure vendored
View File

@ -1120,7 +1120,6 @@ HAVE_LIST="
sys_select_h sys_select_h
sys_soundcard_h sys_soundcard_h
sys_videoio_h sys_videoio_h
ten_operands
threads threads
trunc trunc
truncf truncf
@ -2704,18 +2703,6 @@ EOF
# check whether xmm clobbers are supported # check whether xmm clobbers are supported
check_asm xmm_clobbers '"":::"%xmm0"' check_asm xmm_clobbers '"":::"%xmm0"'
# check whether more than 10 operands are supported
check_cc <<EOF && enable ten_operands
int main(void) {
int x=0;
__asm__ volatile(
""
:"+&rm"(x), "+&rm"(x), "+&rm"(x), "+&rm"(x), "+&rm"(x), "+&rm"(x)
);
return 0;
}
EOF
# check whether binutils is new enough to compile SSSE3/MMX2 # check whether binutils is new enough to compile SSSE3/MMX2
enabled ssse3 && check_asm ssse3 '"pabsw %xmm0, %xmm0"' enabled ssse3 && check_asm ssse3 '"pabsw %xmm0, %xmm0"'
enabled mmx2 && check_asm mmx2 '"pmaxub %mm0, %mm1"' enabled mmx2 && check_asm mmx2 '"pmaxub %mm0, %mm1"'
@ -3126,7 +3113,6 @@ if enabled x86; then
echo "CMOV is fast ${fast_cmov-no}" echo "CMOV is fast ${fast_cmov-no}"
echo "EBX available ${ebx_available-no}" echo "EBX available ${ebx_available-no}"
echo "EBP available ${ebp_available-no}" echo "EBP available ${ebp_available-no}"
echo "10 operands supported ${ten_operands-no}"
fi fi
if enabled arm; then if enabled arm; then
echo "ARMv5TE enabled ${armv5te-no}" echo "ARMv5TE enabled ${armv5te-no}"

View File

@ -602,7 +602,7 @@ static void add_bytes_l2_mmx(uint8_t *dst, uint8_t *src1, uint8_t *src2, int w){
dst[i] = src1[i] + src2[i]; dst[i] = src1[i] + src2[i];
} }
#if HAVE_7REGS && HAVE_TEN_OPERANDS #if HAVE_7REGS
static void add_hfyu_median_prediction_cmov(uint8_t *dst, const uint8_t *top, const uint8_t *diff, int w, int *left, int *left_top) { static void add_hfyu_median_prediction_cmov(uint8_t *dst, const uint8_t *top, const uint8_t *diff, int w, int *left, int *left_top) {
x86_reg w2 = -w; x86_reg w2 = -w;
x86_reg x; x86_reg x;
@ -2674,7 +2674,7 @@ void dsputil_init_mmx(DSPContext* c, AVCodecContext *avctx)
c->add_hfyu_median_prediction = ff_add_hfyu_median_prediction_mmx2; c->add_hfyu_median_prediction = ff_add_hfyu_median_prediction_mmx2;
#endif #endif
#if HAVE_7REGS && HAVE_TEN_OPERANDS #if HAVE_7REGS
if( mm_flags&AV_CPU_FLAG_3DNOW ) if( mm_flags&AV_CPU_FLAG_3DNOW )
c->add_hfyu_median_prediction = add_hfyu_median_prediction_cmov; c->add_hfyu_median_prediction = add_hfyu_median_prediction_cmov;
#endif #endif

View File

@ -23,7 +23,7 @@
#include "libavcodec/dsputil.h" #include "libavcodec/dsputil.h"
#include "libavcodec/mlp.h" #include "libavcodec/mlp.h"
#if HAVE_7REGS && HAVE_TEN_OPERANDS #if HAVE_7REGS
extern void ff_mlp_firorder_8; extern void ff_mlp_firorder_8;
extern void ff_mlp_firorder_7; extern void ff_mlp_firorder_7;
@ -171,11 +171,11 @@ static void mlp_filter_channel_x86(int32_t *state, const int32_t *coeff,
); );
} }
#endif /* HAVE_7REGS && HAVE_TEN_OPERANDS */ #endif /* HAVE_7REGS */
void ff_mlp_init_x86(DSPContext* c, AVCodecContext *avctx) void ff_mlp_init_x86(DSPContext* c, AVCodecContext *avctx)
{ {
#if HAVE_7REGS && HAVE_TEN_OPERANDS #if HAVE_7REGS
c->mlp_filter_channel = mlp_filter_channel_x86; c->mlp_filter_channel = mlp_filter_channel_x86;
#endif #endif
} }