Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
719fa35e
Commit
719fa35e
authored
Feb 25, 2008
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Xvmc: fix xvmc compilation on x86_64. Patch by eMPee584
parent
5ae10793
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
modules/codec/xvmc/cpu_accel.c
modules/codec/xvmc/cpu_accel.c
+4
-2
No files found.
modules/codec/xvmc/cpu_accel.c
View file @
719fa35e
...
...
@@ -33,7 +33,7 @@ static inline uint32_t arch_accel( void )
int
AMD
;
uint32_t
caps
;
#if
!defined(PIC) && !defined(__PIC__
)
#if
defined(__x86_64__) || (!defined(PIC) && !defined(__PIC__)
)
#define cpuid(op,eax,ebx,ecx,edx) \
__asm__ ("cpuid" \
: "=a" (eax), \
...
...
@@ -42,7 +42,7 @@ static inline uint32_t arch_accel( void )
"=d" (edx) \
: "a" (op) \
: "cc")
#else
/* PIC version : save ebx */
#else
/* PIC version : save ebx
(not needed on x86_64)
*/
#define cpuid(op,eax,ebx,ecx,edx) \
__asm__ ("push %%ebx\n\t" \
"cpuid\n\t" \
...
...
@@ -56,6 +56,7 @@ static inline uint32_t arch_accel( void )
: "cc")
#endif
#ifndef __x86_64__
/* x86_64 supports the cpuid op */
__asm__
(
"pushf
\n\t
"
"pushf
\n\t
"
"pop %0
\n\t
"
...
...
@@ -73,6 +74,7 @@ static inline uint32_t arch_accel( void )
if
(
eax
==
ebx
)
/* no cpuid */
return
0
;
#endif
cpuid
(
0x00000000
,
eax
,
ebx
,
ecx
,
edx
);
if
(
!
eax
)
/* vendor string only */
...
...
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