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
6869612f
Commit
6869612f
authored
Jul 21, 2014
by
Ben Avison
Committed by
Diego Biurrun
Jul 21, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
arm: Macroize the test for 'setend' CPU instruction support
Signed-off-by:
Diego Biurrun
<
diego@biurrun.de
>
parent
16e66522
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
5 deletions
+7
-5
h264dsp_init_arm.c
libavcodec/arm/h264dsp_init_arm.c
+1
-5
cpu.h
libavutil/arm/cpu.h
+6
-0
No files found.
libavcodec/arm/h264dsp_init_arm.c
View file @
6869612f
...
...
@@ -104,12 +104,8 @@ av_cold void ff_h264dsp_init_arm(H264DSPContext *c, const int bit_depth,
{
int
cpu_flags
=
av_get_cpu_flags
();
if
(
have_armv6
(
cpu_flags
)
&&
!
(
have_vfpv3
(
cpu_flags
)
||
have_neon
(
cpu_flags
)))
{
// This function uses the 'setend' instruction which is deprecated
// on ARMv8. This instruction is serializing on some ARMv7 cores as
// well. Therefore, only use the function on ARMv6.
if
(
have_setend
(
cpu_flags
))
c
->
h264_find_start_code_candidate
=
ff_h264_find_start_code_candidate_armv6
;
}
if
(
have_neon
(
cpu_flags
))
h264dsp_init_neon
(
c
,
bit_depth
,
chroma_format_idc
);
}
libavutil/arm/cpu.h
View file @
6869612f
...
...
@@ -30,4 +30,10 @@
#define have_vfpv3(flags) CPUEXT(flags, VFPV3)
#define have_neon(flags) CPUEXT(flags, NEON)
/* Some functions use the 'setend' instruction which is deprecated on ARMv8
* and serializing on some ARMv7 cores. This macro ensures such functions
* are only enabled on ARMv6. */
#define have_setend(flags) \
(have_armv6(flags) && !(have_vfpv3(flags) || have_neon(flags)))
#endif
/* AVUTIL_ARM_CPU_H */
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