Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1559)

Unified Diff: Source/wtf/CPU.h

Issue 25640003: Optimize test for pointer being in a partition on 32-bit. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix variable name. Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | Source/wtf/PageAllocator.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/wtf/CPU.h
diff --git a/Source/wtf/CPU.h b/Source/wtf/CPU.h
index eb32ca3e346cb785f9db4243f103bcdc83eb8b06..887862929a9183da590bd48eca99ceeb41cd52dd 100644
--- a/Source/wtf/CPU.h
+++ b/Source/wtf/CPU.h
@@ -36,7 +36,8 @@
/* ==== CPU() - the target CPU architecture ==== */
-/* This also defines CPU(BIG_ENDIAN) or CPU(MIDDLE_ENDIAN) or neither, as appropriate. */
+/* This defines CPU(BIG_ENDIAN) or nothing, as appropriate. */
+/* This defines CPU(32BIT) or CPU(64BIT), as appropriate. */
/* CPU(X86) - i386 / x86 32-bit */
#if defined(__i386__) \
@@ -51,6 +52,7 @@
#if defined(__x86_64__) \
|| defined(_M_X64)
#define WTF_CPU_X86_64 1
+#define WTF_CPU_64BIT 1
#endif
/* CPU(ARM) - ARM, any version*/
@@ -172,6 +174,10 @@
#define WTF_CPU_APPLE_ARMV7S 1
#endif
+#if !defined(WTF_CPU_64BIT)
+#define WTF_CPU_32BIT 1
+#endif
+
#endif /* ARM */
#endif /* WTF_CPU_h */
« no previous file with comments | « no previous file | Source/wtf/PageAllocator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698