Changeset 3908


Ignore:
Timestamp:
Jul 19, 2014, 3:47:36 PM (3 years ago)
Author:
nmedfort
Message:

Removed SSE2 test.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icXML/icXML-devel/src/icxercesc/util/PlatformUtils.cpp

    r3555 r3908  
    3838#       include <sys/timeb.h>
    3939#endif
    40 #if HAVE_CPUID_H && !XERCES_HAVE_INTRIN_H
    41 #   include <cpuid.h>
    42 #endif
    4340
    4441#include <xercesc/util/Mutexes.hpp>
     
    224221    fgXMLChBigEndian = (endianTest.ar[sizeof(XMLCh)-1] == 1);
    225222
    226     // Determine if we can use SSE2 functions
    227 #if defined(XERCES_HAVE_CPUID_INTRINSIC)
    228     int CPUInfo[4]={0};
    229     __cpuid(CPUInfo, 1);
    230     if(CPUInfo[3] & (1UL << 26))
    231         fgSSE2ok = true;
    232     else
    233         fgSSE2ok = false;
    234 #elif defined(XERCES_HAVE_GETCPUID)
    235     unsigned int eax, ebx, ecx, edx;
    236     if(!__get_cpuid (1, &eax, &ebx, &ecx, &edx) || (edx & (1UL << 26))==0)
    237         fgSSE2ok = false;
    238     else
    239         fgSSE2ok = true;
    240 #elif defined(XERCES_HAVE_SSE2_INTRINSIC)
    241     // if we cannot find out at runtime, assume the define has it right
    242     fgSSE2ok = true;
    243 #else
    244     fgSSE2ok = false;
    245 #endif
    246 
    247223    // Initialize the platform-specific mutex and file mgrs
     224    fgSSE2ok        = true;
    248225    fgMutexMgr          = makeMutexMgr(fgMemoryManager);
    249226    fgFileMgr           = makeFileMgr(fgMemoryManager);
Note: See TracChangeset for help on using the changeset viewer.