Selaa lähdekoodia

Fixed SIMD support for Intel compiler on Windows, issue #32

Christophe Riccio 13 vuotta sitten
vanhempi
sitoutus
9a625f4d5b
2 muutettua tiedostoa jossa 13 lisäystä ja 1 poistoa
  1. 7 0
      glm/core/_detail.hpp
  2. 6 1
      readme.txt

+ 7 - 0
glm/core/_detail.hpp

@@ -445,6 +445,13 @@ namespace detail
 #	define GLM_RESTRICT __declspec(restrict)
 #	define GLM_RESTRICT_VAR __restrict
 #	define GLM_CONSTEXPR 
+#elif(GLM_COMPILER & GLM_COMPILER_INTEL)
+#   define GLM_DEPRECATED
+#   define GLM_ALIGN(x) __declspec(align(x))
+#   define GLM_ALIGNED_STRUCT(x) __declspec(align(x)) struct
+#   define GLM_RESTRICT
+#   define GLM_RESTRICT_VAR __restrict
+#   define GLM_CONSTEXPR
 #elif((GLM_COMPILER & (GLM_COMPILER_GCC | GLM_COMPILER_LLVM_GCC)) && (GLM_COMPILER >= GLM_COMPILER_GCC31))
 #	define GLM_DEPRECATED __attribute__((__deprecated__))
 #	define GLM_ALIGN(x) __attribute__((aligned(x)))

+ 6 - 1
readme.txt

@@ -7,7 +7,7 @@ [email protected]
 ================================================================================
 The MIT License
 --------------------------------------------------------------------------------
-Copyright (c) 2005 - 2012 G-Truc Creation (www.g-truc.net)
+Copyright (c) 2005 - 2013 G-Truc Creation (www.g-truc.net)
 
 Permission is hereby granted, free of charge, to any person obtaining a copy
 of this software and associated documentation files (the "Software"), to deal
@@ -36,6 +36,11 @@ GLM is a header only library, there is nothing to build, just include it.
 More informations in GLM manual:
 http://glm.g-truc.net/glm.pdf
 
+================================================================================
+GLM 0.9.4.2: 2013-01-XX
+--------------------------------------------------------------------------------
+- Fixed SIMD support for Intel compiler on Windows
+
 ================================================================================
 GLM 0.9.4.1: 2012-12-22
 --------------------------------------------------------------------------------