/
githubmirror
/
nbs
Обзор
Документация
Войти
/
githubmirror
/
nbs
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
library/cpp/sse/sse.h
33 строки
800 B
qkrorlqr
Initial NBS OpenSource export
28 апр 2023, 21:54
28 апр 2023, 21:54
783a858
Код
Авторство
О чём код?
#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