Botan
1.11.15
|
00001 /* 00002 * Lightweight wrappers for SIMD operations 00003 * (C) 2009,2011 Jack Lloyd 00004 * 00005 * Botan is released under the Simplified BSD License (see license.txt) 00006 */ 00007 00008 #ifndef BOTAN_SIMD_32_H__ 00009 #define BOTAN_SIMD_32_H__ 00010 00011 #include <botan/types.h> 00012 00013 #if defined(BOTAN_HAS_SIMD_SSE2) 00014 #include <botan/internal/simd_sse2.h> 00015 namespace Botan { typedef SIMD_SSE2 SIMD_32; } 00016 00017 #elif defined(BOTAN_HAS_SIMD_ALTIVEC) 00018 #include <botan/internal/simd_altivec.h> 00019 namespace Botan { typedef SIMD_Altivec SIMD_32; } 00020 00021 #elif defined(BOTAN_HAS_SIMD_SCALAR) 00022 #include <botan/internal/simd_scalar.h> 00023 namespace Botan { typedef SIMD_Scalar<u32bit,4> SIMD_32; } 00024 00025 #else 00026 #error "No SIMD module defined" 00027 00028 #endif 00029 00030 #endif