HatchitMath
ht_intrin.h
1 
15 #pragma once
16 
17 #ifdef _WIN32
18 #include <intrin.h>
19 #elif defined (__linux__)
20 #include <x86intrin.h>
21 #endif
22 
23 #ifdef _WIN32
24  #ifndef _MM_ALIGN16
25  #define _MM_ALIGN16 __declspec(align(Hatchit::Math::vectorAlignment))
26  #endif
27 #else
28  #ifndef _MM_ALIGN16
29  #define _MM_ALIGN16 __attribute__((aligned(Hatchit::Math::vectorAlignment)))
30  #endif
31 #endif
32 
33 namespace Hatchit {
34 
35  namespace Math {
36  constexpr size_t vectorAlignment = 16;
37  }
38 }
39 
Hatchit Engine Copyright(c) 2015-2016 Third-Degree.
Definition: ht_intrin.h:33