Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* | 1 /* |
| 2 * Copyright 2009 The Native Client Authors. All rights reserved. | 2 * Copyright 2009 The Native Client Authors. All rights reserved. |
| 3 * Use of this source code is governed by a BSD-style license that can | 3 * Use of this source code is governed by a BSD-style license that can |
| 4 * be found in the LICENSE file. | 4 * be found in the LICENSE file. |
| 5 */ | 5 */ |
| 6 | 6 |
| 7 /* | 7 /* |
| 8 * NaCl Service Runtime API. | 8 * NaCl Service Runtime API. |
| 9 */ | 9 */ |
| 10 | 10 |
| 11 | 11 |
| 12 #ifndef NATIVE_CLIENT_SRC_TRUSTED_SERVICE_RUNTIME_INCLUDE_BITS_WORDSIZE_H_ | 12 #ifndef NATIVE_CLIENT_SRC_TRUSTED_SERVICE_RUNTIME_INCLUDE_BITS_WORDSIZE_H_ |
| 13 #define NATIVE_CLIENT_SRC_TRUSTED_SERVICE_RUNTIME_INCLUDE_BITS_WORDSIZE_H_ | 13 #define NATIVE_CLIENT_SRC_TRUSTED_SERVICE_RUNTIME_INCLUDE_BITS_WORDSIZE_H_ |
| 14 | 14 |
| 15 #if defined(__powerpc64__) || defined(__s390x__) || defined(__arch64__) || \ | 15 #if defined(__powerpc64__) || defined(__s390x__) || defined(__arch64__) || \ |
| 16 defined(__sparcv9) || defined(__x86_64__) || defined(_AMD64_) || \ | 16 defined(__sparcv9) || defined(__x86_64__) || defined(_AMD64_) || \ |
| 17 defined(_M_AMD64) | 17 defined(_M_AMD64) |
| 18 #define __WORDSIZE 64 | 18 #define __WORDSIZE 64 |
| 19 #else | 19 #else |
| 20 #define __WORDSIZE 32 | 20 #if defined(__mips__) |
| 21 # if defined __WORDSIZE | |
|
Mark Seaborn
2012/09/08 02:43:14
We normally use 1-char spacing for indenting #ifs,
| |
| 22 # undef __WORDSIZE | |
| 23 # endif | |
| 24 # define __WORDSIZE 32 | |
|
Mark Seaborn
2012/09/08 02:43:14
Why redefine this? Won't this mess with whatever
petarj
2012/09/11 16:58:13
Ok, the MIPS host toolchain will set it to 32 anyw
| |
| 25 #else | |
| 26 # define __WORDSIZE 32 | |
| 21 #endif | 27 #endif |
| 22 | 28 |
| 23 #endif | 29 #endif |
| 30 #endif | |
| OLD | NEW |