Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
ffmpeg
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ffmpeg
Commits
e2218ed8
Commit
e2218ed8
authored
Oct 26, 2017
by
James Darnley
Committed by
James Darnley
Dec 24, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avutil: add alignment needed for AVX-512
parent
4783a01c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
mem.c
libavutil/mem.c
+1
-1
cpu.c
libavutil/x86/cpu.c
+2
-0
No files found.
libavutil/mem.c
View file @
e2218ed8
...
...
@@ -61,7 +61,7 @@ void free(void *ptr);
#include "mem_internal.h"
#define ALIGN (HAVE_AVX
? 32 : 16
)
#define ALIGN (HAVE_AVX
512 ? 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
...
...
libavutil/x86/cpu.c
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
|
...
...
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