123456789101112131415161718192021222324252627282930313233 |
- #pragma once
- /*
- The header chooses appropriate SSE support.
- On Intel: SSE intrinsics
- On ARM64: translation to NEON intrinsics or software emulation
- On PowerPc: translation to Altivec intrinsics or software emulation
- */
- /* Author: Vitaliy Manushkin <agri@yandex-team.ru>, Danila Kutenin <danlark@yandex-team.ru> */
- #include <util/system/platform.h>
- #if (defined(_i386_) || defined(_x86_64_)) && defined(_sse_)
- #include <xmmintrin.h>
- #include <emmintrin.h>
- #include <pmmintrin.h>
- #define ARCADIA_SSE
- #if defined(_ssse3_)
- #include <tmmintrin.h>
- #endif
- #if defined(_sse4_1_)
- #include <smmintrin.h>
- #endif
- #if defined(_sse4_2_)
- #include <nmmintrin.h>
- #endif
- #elif defined(_arm64_)
- #include "sse2neon.h"
- #define ARCADIA_SSE
- #elif defined(_ppc64_)
- #include "powerpc.h"
- #define ARCADIA_SSE
- #endif
|