mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-09-19 21:06:42 +00:00
configure: add check_insn function
The check_insn function tests an instruction in both inline asm and standalone assembly, and sets _external/_inline config properties accordingly. Signed-off-by: Mans Rullgard <mans@mansr.com>
This commit is contained in:
parent
7fd90119bb
commit
c6ebc9faa2
6
configure
vendored
6
configure
vendored
@ -698,6 +698,12 @@ void foo(void){ __asm__ volatile($code); }
|
|||||||
EOF
|
EOF
|
||||||
}
|
}
|
||||||
|
|
||||||
|
check_insn(){
|
||||||
|
log check_insn "$@"
|
||||||
|
check_inline_asm ${1}_inline "\"$2\""
|
||||||
|
echo "$2" | check_as && enable ${1}_external || disable ${1}_external
|
||||||
|
}
|
||||||
|
|
||||||
check_yasm(){
|
check_yasm(){
|
||||||
log check_yasm "$@"
|
log check_yasm "$@"
|
||||||
echo "$1" > $TMPS
|
echo "$1" > $TMPS
|
||||||
|
Loading…
Reference in New Issue
Block a user