From 017c173d7400a8070cb23a0ead812220037f74be Mon Sep 17 00:00:00 2001 From: Diego Biurrun Date: Tue, 28 Jun 2011 15:22:27 +0200 Subject: [PATCH] configure: Remove checks for default inline asm features Remove checks for compiler support of >= 10 assembler operands and named assembler arguments. Just assume the features are always available. These features were only missing from obsolete GCC versions which are not supported any more. --- configure | 29 ----------------------------- libmpcodecs/vf_yadif.c | 8 ++++---- 2 files changed, 4 insertions(+), 33 deletions(-) diff --git a/configure b/configure index 4fe5f6805e..20ebcd384b 100755 --- a/configure +++ b/configure @@ -2283,17 +2283,6 @@ echocheck "assembler support of -pipe option" cflag_check -pipe -I. && _pipe="-pipe" && echores "yes" || echores "no" -echocheck "compiler support of named assembler arguments" -_named_asm_args=yes -def_named_asm_args="#define NAMED_ASM_ARGS 1" -if test "$cc_vendor" = "gnu" && test "$_cc_major" -lt 3 \ - -o "$_cc_major" -eq 3 -a "$_cc_minor" = 0 ; then - _named_asm_args=no - def_named_asm_args="#undef NAMED_ASM_ARGS" -fi -echores $_named_asm_args - - if darwin && test "$cc_vendor" = "gnu" ; then echocheck "GCC support of -mstackrealign" # GCC 4.2 and some earlier Apple versions support this flag on x86. Since @@ -2450,22 +2439,6 @@ fi echores $_asmalign_pot -echocheck "10 assembler operands" -ten_operands=no -def_ten_operands='#define HAVE_TEN_OPERANDS 0' -cat > $TMPC << EOF -int main(void) { - int x=0; - __asm__ volatile( - "" - :"+&rm"(x), "+&rm"(x), "+&rm"(x), "+&rm"(x), "+&rm"(x), "+&rm"(x) - ); - return 0; -} -EOF -cc_check && ten_operands=yes && def_ten_operands='#define HAVE_TEN_OPERANDS 1' -echores $ten_operands - echocheck "ebx availability" ebx_available=no def_ebx_available='#define HAVE_EBX_AVAILABLE 0' @@ -6975,7 +6948,6 @@ $def_iconv $def_kstat $def_macosx_bundle $def_macosx_finder -$def_named_asm_args $def_priority $def_quicktime $def_restrict_keyword @@ -7213,7 +7185,6 @@ $def_posix_memalign $def_pthreads $def_round $def_roundf -$def_ten_operands $def_threads $def_truncf $def_xform_asm diff --git a/libmpcodecs/vf_yadif.c b/libmpcodecs/vf_yadif.c index 4bd082cbe7..6b9d05fde5 100644 --- a/libmpcodecs/vf_yadif.c +++ b/libmpcodecs/vf_yadif.c @@ -65,7 +65,7 @@ static void store_ref(struct vf_priv_s *p, uint8_t *src[3], int src_stride[3], i } } -#if HAVE_MMX && defined(NAMED_ASM_ARGS) +#if HAVE_MMX #define LOAD4(mem,dst) \ "movd "mem", "#dst" \n\t"\ @@ -278,7 +278,7 @@ static void filter_line_mmx2(struct vf_priv_s *p, uint8_t *dst, uint8_t *prev, u #undef CHECK2 #undef FILTER -#endif /* HAVE_MMX && defined(NAMED_ASM_ARGS) */ +#endif /* HAVE_MMX */ static void filter_line_c(struct vf_priv_s *p, uint8_t *dst, uint8_t *prev, uint8_t *cur, uint8_t *next, int w, int refs, int parity){ int x; @@ -360,7 +360,7 @@ static void filter(struct vf_priv_s *p, uint8_t *dst[3], int dst_stride[3], int } } } -#if HAVE_MMX && defined(NAMED_ASM_ARGS) +#if HAVE_MMX if(gCpuCaps.hasMMX2) __asm__ volatile("emms \n\t" : : : "memory"); #endif } @@ -505,7 +505,7 @@ static int vf_open(vf_instance_t *vf, char *args){ if (args) sscanf(args, "%d:%d", &vf->priv->mode, &vf->priv->parity); filter_line = filter_line_c; -#if HAVE_MMX && defined(NAMED_ASM_ARGS) +#if HAVE_MMX if(gCpuCaps.hasMMX2) filter_line = filter_line_mmx2; #endif