- Timestamp:
- 08/24/11 11:23:44 (13 years ago)
- Location:
- ps/trunk/source/lib
- Files:
-
- 2 edited
-
pointer_typedefs.h (modified) (4 diffs)
-
sysdep/compiler.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
ps/trunk/source/lib/pointer_typedefs.h
r10053 r10089 2 2 #define INCLUDED_POINTER_TYPEDEFS 3 3 4 #ifdef __SSE__ 4 #include "lib/sysdep/compiler.h" // HAVE_SSE 5 6 #if HAVE_SSE 5 7 # include <xmmintrin.h> // __m64, __m128 6 8 #endif 7 #if def __SSE2__9 #if HAVE_SSE2 8 10 # include <emmintrin.h> // __m128i, __m128d 9 11 #endif … … 153 155 typedef const double* const __restrict crpcDouble; 154 156 155 #if def __SSE__157 #if HAVE_SSE 156 158 typedef __m64* pM64; 157 159 typedef __m64* const cpM64; … … 171 173 typedef const __m128* __restrict rpcM128; 172 174 typedef const __m128* const __restrict crpcM128; 173 #endif // __SSE__175 #endif // #if HAVE_SSE 174 176 175 #if def __SSE2__177 #if HAVE_SSE2 176 178 typedef __m128i* pM128I; 177 179 typedef __m128i* const cpM128I; … … 191 193 typedef const __m128d* __restrict rpcM128D; 192 194 typedef const __m128d* const __restrict crpcM128D; 193 #endif // __SSE2__195 #endif // #if HAVE_SSE2 194 196 195 197 #endif // #ifndef INCLUDED_POINTER_TYPEDEFS -
ps/trunk/source/lib/sysdep/compiler.h
r9350 r10089 99 99 #endif 100 100 101 102 // Streaming SIMD Extensions (not supported by all GCC) 103 // this only ascertains compiler support; use x86_x64_cap to 104 // check whether the instructions are supported by the CPU. 105 #ifndef HAVE_SSE 106 # if GCC_VERSION && defined(__SSE__) 107 # define HAVE_SSE 1 108 # elif MSC_VERSION // also includes ICC 109 # define HAVE_SSE 1 110 # else 111 # define HAVE_SSE 0 112 # endif 113 #endif 114 115 #ifndef HAVE_SSE2 116 # if GCC_VERSION && defined(__SSE2__) 117 # define HAVE_SSE2 1 118 # elif MSC_VERSION // also includes ICC 119 # define HAVE_SSE2 1 120 # else 121 # define HAVE_SSE2 0 122 # endif 123 #endif 124 101 125 #endif // #ifndef INCLUDED_COMPILER
Note:
See TracChangeset
for help on using the changeset viewer.
