This Trac instance is not used for development anymore!

We migrated our development workflow to git and Gitea.
To test the future redirection, replace trac by ariadne in the page URL.

Changeset 10089 for ps


Ignore:
Timestamp:
08/24/11 11:23:44 (13 years ago)
Author:
Jan Wassenberg
Message:

SSE[2] didn't work on MSVC/ICC after all; introduce HAVE_SSE[2] instead

Location:
ps/trunk/source/lib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • ps/trunk/source/lib/pointer_typedefs.h

    r10053 r10089  
    22#define INCLUDED_POINTER_TYPEDEFS
    33
    4 #ifdef __SSE__
     4#include "lib/sysdep/compiler.h"    // HAVE_SSE
     5
     6#if HAVE_SSE
    57# include <xmmintrin.h>  // __m64, __m128
    68#endif
    7 #ifdef __SSE2__
     9#if HAVE_SSE2
    810# include <emmintrin.h>  // __m128i, __m128d
    911#endif
     
    153155typedef const double* const __restrict crpcDouble;
    154156
    155 #ifdef __SSE__
     157#if HAVE_SSE
    156158typedef __m64* pM64;
    157159typedef __m64* const cpM64;
     
    171173typedef const __m128* __restrict rpcM128;
    172174typedef const __m128* const __restrict crpcM128;
    173 #endif // __SSE__
     175#endif // #if HAVE_SSE
    174176
    175 #ifdef __SSE2__
     177#if HAVE_SSE2
    176178typedef __m128i* pM128I;
    177179typedef __m128i* const cpM128I;
     
    191193typedef const __m128d* __restrict rpcM128D;
    192194typedef const __m128d* const __restrict crpcM128D;
    193 #endif // __SSE2__
     195#endif // #if HAVE_SSE2
    194196
    195197#endif  // #ifndef INCLUDED_POINTER_TYPEDEFS
  • ps/trunk/source/lib/sysdep/compiler.h

    r9350 r10089  
    9999#endif
    100100
     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
    101125#endif  // #ifndef INCLUDED_COMPILER
Note: See TracChangeset for help on using the changeset viewer.