OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006, 2007, 2008, 2009, 2013 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007, 2008, 2009, 2013 Apple Inc. All rights reserved. |
3 * Copyright (C) 2007-2009 Torch Mobile, Inc. | 3 * Copyright (C) 2007-2009 Torch Mobile, Inc. |
4 * Copyright (C) 2010, 2011 Research In Motion Limited. All rights reserved. | 4 * Copyright (C) 2010, 2011 Research In Motion Limited. All rights reserved. |
5 * Copyright (C) 2013 Samsung Electronics. All rights reserved. | 5 * Copyright (C) 2013 Samsung Electronics. All rights reserved. |
6 * | 6 * |
7 * Redistribution and use in source and binary forms, with or without | 7 * Redistribution and use in source and binary forms, with or without |
8 * modification, are permitted provided that the following conditions | 8 * modification, are permitted provided that the following conditions |
9 * are met: | 9 * are met: |
10 * 1. Redistributions of source code must retain the above copyright | 10 * 1. Redistributions of source code must retain the above copyright |
(...skipping 19 matching lines...) Expand all Loading... |
30 #define WTF_CPU_h | 30 #define WTF_CPU_h |
31 | 31 |
32 #include "wtf/Compiler.h" | 32 #include "wtf/Compiler.h" |
33 | 33 |
34 /* CPU() - the target CPU architecture */ | 34 /* CPU() - the target CPU architecture */ |
35 #define CPU(WTF_FEATURE) (defined WTF_CPU_##WTF_FEATURE && WTF_CPU_##WTF_FEATUR
E) | 35 #define CPU(WTF_FEATURE) (defined WTF_CPU_##WTF_FEATURE && WTF_CPU_##WTF_FEATUR
E) |
36 | 36 |
37 /* ==== CPU() - the target CPU architecture ==== */ | 37 /* ==== CPU() - the target CPU architecture ==== */ |
38 | 38 |
39 /* This defines CPU(BIG_ENDIAN) or nothing, as appropriate. */ | 39 /* This defines CPU(BIG_ENDIAN) or nothing, as appropriate. */ |
40 /* This defines CPU(32BIT) or CPU(64BIT), as appropriate. */ | 40 /* This defines CPU(64BIT) or nothing, as appropriate. */ |
41 | 41 |
42 /* CPU(X86) - i386 / x86 32-bit */ | 42 /* CPU(X86) - i386 / x86 32-bit */ |
43 #if defined(__i386__) \ | 43 #if defined(__i386__) \ |
44 || defined(i386) \ | 44 || defined(i386) \ |
45 || defined(_M_IX86) \ | 45 || defined(_M_IX86) \ |
46 || defined(_X86_) \ | 46 || defined(_X86_) \ |
47 || defined(__THW_INTEL) | 47 || defined(__THW_INTEL) |
48 #define WTF_CPU_X86 1 | 48 #define WTF_CPU_X86 1 |
49 #endif | 49 #endif |
50 | 50 |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
161 | 161 |
162 #if CPU(ARM_NEON) && (!COMPILER(GCC) || GCC_VERSION_AT_LEAST(4, 7, 0)) | 162 #if CPU(ARM_NEON) && (!COMPILER(GCC) || GCC_VERSION_AT_LEAST(4, 7, 0)) |
163 // All NEON intrinsics usage can be disabled by this macro. | 163 // All NEON intrinsics usage can be disabled by this macro. |
164 #define HAVE_ARM_NEON_INTRINSICS 1 | 164 #define HAVE_ARM_NEON_INTRINSICS 1 |
165 #endif | 165 #endif |
166 | 166 |
167 #if defined(__ARM_ARCH_7S__) | 167 #if defined(__ARM_ARCH_7S__) |
168 #define WTF_CPU_APPLE_ARMV7S 1 | 168 #define WTF_CPU_APPLE_ARMV7S 1 |
169 #endif | 169 #endif |
170 | 170 |
171 #if !defined(WTF_CPU_64BIT) | |
172 #define WTF_CPU_32BIT 1 | |
173 #endif | |
174 | |
175 #endif /* ARM */ | 171 #endif /* ARM */ |
176 | 172 |
177 /* CPU(ARM64) - AArch64 64-bit */ | 173 /* CPU(ARM64) - AArch64 64-bit */ |
178 #if defined(__aarch64__) | 174 #if defined(__aarch64__) |
179 #define WTF_CPU_ARM64 1 | 175 #define WTF_CPU_ARM64 1 |
180 #define WTF_CPU_64BIT 1 | 176 #define WTF_CPU_64BIT 1 |
181 #endif | 177 #endif |
182 | 178 |
183 /* This defines CPU(64BIT). */ | 179 /* This defines CPU(64BIT). */ |
184 #if defined(__mips__) && (_MIPS_SIM == _ABI64) | 180 #if defined(__mips__) && (_MIPS_SIM == _ABI64) |
185 #define WTF_CPU_64BIT 1 | 181 #define WTF_CPU_64BIT 1 |
186 #endif | 182 #endif |
187 | 183 |
188 #endif /* WTF_CPU_h */ | 184 #endif /* WTF_CPU_h */ |
OLD | NEW |