mirror of
https://github.com/mpv-player/mpv
synced 2025-01-03 05:22:23 +00:00
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.
This commit is contained in:
parent
fd01bee8f7
commit
017c173d74
29
configure
vendored
29
configure
vendored
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user