Commit e2218ed8 authored by James Darnley's avatar James Darnley Committed by James Darnley

avutil: add alignment needed for AVX-512

parent 4783a01c
......@@ -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
......
......@@ -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 |
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment