mirror of
https://github.com/mpv-player/mpv
synced 2025-04-17 04:40:09 +00:00
Port ASMALIGN preprocessor macro for .align handling from FFmpeg.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19377 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
9481172438
commit
992379a376
21
configure
vendored
21
configure
vendored
@ -1698,6 +1698,7 @@ _vstream=auto
|
|||||||
_pthreads=yes
|
_pthreads=yes
|
||||||
_ass=auto
|
_ass=auto
|
||||||
_rpath=no
|
_rpath=no
|
||||||
|
_asmalign_pot=auto
|
||||||
for ac_option do
|
for ac_option do
|
||||||
case "$ac_option" in
|
case "$ac_option" in
|
||||||
# Skip 1st pass
|
# Skip 1st pass
|
||||||
@ -2217,7 +2218,24 @@ if x86 ; then
|
|||||||
echores "failed"
|
echores "failed"
|
||||||
die "obsolete binutils version"
|
die "obsolete binutils version"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
echocheck ".align is a power of two"
|
||||||
|
if test "$_asmalign_pot" = auto ; then
|
||||||
|
_asmalign_pot=no
|
||||||
|
cat > $TMPC << EOF
|
||||||
|
asm (".align 3");
|
||||||
|
EOF
|
||||||
|
cc_check && _asmalign_pot=yes
|
||||||
fi
|
fi
|
||||||
|
if test "$_asmalign_pot" = "yes" ; then
|
||||||
|
_def_asmalign_pot='#define ASMALIGN(ZEROBITS) ".align " #ZEROBITS "\n\t"'
|
||||||
|
else
|
||||||
|
_def_asmalign_pot='#define ASMALIGN(ZEROBITS) ".align 1<<" #ZEROBITS "\n\t"'
|
||||||
|
fi
|
||||||
|
echores $_asmalign_pot
|
||||||
|
|
||||||
|
fi #if x86
|
||||||
|
|
||||||
|
|
||||||
#FIXME: This should happen before the check for CFLAGS..
|
#FIXME: This should happen before the check for CFLAGS..
|
||||||
if ppc ; then
|
if ppc ; then
|
||||||
@ -7642,6 +7660,9 @@ $_def_memalign
|
|||||||
$_def_map_memalign
|
$_def_map_memalign
|
||||||
$_def_memalign_hack
|
$_def_memalign_hack
|
||||||
|
|
||||||
|
/* assembler handling of .align */
|
||||||
|
$_def_asmalign_pot
|
||||||
|
|
||||||
/* Define this if your system has the "alloca.h" header file */
|
/* Define this if your system has the "alloca.h" header file */
|
||||||
$_def_alloca
|
$_def_alloca
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user