Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
aom-rav1e
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Xiph.Org
aom-rav1e
Commits
c9a99057
Commit
c9a99057
authored
11 years ago
by
changjun.yang
Browse files
Options
Downloads
Patches
Plain Diff
Add cpu detection for Android x86
Change-Id: I3fe24001cda08d7322b630f65c5e3fad881f8036
parent
e292330e
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
vpx_ports/x86.h
+4
-4
4 additions, 4 deletions
vpx_ports/x86.h
with
4 additions
and
4 deletions
vpx_ports/x86.h
+
4
−
4
View file @
c9a99057
...
...
@@ -33,7 +33,7 @@ typedef enum {
VPX_CPU_LAST
}
vpx_cpu_t
;
#if defined(__GNUC__) && __GNUC__
#if defined(__GNUC__) && __GNUC__
|| defined(__ANDROID__)
#if ARCH_X86_64
#define cpuid(func,ax,bx,cx,dx)\
__asm__ __volatile__ (\
...
...
@@ -49,7 +49,7 @@ typedef enum {
: "=a" (ax), "=D" (bx), "=c" (cx), "=d" (dx) \
: "a" (func));
#endif
#elif defined(__SUNPRO_C) || defined(__SUNPRO_CC)
#elif defined(__SUNPRO_C) || defined(__SUNPRO_CC)
/* end __GNUC__ or __ANDROID__*/
#if ARCH_X86_64
#define cpuid(func,ax,bx,cx,dx)\
asm volatile (\
...
...
@@ -69,7 +69,7 @@ typedef enum {
: "=a" (ax), "=D" (bx), "=c" (cx), "=d" (dx) \
: "a" (func));
#endif
#else
#else
/* end __SUNPRO__ */
#if ARCH_X86_64
void
__cpuid
(
int
CPUInfo
[
4
],
int
info_type
);
#pragma intrinsic(__cpuid)
...
...
@@ -86,7 +86,7 @@ void __cpuid(int CPUInfo[4], int info_type);
__asm mov c, ecx\
__asm mov d, edx
#endif
#endif
#endif
/* end others */
#define HAS_MMX 0x01
#define HAS_SSE 0x02
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment