Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
FFmpeg
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
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
libremedia
Tethys
FFmpeg
Commits
e2218ed8
Commit
e2218ed8
authored
7 years ago
by
James Darnley
Committed by
James Darnley
7 years ago
Browse files
Options
Downloads
Patches
Plain Diff
avutil: add alignment needed for AVX-512
parent
4783a01c
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
libavutil/mem.c
+1
-1
1 addition, 1 deletion
libavutil/mem.c
libavutil/x86/cpu.c
+2
-0
2 additions, 0 deletions
libavutil/x86/cpu.c
with
3 additions
and
1 deletion
libavutil/mem.c
+
1
−
1
View file @
e2218ed8
...
...
@@ -61,7 +61,7 @@ void free(void *ptr);
#include
"mem_internal.h"
#define ALIGN (HAVE_AVX ? 32 : 16)
#define ALIGN
(HAVE_AVX512 ? 64 :
(HAVE_AVX ? 32 : 16)
)
/* NOTE: if you want to override these functions with your own
* implementations (not recommended) you have to link libav* as
...
...
This diff is collapsed.
Click to expand it.
libavutil/x86/cpu.c
+
2
−
0
View file @
e2218ed8
...
...
@@ -246,6 +246,8 @@ size_t ff_get_cpu_max_align_x86(void)
{
int
flags
=
av_get_cpu_flags
();
if
(
flags
&
AV_CPU_FLAG_AVX512
)
return
64
;
if
(
flags
&
(
AV_CPU_FLAG_AVX2
|
AV_CPU_FLAG_AVX
|
AV_CPU_FLAG_XOP
|
...
...
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