Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
8c7554e6
Commit
8c7554e6
authored
Oct 20, 2017
by
Diego Biurrun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
configure: Add check_x86asm() helper function to simplify some expressions
parent
17ee5b0c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
16 deletions
+24
-16
configure
configure
+24
-16
No files found.
configure
View file @
8c7554e6
...
...
@@ -808,6 +808,18 @@ test_as(){
test_cmd
$as
$CPPFLAGS
$ASFLAGS
"
$@
"
$AS_C
$(
as_o
$TMPO
)
$TMPS
}
x86asm_o
(){
eval printf
'%s\\n'
$X86ASM_O
}
test_x86asm
(){
log test_x86asm
"
$@
"
echo
"
$1
"
>
$TMPASM
log_file
$TMPASM
shift
test_cmd
$x86asmexe
$X86ASMFLAGS
"
$@
"
$(
x86asm_o
$TMPO
)
$TMPASM
}
check_cmd
(){
log check_cmd
"
$@
"
cmd
=
$1
...
...
@@ -844,16 +856,12 @@ check_insn(){
check_as
${
1
}
_external
"
$2
"
}
x86asm_o
(){
eval printf
'%s\\n'
$X86ASM_O
}
test_x86asm
(){
log test_x86asm
"
$@
"
echo
"
$1
"
>
$TMPASM
log_file
$TMPASM
shift
1
test_cmd
$x86asmexe
$X86ASMFLAGS
"
$@
"
$(
x86asm_o
$TMPO
)
$TMPASM
check_x86asm
(){
log check_x86asm
"
$@
"
name
=
$1
shift
disable
$name
test_x86asm
"
$@
"
&&
enable
$name
}
ld_o
(){
...
...
@@ -4425,7 +4433,7 @@ EOF
X86ASMDEP
=
'$(DEPX86ASM) $(X86ASMFLAGS) -M $(X86ASM_O) $< > $(@:.o=.d)'
X86ASM_DEPFLAGS
=
fi
test_x86asm
"movbe ecx, [5]"
&&
enable
x86asm
check_x86asm x86asm
"movbe ecx, [5]"
}
if
!
disabled_any asm mmx x86asm
;
then
...
...
@@ -4441,11 +4449,11 @@ EOF
elf
*
)
enabled debug
&&
append X86ASMFLAGS
$x86asm_debug
;;
esac
test_x86asm
"vextracti128 xmm0, ymm0, 0"
||
disable avx2_external
test_x86asm
"vpmacsdd xmm0, xmm1, xmm2, xmm3"
||
disable xop_external
test_x86asm
"vfmadd132ps ymm0, ymm1, ymm2"
||
disable fma3_external
test_x86asm
"vfmaddps ymm0, ymm1, ymm2, ymm3"
||
disable fma4_external
test_x86asm
"CPU amdnop"
||
disable cpunop
check_x86asm avx2_external
"vextracti128 xmm0, ymm0, 0"
check_x86asm xop_external
"vpmacsdd xmm0, xmm1, xmm2, xmm3"
check_x86asm fma3_external
"vfmadd132ps ymm0, ymm1, ymm2"
check_x86asm fma4_external
"vfmaddps ymm0, ymm1, ymm2, ymm3"
check_x86asm cpunop
"CPU amdnop"
fi
case
"
$cpu
"
in
...
...
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