| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2008 The Native Client Authors. All rights reserved. | 2 * Copyright (c) 2008 The Native Client Authors. All rights reserved. |
| 3 * Use of this source code is governed by a BSD-style license that can be | 3 * Use of this source code is governed by a BSD-style license that can be |
| 4 * found in the LICENSE file. | 4 * found in the LICENSE file. |
| 5 */ | 5 */ |
| 6 | 6 |
| 7 #ifndef NATIVE_CLIENT_SRC_INCLUDE_NACL_ASM_H_ | 7 #ifndef NATIVE_CLIENT_SRC_INCLUDE_NACL_ASM_H_ |
| 8 #define NATIVE_CLIENT_SRC_INCLUDE_NACL_ASM_H_ | 8 #define NATIVE_CLIENT_SRC_INCLUDE_NACL_ASM_H_ |
| 9 | 9 |
| 10 #include "native_client/src/include/build_config.h" |
| 11 |
| 10 /* | 12 /* |
| 11 * macros to provide uniform access to identifiers from assembly due | 13 * macros to provide uniform access to identifiers from assembly due |
| 12 * to different C -> asm name mangling conventions and other platform-specific | 14 * to different C -> asm name mangling conventions and other platform-specific |
| 13 * requirements | 15 * requirements |
| 14 */ | 16 */ |
| 15 #if NACL_OSX | 17 #if NACL_OSX |
| 16 # define IDENTIFIER(n) _##n | 18 # define IDENTIFIER(n) _##n |
| 17 #elif NACL_LINUX | 19 #elif NACL_LINUX |
| 18 # define IDENTIFIER(n) n | 20 # define IDENTIFIER(n) n |
| 19 #elif NACL_WINDOWS | 21 #elif NACL_WINDOWS |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 | 64 |
| 63 #define DEFINE_GLOBAL_HIDDEN_FUNCTION(n) \ | 65 #define DEFINE_GLOBAL_HIDDEN_FUNCTION(n) \ |
| 64 .globl IDENTIFIER(n); HIDDEN(n); IDENTIFIER(n) | 66 .globl IDENTIFIER(n); HIDDEN(n); IDENTIFIER(n) |
| 65 | 67 |
| 66 #endif | 68 #endif |
| 67 | 69 |
| 68 #define DEFINE_GLOBAL_HIDDEN_LOCATION(n) \ | 70 #define DEFINE_GLOBAL_HIDDEN_LOCATION(n) \ |
| 69 .globl IDENTIFIER(n); HIDDEN(n); IDENTIFIER(n) | 71 .globl IDENTIFIER(n); HIDDEN(n); IDENTIFIER(n) |
| 70 | 72 |
| 71 #endif /* NATIVE_CLIENT_SRC_INCLUDE_NACL_ASM_H_ */ | 73 #endif /* NATIVE_CLIENT_SRC_INCLUDE_NACL_ASM_H_ */ |
| OLD | NEW |