Skip to content

Commit

Permalink
common: fix alignment for ARM
Browse files Browse the repository at this point in the history
  • Loading branch information
sekrit-twc committed Apr 16, 2021
1 parent c0d9c49 commit 90bf82c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/zimg/common/align.h
Expand Up @@ -8,9 +8,12 @@ namespace zimg {
/**
* 64-byte alignment allows the use of instructions up to AVX-512.
*/
#ifdef ZIMG_X86
#if defined(ZIMG_X86)
constexpr int ALIGNMENT = 64;
constexpr int ALIGNMENT_RELAXED = 32;
#elif defined(ZIMG_ARM)
constexpr int ALIGNMENT = 16;
constexpr int ALIGNMENT_RELAXED = 16;
#else
constexpr int ALIGNMENT = sizeof(long double);
constexpr int ALIGNMENT_RELAXED = sizeof(long double);
Expand Down

0 comments on commit 90bf82c

Please sign in to comment.