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
e2edf152
Commit
e2edf152
authored
May 26, 2017
by
Diego Biurrun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
configure: Simplify AltiVec/VSX check with a helper function
parent
d76479c5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
17 deletions
+7
-17
configure
configure
+7
-17
No files found.
configure
View file @
e2edf152
...
...
@@ -4445,29 +4445,19 @@ elif enabled ppc; then
check_cflags
-maltivec
-mabi
=
altivec
# check if our compiler supports Motorola AltiVec C API
check_cc
<<
EOF
|| disable altivec
#include <altivec.h>
int main(void) {
vector signed int v1 = (vector signed int) { 0 };
vector signed int v2 = (vector signed int) { 1 };
v1 = vec_add(v1, v2);
return 0;
}
EOF
check_code cc altivec.h
"vector signed int v1 = (vector signed int) { 0 };
vector signed int v2 = (vector signed int) { 1 };
v1 = vec_add(v1, v2);"
||
disable altivec
enabled altivec
||
warn
"Altivec disabled, possibly missing --cpu flag"
fi
if
enabled vsx
;
then
check_cflags
-mvsx
&&
check_cc
<<
EOF
|| disable vsx
#include <altivec.h>
int main(void) {
int v[4] = { 0 };
vector signed int v1 = vec_vsx_ld(0, v);
return 0;
}
EOF
check_code cc altivec.h
"int v[4] = { 0 };
vector signed int v1 = vec_vsx_ld(0, v);"
||
disable vsx
fi
if
enabled power8
;
then
...
...
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