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 10025 for ps


Ignore:
Timestamp:
08/17/11 15:41:25 (13 years ago)
Author:
philip
Message:

Fix GCC build (only reference SIMD types when supported by the compiler (though this might not work in MSVC))

File:
1 edited

Legend:

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

    r9410 r10025  
    11#ifndef INCLUDED_POINTER_TYPEDEFS
    22#define INCLUDED_POINTER_TYPEDEFS
     3
     4#ifdef __SSE__
     5# include <xmmintrin.h>  // __m64, __m128
     6#endif
     7#ifdef __SSE2__
     8# include <emmintrin.h>  // __m128i, __m128d
     9#endif
    310
    411// convenience typedefs for shortening parameter lists.
     
    108115typedef const double* const __restrict crpcDouble;
    109116
     117#ifdef __SSE__
     118typedef __m64* pM64;
     119typedef __m64* const cpM64;
     120typedef __m64* __restrict rpM64;
     121typedef __m64* const __restrict crpM64;
     122typedef const __m64* pcM64;
     123typedef const __m64* const cpcM64;
     124typedef const __m64* __restrict rpcM64;
     125typedef const __m64* const __restrict crpcM64;
     126
    110127typedef __m128* pM128;
    111128typedef __m128* const cpM128;
     
    116133typedef const __m128* __restrict rpcM128;
    117134typedef const __m128* const __restrict crpcM128;
     135#endif // __SSE__
    118136
     137#ifdef __SSE2__
    119138typedef __m128i* pM128I;
    120139typedef __m128i* const cpM128I;
     
    134153typedef const __m128d* __restrict rpcM128D;
    135154typedef const __m128d* const __restrict crpcM128D;
    136 
    137 typedef __m64* pM64;
    138 typedef __m64* const cpM64;
    139 typedef __m64* __restrict rpM64;
    140 typedef __m64* const __restrict crpM64;
    141 typedef const __m64* pcM64;
    142 typedef const __m64* const cpcM64;
    143 typedef const __m64* __restrict rpcM64;
    144 typedef const __m64* const __restrict crpcM64;
     155#endif // __SSE2__
    145156
    146157#endif  // #ifndef INCLUDED_POINTER_TYPEDEFS
Note: See TracChangeset for help on using the changeset viewer.