Add support for doing a (0.0, 0.0, 0.0, 0.0) initialization in the default constructor of fvec4SIMD().

This is disabled by default, but enabled with GLM_SIMD_ENABLE_DEFAULT_INIT. This makes toggling between SIMD and non-SIMD builds a bit easier.
This commit is contained in:
Dave Reid 2012-12-21 07:49:49 +10:00
parent 87c90590be
commit efff3add87

View File

@ -20,6 +20,9 @@ struct mask
// Implicit basic constructors // Implicit basic constructors
GLM_FUNC_QUALIFIER fvec4SIMD::fvec4SIMD() GLM_FUNC_QUALIFIER fvec4SIMD::fvec4SIMD()
#ifdef GLM_SIMD_ENABLE_DEFAULT_INIT
: Data(_mm_set_ps(0.0f, 0.0f, 0.0f, 0.0f))
#endif
{} {}
GLM_FUNC_QUALIFIER fvec4SIMD::fvec4SIMD(__m128 const & Data) : GLM_FUNC_QUALIFIER fvec4SIMD::fvec4SIMD(__m128 const & Data) :