Skip to content

Commit d75423e

Browse files
WIP
1 parent a0cccfb commit d75423e

File tree

1 file changed

+1
-19
lines changed

1 file changed

+1
-19
lines changed

include/xsimd/config/xsimd_align.hpp

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
#define XSIMD_ALIGN_HPP
1313

1414
#include "xsimd_instruction_set.hpp"
15+
#include "xsimd_arch.hpp"
1516

1617
/************************************************
1718
* Platform checks for aligned malloc functions *
@@ -42,23 +43,4 @@
4243
#endif
4344
#endif
4445

45-
/*********************
46-
* Default alignment *
47-
*********************/
48-
49-
#if XSIMD_X86_INSTR_SET >= XSIMD_X86_AVX512_VERSION
50-
#define XSIMD_DEFAULT_ALIGNMENT 64
51-
#elif XSIMD_X86_INSTR_SET >= XSIMD_X86_AVX_VERSION
52-
#define XSIMD_DEFAULT_ALIGNMENT 32
53-
#elif XSIMD_X86_INSTR_SET >= XSIMD_X86_SSE2_VERSION
54-
#define XSIMD_DEFAULT_ALIGNMENT 16
55-
#elif XSIMD_ARM_INSTR_SET >= XSIMD_ARM8_64_NEON_VERSION
56-
#define XSIMD_DEFAULT_ALIGNMENT 32
57-
#elif XSIMD_ARM_INSTR_SET >= XSIMD_ARM7_NEON_VERSION
58-
#define XSIMD_DEFAULT_ALIGNMENT 16
59-
#else
60-
// Set the default to the requirements of posix_memalign
61-
#define XSIMD_DEFAULT_ALIGNMENT sizeof(void*)
62-
#endif
63-
6446
#endif

0 commit comments

Comments
 (0)