OSDN Git Service

hidden_def/hidden_proto: convert all users (I hope) termios split, add some missing...
[uclinux-h8/uClibc.git] / libc / string / x86_64 / _glibc_inc.h
1 /*
2  * Setup some glibc defines so we can just drop in the
3  * asm files from glibc without any modification.
4  */
5
6 #include <features.h>
7 #include <bits/wordsize.h>
8
9 #if __WORDSIZE == 32
10 # define ENTRY_ALIGN 4
11 #else
12 # define ENTRY_ALIGN 2
13 #endif
14
15 #define ENTRY(sym) \
16         .global sym; \
17         .align  ENTRY_ALIGN; \
18         .type   sym,%function; \
19         sym:
20
21 #define BP_SYM(sym) sym
22
23 #define L(sym) LOC(sym)
24 #define LOC(sym) \
25         .L ## sym
26
27 #define END(sym) \
28         .size sym,.-sym;