Added error message if included without SSE support
This commit is contained in:
@@ -12,10 +12,13 @@
|
|||||||
|
|
||||||
#include "../setup.hpp"
|
#include "../setup.hpp"
|
||||||
|
|
||||||
//#if(GLM_ARCH >= GLM_ARCH_SSE2)
|
#if((GLM_ARCH & GLM_ARCH_SSE2) != GLM_ARCH_SSE2)
|
||||||
|
# error "SSE2 instructions not supported or enabled"
|
||||||
|
#else
|
||||||
|
|
||||||
namespace glm{
|
namespace glm{
|
||||||
namespace detail{
|
namespace detail
|
||||||
|
{
|
||||||
__m128 sse_abs_ps(__m128 x);
|
__m128 sse_abs_ps(__m128 x);
|
||||||
|
|
||||||
__m128 sse_sgn_ps(__m128 x);
|
__m128 sse_sgn_ps(__m128 x);
|
||||||
@@ -63,5 +66,5 @@ namespace detail{
|
|||||||
|
|
||||||
#include "intrinsic_common.inl"
|
#include "intrinsic_common.inl"
|
||||||
|
|
||||||
//#endif//(GLM_ARCH >= GLM_ARCH_SSE2)
|
#endif//GLM_ARCH
|
||||||
#endif//glm_detail_intrinsic_common
|
#endif//glm_detail_intrinsic_common
|
||||||
|
|||||||
@@ -12,7 +12,9 @@
|
|||||||
|
|
||||||
#include "../setup.hpp"
|
#include "../setup.hpp"
|
||||||
|
|
||||||
#if(GLM_ARCH != GLM_ARCH_PURE)
|
#if((GLM_ARCH & GLM_ARCH_SSE2) != GLM_ARCH_SSE2)
|
||||||
|
# error "SSE2 instructions not supported or enabled"
|
||||||
|
#else
|
||||||
|
|
||||||
namespace glm{
|
namespace glm{
|
||||||
namespace detail
|
namespace detail
|
||||||
@@ -54,5 +56,5 @@ inline __m128 sse_normalize_fast_ps( float * RESTRICT vOut, float * RESTRICT vI
|
|||||||
}//namespace detail
|
}//namespace detail
|
||||||
}//namespace glm
|
}//namespace glm
|
||||||
|
|
||||||
#endif//GLM_ARCH != GLM_ARCH_PURE)
|
#endif//GLM_ARCH
|
||||||
#endif//glm_detail_intrinsic_exponential
|
#endif//glm_detail_intrinsic_exponential
|
||||||
|
|||||||
@@ -10,6 +10,12 @@
|
|||||||
#ifndef glm_core_intrinsic_geometric
|
#ifndef glm_core_intrinsic_geometric
|
||||||
#define glm_core_intrinsic_geometric
|
#define glm_core_intrinsic_geometric
|
||||||
|
|
||||||
|
#include "../setup.hpp"
|
||||||
|
|
||||||
|
#if((GLM_ARCH & GLM_ARCH_SSE2) != GLM_ARCH_SSE2)
|
||||||
|
# error "SSE2 instructions not supported or enabled"
|
||||||
|
#else
|
||||||
|
|
||||||
#include "intrinsic_common.hpp"
|
#include "intrinsic_common.hpp"
|
||||||
|
|
||||||
namespace glm{
|
namespace glm{
|
||||||
@@ -47,4 +53,5 @@ namespace detail
|
|||||||
|
|
||||||
#include "intrinsic_geometric.inl"
|
#include "intrinsic_geometric.inl"
|
||||||
|
|
||||||
|
#endif//GLM_ARCH
|
||||||
#endif//glm_core_intrinsic_geometric
|
#endif//glm_core_intrinsic_geometric
|
||||||
|
|||||||
@@ -10,6 +10,12 @@
|
|||||||
#ifndef glm_detail_intrinsic_matrix
|
#ifndef glm_detail_intrinsic_matrix
|
||||||
#define glm_detail_intrinsic_matrix
|
#define glm_detail_intrinsic_matrix
|
||||||
|
|
||||||
|
#include "../setup.hpp"
|
||||||
|
|
||||||
|
#if((GLM_ARCH & GLM_ARCH_SSE2) != GLM_ARCH_SSE2)
|
||||||
|
# error "SSE2 instructions not supported or enabled"
|
||||||
|
#else
|
||||||
|
|
||||||
#include "intrinsic_geometric.hpp"
|
#include "intrinsic_geometric.hpp"
|
||||||
|
|
||||||
namespace glm{
|
namespace glm{
|
||||||
@@ -40,4 +46,5 @@ namespace detail
|
|||||||
|
|
||||||
#include "intrinsic_matrix.inl"
|
#include "intrinsic_matrix.inl"
|
||||||
|
|
||||||
|
#endif//GLM_ARCH
|
||||||
#endif//glm_detail_intrinsic_matrix
|
#endif//glm_detail_intrinsic_matrix
|
||||||
|
|||||||
@@ -12,6 +12,10 @@
|
|||||||
|
|
||||||
#include "../setup.hpp"
|
#include "../setup.hpp"
|
||||||
|
|
||||||
|
#if((GLM_ARCH & GLM_ARCH_SSE2) != GLM_ARCH_SSE2)
|
||||||
|
# error "SSE2 instructions not supported or enabled"
|
||||||
|
#else
|
||||||
|
|
||||||
namespace glm{
|
namespace glm{
|
||||||
namespace detail
|
namespace detail
|
||||||
{
|
{
|
||||||
@@ -21,4 +25,5 @@ namespace detail
|
|||||||
|
|
||||||
#include "intrinsic_trigonometric.inl"
|
#include "intrinsic_trigonometric.inl"
|
||||||
|
|
||||||
|
#endif//GLM_ARCH
|
||||||
#endif//glm_detail_intrinsic_trigonometric
|
#endif//glm_detail_intrinsic_trigonometric
|
||||||
|
|||||||
@@ -12,6 +12,10 @@
|
|||||||
|
|
||||||
#include "../setup.hpp"
|
#include "../setup.hpp"
|
||||||
|
|
||||||
|
#if((GLM_ARCH & GLM_ARCH_SSE2) != GLM_ARCH_SSE2)
|
||||||
|
# error "SSE2 instructions not supported or enabled"
|
||||||
|
#else
|
||||||
|
|
||||||
namespace glm{
|
namespace glm{
|
||||||
namespace detail
|
namespace detail
|
||||||
{
|
{
|
||||||
@@ -21,4 +25,5 @@ namespace detail
|
|||||||
|
|
||||||
#include "intrinsic_vector_relational.inl"
|
#include "intrinsic_vector_relational.inl"
|
||||||
|
|
||||||
|
#endif//GLM_ARCH
|
||||||
#endif//glm_detail_intrinsic_vector_relational
|
#endif//glm_detail_intrinsic_vector_relational
|
||||||
|
|||||||
Reference in New Issue
Block a user