File: SIMD.h

package info (click to toggle)
veccore 0.8.0%2Bds1-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 13,968 kB
  • sloc: cpp: 2,894; ansic: 1,332; makefile: 2
file content (20 lines) | stat: -rw-r--r-- 369 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#ifndef VECCORE_SIMD_H
#define VECCORE_SIMD_H

#if defined(VECCORE_X64) || defined(VECCORE_X86)
#  ifdef _MSC_VER
#    include <intrin.h>
#  else
#    include <x86intrin.h>
#  endif
#endif

#if defined(__AVX512F__) || defined(__MIC__)
#define VECCORE_SIMD_ALIGN 64
#elif defined(__AVX__)
#define VECCORE_SIMD_ALIGN 32
#else
#define VECCORE_SIMD_ALIGN 16
#endif

#endif