Skip to content

Commit

Permalink
Fix X86 Wince builds.
Browse files Browse the repository at this point in the history
Windows CE does not have all _BitScanReverse
intrinsics, so disable those for Q_OS_WINCE.

Change-Id: I34a3c02c6ffdfff2a209b2c9c1b80bef4566ee39
Reviewed-by: Friedemann Kleint <[email protected]>
  • Loading branch information
bbreitmeyer committed Oct 29, 2014
1 parent a0bdbc1 commit 7ebc151
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/3rdparty/pcre/sljit/sljitNativeX86_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,9 @@ static sljit_si cpu_has_sse2 = -1;
#endif
static sljit_si cpu_has_cmov = -1;

#if defined(_MSC_VER) && _MSC_VER >= 1400
#ifdef _WIN32_WCE
#include <cmnintrin.h>
#elif defined(_MSC_VER) && _MSC_VER >= 1400
#include <intrin.h>
#endif

Expand Down
2 changes: 1 addition & 1 deletion src/corelib/tools/qsimd_p.h
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ static inline uint qCpuFeatures()

#ifdef Q_PROCESSOR_X86
// Bit scan functions for x86
# ifdef Q_CC_MSVC
# if defined(Q_CC_MSVC) && !defined(Q_OS_WINCE)
// MSVC calls it _BitScanReverse and returns the carry flag, which we don't need
static __forceinline unsigned long _bit_scan_reverse(uint val)
{
Expand Down

0 comments on commit 7ebc151

Please sign in to comment.