Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
7904e8f0
Commit
7904e8f0
authored
Aug 04, 2012
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Linux detection for AVX and friends
parent
3bc25406
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
src/posix/linux_cpu.c
src/posix/linux_cpu.c
+8
-0
No files found.
src/posix/linux_cpu.c
View file @
7904e8f0
...
@@ -85,8 +85,16 @@ static void vlc_CPU_init (void)
...
@@ -85,8 +85,16 @@ static void vlc_CPU_init (void)
core_caps
|=
VLC_CPU_SSE4_1
;
core_caps
|=
VLC_CPU_SSE4_1
;
if
(
!
strcmp
(
cap
,
"sse4a"
))
if
(
!
strcmp
(
cap
,
"sse4a"
))
core_caps
|=
VLC_CPU_SSE4A
;
core_caps
|=
VLC_CPU_SSE4A
;
if
(
!
strcmp
(
cap
,
"avx"
))
core_caps
|=
VLC_CPU_AVX
;
if
(
!
strcmp
(
cap
,
"avx2"
))
core_caps
|=
VLC_CPU_AVX2
;
if
(
!
strcmp
(
cap
,
"3dnow"
))
if
(
!
strcmp
(
cap
,
"3dnow"
))
core_caps
|=
VLC_CPU_3dNOW
;
core_caps
|=
VLC_CPU_3dNOW
;
if
(
!
strcmp
(
cap
,
"xop"
))
core_caps
|=
VLC_CPU_XOP
;
if
(
!
strcmp
(
cap
,
"fma4"
))
core_caps
|=
VLC_CPU_FMA4
;
#elif defined (__powerpc__) || defined (__powerpc64__)
#elif defined (__powerpc__) || defined (__powerpc64__)
if
(
!
strcmp
(
cap
,
"altivec supported"
))
if
(
!
strcmp
(
cap
,
"altivec supported"
))
...
...
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