Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
ffmpeg
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ffmpeg
Commits
575db883
Commit
575db883
authored
Aug 07, 2012
by
Diego Biurrun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
configure: Rename check_asm() to more fitting check_inline_asm()
parent
e017c875
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
23 deletions
+24
-23
configure
configure
+24
-23
No files found.
configure
View file @
575db883
...
...
@@ -660,8 +660,8 @@ check_as(){
check_cmd
$as
$CPPFLAGS
$ASFLAGS
"
$@
"
$AS_C
-o
$TMPO
$TMPC
}
check_asm
(){
log check_asm
"
$@
"
check_
inline_
asm
(){
log check_
inline_
asm
"
$@
"
name
=
"
$1
"
code
=
"
$2
"
shift
2
...
...
@@ -2833,31 +2833,31 @@ EOF
warn
"Compiler does not indicate floating-point ABI, guessing
$fpabi
."
fi
enabled armv5te
&&
check_asm armv5te
'"qadd r0, r0, r0"'
enabled armv6
&&
check_asm armv6
'"sadd16 r0, r0, r0"'
enabled armv6t2
&&
check_asm armv6t2
'"movt r0, #0"'
enabled armvfp
&&
check_asm armvfp
'"fadds s0, s0, s0"'
enabled neon
&&
check_asm neon
'"vadd.i16 q0, q0, q0"'
enabled vfpv3
&&
check_asm vfpv3
'"vmov.f32 s0, #1.0"'
enabled armv5te
&&
check_
inline_
asm armv5te
'"qadd r0, r0, r0"'
enabled armv6
&&
check_
inline_
asm armv6
'"sadd16 r0, r0, r0"'
enabled armv6t2
&&
check_
inline_
asm armv6t2
'"movt r0, #0"'
enabled armvfp
&&
check_
inline_
asm armvfp
'"fadds s0, s0, s0"'
enabled neon
&&
check_
inline_
asm neon
'"vadd.i16 q0, q0, q0"'
enabled vfpv3
&&
check_
inline_
asm vfpv3
'"vmov.f32 s0, #1.0"'
check_asm asm_mod_q
'"add r0, %Q0, %R0" :: "r"((long long)0)'
check_asm asm_mod_y
'"vmul.i32 d0, d0, %y0" :: "x"(0)'
check_
inline_
asm asm_mod_q
'"add r0, %Q0, %R0" :: "r"((long long)0)'
check_
inline_
asm asm_mod_y
'"vmul.i32 d0, d0, %y0" :: "x"(0)'
enabled_all armv6t2 shared
!
pic
&&
enable_pic
elif
enabled mips
;
then
check_asm loongson
'"dmult.g $1, $2, $3"'
enabled mmi
&&
check_asm mmi
'"lq $2, 0($2)"'
check_
inline_
asm loongson
'"dmult.g $1, $2, $3"'
enabled mmi
&&
check_inline_asm mmi
'"lq $2, 0($2)"'
elif
enabled ppc
;
then
enable
local_aligned_8 local_aligned_16
check_asm dcbzl
'"dcbzl 0, %0" :: "r"(0)'
check_asm ibm_asm
'"add 0, 0, 0"'
check_asm ppc4xx
'"maclhw r10, r11, r12"'
check_asm xform_asm
'"lwzx %1, %y0" :: "Z"(*(int*)0), "r"(0)'
check_
inline_
asm dcbzl
'"dcbzl 0, %0" :: "r"(0)'
check_
inline_
asm ibm_asm
'"add 0, 0, 0"'
check_
inline_
asm ppc4xx
'"maclhw r10, r11, r12"'
check_
inline_
asm xform_asm
'"lwzx %1, %y0" :: "Z"(*(int*)0), "r"(0)'
# AltiVec flags: The FSF version of GCC differs from the Apple version
if
enabled altivec
;
then
...
...
@@ -2885,7 +2885,8 @@ EOF
elif
enabled sparc
;
then
enabled vis
&&
check_asm vis
'"pdist %f0, %f0, %f0"'
-mcpu
=
ultrasparc
&&
enabled vis
&&
check_inline_asm vis
'"pdist %f0, %f0, %f0"'
-mcpu
=
ultrasparc
&&
add_cflags
-mcpu
=
ultrasparc
-mtune
=
ultrasparc
elif
enabled x86
;
then
...
...
@@ -2912,15 +2913,15 @@ elif enabled x86; then
EOF
# check whether EBX is available on x86
check_asm ebx_available
'""::"b"(0)'
&&
check_asm ebx_available
'"":::"%ebx"'
check_
inline_
asm ebx_available
'""::"b"(0)'
&&
check_
inline_
asm ebx_available
'"":::"%ebx"'
# check whether xmm clobbers are supported
check_asm xmm_clobbers
'"":::"%xmm0"'
check_
inline_
asm xmm_clobbers
'"":::"%xmm0"'
# check whether binutils is new enough to compile SSSE3/MMXEXT
enabled ssse3
&&
check_asm ssse3
'"pabsw %xmm0, %xmm0"'
enabled mmxext
&&
check_asm mmxext
'"pmaxub %mm0, %mm1"'
enabled ssse3
&&
check_inline_asm ssse3
'"pabsw %xmm0, %xmm0"'
enabled mmxext
&&
check_
inline_
asm mmxext
'"pmaxub %mm0, %mm1"'
if
!
disabled_any asm mmx yasm
;
then
if
check_cmd
$yasmexe
--version
;
then
...
...
@@ -2956,7 +2957,7 @@ fi
if
enabled asm
;
then
as
=
${
gas
:
=
$as
}
check_asm gnu_as
'".macro m n\n\\n:.int 0\n.endm\nm x"'
||
check_
inline_
asm gnu_as
'".macro m n\n\\n:.int 0\n.endm\nm x"'
||
$nogas
"GNU assembler not found, install gas-preprocessor"
fi
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment