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

Side by Side Diff: build/build_config.h

Issue 57031: Add atomic operations for ARM. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 7 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « base/atomicops_internals_arm_gcc.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // This file adds defines about the platform we're currently building on. 5 // This file adds defines about the platform we're currently building on.
6 // Operating System: 6 // Operating System:
7 // OS_WIN / OS_MACOSX / OS_LINUX / OS_POSIX (MACOSX or LINUX) 7 // OS_WIN / OS_MACOSX / OS_LINUX / OS_POSIX (MACOSX or LINUX)
8 // Compiler: 8 // Compiler:
9 // COMPILER_MSVC / COMPILER_GCC 9 // COMPILER_MSVC / COMPILER_GCC
10 // Processor: 10 // Processor:
(...skipping 25 matching lines...) Expand all
36 #define COMPILER_GCC 1 36 #define COMPILER_GCC 1
37 #elif defined(_MSC_VER) 37 #elif defined(_MSC_VER)
38 #define COMPILER_MSVC 1 38 #define COMPILER_MSVC 1
39 #else 39 #else
40 #error Please add support for your compiler in build/build_config.h 40 #error Please add support for your compiler in build/build_config.h
41 #endif 41 #endif
42 42
43 // Processor architecture detection. For more info on what's defined, see: 43 // Processor architecture detection. For more info on what's defined, see:
44 // http://msdn.microsoft.com/en-us/library/b0084kay.aspx 44 // http://msdn.microsoft.com/en-us/library/b0084kay.aspx
45 // http://www.agner.org/optimize/calling_conventions.pdf 45 // http://www.agner.org/optimize/calling_conventions.pdf
46 // or with gcc, run: "echo | gcc -E -dM -"
46 #if defined(_M_X64) || defined(__x86_64__) 47 #if defined(_M_X64) || defined(__x86_64__)
47 #define ARCH_CPU_X86_FAMILY 1 48 #define ARCH_CPU_X86_FAMILY 1
48 #define ARCH_CPU_X86_64 1 49 #define ARCH_CPU_X86_64 1
49 #define ARCH_CPU_64_BITS 1 50 #define ARCH_CPU_64_BITS 1
50 #elif defined(_M_IX86) || defined(__i386__) 51 #elif defined(_M_IX86) || defined(__i386__)
51 #define ARCH_CPU_X86_FAMILY 1 52 #define ARCH_CPU_X86_FAMILY 1
52 #define ARCH_CPU_X86 1 53 #define ARCH_CPU_X86 1
53 #define ARCH_CPU_32_BITS 1 54 #define ARCH_CPU_32_BITS 1
55 #elif defined(__ARMEL__)
56 #define ARCH_CPU_ARM_FAMILY 1
57 #define ARCH_CPU_ARMEL 1
58 #define ARCH_CPU_32_BITS 1
54 #else 59 #else
55 #error Please add support for your architecture in build/build_config.h 60 #error Please add support for your architecture in build/build_config.h
56 #endif 61 #endif
57 62
58 // Type detection for wchar_t. 63 // Type detection for wchar_t.
59 #if defined(OS_WIN) 64 #if defined(OS_WIN)
60 #define WCHAR_T_IS_UTF16 65 #define WCHAR_T_IS_UTF16
61 #elif defined(OS_POSIX) && defined(COMPILER_GCC) && \ 66 #elif defined(OS_POSIX) && defined(COMPILER_GCC) && \
62 defined(__WCHAR_MAX__) && __WCHAR_MAX__ == 0x7fffffff 67 defined(__WCHAR_MAX__) && \
68 (__WCHAR_MAX__ == 0x7fffffff || __WCHAR_MAX__ == 0xffffffff)
63 #define WCHAR_T_IS_UTF32 69 #define WCHAR_T_IS_UTF32
64 #else 70 #else
65 #error Please add support for your compiler in build/build_config.h 71 #error Please add support for your compiler in build/build_config.h
66 #endif 72 #endif
67 73
68 #endif // BUILD_BUILD_CONFIG_H_ 74 #endif // BUILD_BUILD_CONFIG_H_
OLDNEW
« no previous file with comments | « base/atomicops_internals_arm_gcc.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698