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

Side by Side Diff: src/include/nacl_asm.h

Issue 788193003: Create a build_config header file. (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: Created 6 years 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
OLDNEW
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/nacl_defines.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
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_ */
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698