mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-08 06:53:45 +00:00
ICU-5352 Use better macros for determining CPU type.
X-SVN-Rev: 20183
This commit is contained in:
parent
72d9811956
commit
f0957dcb7d
1 changed files with 5 additions and 1 deletions
|
@ -173,7 +173,11 @@ typedef unsigned int uint32_t;
|
|||
#define ICU_USE_THREADS 1
|
||||
|
||||
/* On strong memory model CPUs (e.g. x86 CPUs), we use a safe & quick double check mutex lock. */
|
||||
#if defined(_M_IX86) || defined(_M_AMD64) || (defined(__GNUC__) && (defined(__i386__) || defined(__amd64__)))
|
||||
/*
|
||||
Microsoft can define _M_IX86, _M_AMD64 (before Visual Studio 8) or _M_X64 (starting in Visual Studio 8).
|
||||
Intel can define _M_IX86 or _M_X64
|
||||
*/
|
||||
#if defined(_M_IX86) || defined(_M_AMD64) || defined(_M_X64) || (defined(__GNUC__) && (defined(__i386__) || defined(__x86_64__)))
|
||||
#define UMTX_STRONG_MEMORY_MODEL 1
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue