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
a3f0d2b9
Commit
a3f0d2b9
authored
Sep 09, 2010
by
Måns Rullgård
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cache detected CPU flags
Originally committed as revision 25085 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
9275438a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
4 deletions
+11
-4
cpu.c
libavutil/cpu.c
+11
-4
No files found.
libavutil/cpu.c
View file @
a3f0d2b9
...
...
@@ -21,10 +21,17 @@
int
av_get_cpu_flags
(
void
)
{
if
(
ARCH_ARM
)
return
ff_get_cpu_flags_arm
();
if
(
ARCH_PPC
)
return
ff_get_cpu_flags_ppc
();
if
(
ARCH_X86
)
return
ff_get_cpu_flags_x86
();
return
0
;
static
int
flags
,
checked
;
if
(
checked
)
return
flags
;
if
(
ARCH_ARM
)
flags
=
ff_get_cpu_flags_arm
();
if
(
ARCH_PPC
)
flags
=
ff_get_cpu_flags_ppc
();
if
(
ARCH_X86
)
flags
=
ff_get_cpu_flags_x86
();
checked
=
1
;
return
flags
;
}
#ifdef TEST
...
...
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