(GLM) Remove __CUDA_ARCH__

This commit is contained in:
twinaphex 2016-11-01 10:30:04 +01:00
parent 101c885f8b
commit 76cf8dc124

View File

@ -139,18 +139,12 @@ namespace detail
GLM_FUNC_QUALIFIER value_type& operator[] (size_t i) GLM_FUNC_QUALIFIER value_type& operator[] (size_t i)
{ {
#ifndef __CUDA_ARCH__ static const int offset_dst[4] = { E0, E1, E2, E3 };
static
#endif
const int offset_dst[4] = { E0, E1, E2, E3 };
return this->elem(offset_dst[i]); return this->elem(offset_dst[i]);
} }
GLM_FUNC_QUALIFIER value_type operator[] (size_t i) const GLM_FUNC_QUALIFIER value_type operator[] (size_t i) const
{ {
#ifndef __CUDA_ARCH__ static const int offset_dst[4] = { E0, E1, E2, E3 };
static
#endif
const int offset_dst[4] = { E0, E1, E2, E3 };
return this->elem(offset_dst[i]); return this->elem(offset_dst[i]);
} }
protected: protected:
@ -180,10 +174,7 @@ namespace detail
GLM_FUNC_QUALIFIER value_type operator[] (size_t i) const GLM_FUNC_QUALIFIER value_type operator[] (size_t i) const
{ {
#ifndef __CUDA_ARCH__ static const int offset_dst[4] = { E0, E1, E2, E3 };
static
#endif
const int offset_dst[4] = { E0, E1, E2, E3 };
return this->elem(offset_dst[i]); return this->elem(offset_dst[i]);
} }
}; };