Caffe2 - C++ API
A deep learning, cross platform ML framework
Related Pages
Modules
Data Structures
Files
C++ API
Python API
GitHub
File List
Globals
aten
src
ATen
cpu
vec256
intrinsics.h
1
#pragma once
2
3
#if defined(_MSC_VER)
4
/* Microsoft C/C++-compatible compiler */
5
#include <intrin.h>
6
#if _MSC_VER <= 1900
7
#define _mm256_extract_epi64(X, Y) (_mm_extract_epi64(_mm256_extractf128_si256(X, Y >> 1), Y % 2))
8
#define _mm256_extract_epi32(X, Y) (_mm_extract_epi32(_mm256_extractf128_si256(X, Y >> 2), Y % 4))
9
#define _mm256_extract_epi16(X, Y) (_mm_extract_epi16(_mm256_extractf128_si256(X, Y >> 3), Y % 8))
10
#define _mm256_extract_epi8(X, Y) (_mm_extract_epi8(_mm256_extractf128_si256(X, Y >> 4), Y % 16))
11
#endif
12
#elif defined(__GNUC__) && (defined(__x86_64__) || defined(__i386__))
13
/* GCC-compatible compiler, targeting x86/x86-64 */
14
#include <x86intrin.h>
15
#elif defined(__GNUC__) && defined(__ARM_NEON__)
16
/* GCC-compatible compiler, targeting ARM with NEON */
17
#include <arm_neon.h>
18
#elif defined(__GNUC__) && defined(__IWMMXT__)
19
/* GCC-compatible compiler, targeting ARM with WMMX */
20
#include <mmintrin.h>
21
#elif (defined(__GNUC__) || defined(__xlC__)) && \
22
(defined(__VEC__) || defined(__ALTIVEC__))
23
/* XLC or GCC-compatible compiler, targeting PowerPC with VMX/VSX */
24
#include <altivec.h>
25
#elif defined(__GNUC__) && defined(__SPE__)
26
/* GCC-compatible compiler, targeting PowerPC with SPE */
27
#include <spe.h>
28
#endif
Generated on Thu Mar 21 2019 13:06:08 for Caffe2 - C++ API by
1.8.11