diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2012-05-14 14:56:07 -0700 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2012-05-14 14:56:07 -0700 |
commit | 520ae0fd0bc4dbb57f103eedc818d6c1b39be13e (patch) | |
tree | 8eec9d76445ee582a4d3a82118e9fb23b8e7d0cf /sysdeps/x86_64/sysdep.h | |
parent | b985be81fafe09f77f37ae818b902db278689a9b (diff) | |
download | glibc-520ae0fd0bc4dbb57f103eedc818d6c1b39be13e.tar.gz glibc-520ae0fd0bc4dbb57f103eedc818d6c1b39be13e.tar.xz glibc-520ae0fd0bc4dbb57f103eedc818d6c1b39be13e.zip |
Define LP_SIZE/LP_OP/ASM_ADDR/RXX_LP for x86-64
Diffstat (limited to 'sysdeps/x86_64/sysdep.h')
-rw-r--r-- | sysdeps/x86_64/sysdep.h | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/sysdeps/x86_64/sysdep.h b/sysdeps/x86_64/sysdep.h index e455c6087d..e34d7a9444 100644 --- a/sysdeps/x86_64/sysdep.h +++ b/sysdeps/x86_64/sysdep.h @@ -95,4 +95,60 @@ lose: \ #define atom_text_section .section ".text.atom", "ax" +/* Long and pointer size in bytes. */ +#define LP_SIZE 8 + +/* Instruction to operate on long and pointer. */ +#define LP_OP(insn) insn##q + +/* Assembler address directive. */ +#define ASM_ADDR .quad + +/* Registers to hold long and pointer. */ +#define RAX_LP rax +#define RBP_LP rbp +#define RBX_LP rbx +#define RCX_LP rcx +#define RDI_LP rdi +#define RDX_LP rdx +#define RSI_LP rsi +#define RSP_LP rsp +#define R8_LP r8 +#define R9_LP r9 +#define R10_LP r10 +#define R11_LP r11 +#define R12_LP r12 +#define R13_LP r13 +#define R14_LP r14 +#define R15_LP r15 + +#else /* __ASSEMBLER__ */ + +/* Long and pointer size in bytes. */ +#define LP_SIZE "8" + +/* Instruction to operate on long and pointer. */ +#define LP_OP(insn) #insn "q" + +/* Assembler address directive. */ +#define ASM_ADDR ".quad" + +/* Registers to hold long and pointer. */ +#define RAX_LP "rax" +#define RBP_LP "rbp" +#define RBX_LP "rbx" +#define RCX_LP "rcx" +#define RDI_LP "rdi" +#define RDX_LP "rdx" +#define RSI_LP "rsi" +#define RSP_LP "rsp" +#define R8_LP "r8" +#define R9_LP "r9" +#define R10_LP "r10" +#define R11_LP "r11" +#define R12_LP "r12" +#define R13_LP "r13" +#define R14_LP "r14" +#define R15_LP "r15" + #endif /* __ASSEMBLER__ */ |