Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
X
x264
Manage
Activity
Members
Labels
Plan
Issues
26
Issue boards
Milestones
Wiki
Code
Merge requests
17
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
VideoLAN
x264
Commits
868171c3
Commit
868171c3
authored
5 months ago
by
Brad Smith
Browse files
Options
Downloads
Patches
Plain Diff
Use getauxval() on Linux and elf_aux_info() on OpenBSD on mips
parent
da14df55
Branches
android/3.5
Branches containing commit
No related tags found
1 merge request
!162
Use getauxval() on Linux and elf_aux_info() on OpenBSD on mips
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
common/cpu.c
+13
-0
13 additions, 0 deletions
common/cpu.c
with
13 additions
and
0 deletions
common/cpu.c
+
13
−
0
View file @
868171c3
...
...
@@ -504,9 +504,22 @@ uint32_t x264_cpu_detect( void )
#elif HAVE_MSA
#define HWCAP_MIPS_MSA (1U << 1)
uint32_t
x264_cpu_detect
(
void
)
{
uint32_t
flags
=
0
;
#if HAVE_GETAUXVAL || HAVE_ELF_AUX_INFO
unsigned
long
hwcap
=
x264_getauxval
(
AT_HWCAP
);
if
(
hwcap
&
HWCAP_MIPS_MSA
)
flags
|=
X264_CPU_MSA
;
#else
return
X264_CPU_MSA
;
#endif
return
flags
;
}
#elif HAVE_LSX
...
...
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