x86: introduce asm helpers in local_{32|64}.h
[deliverable/linux.git] / include / asm-x86 / asm.h
CommitLineData
e845c06b
PA
1#ifndef _ASM_X86_ASM_H
2#define _ASM_X86_ASM_H
3
4#ifdef CONFIG_X86_32
5/* 32 bits */
6
7# define _ASM_PTR " .long "
8# define _ASM_ALIGN " .balign 4 "
3578facf 9# define _ASM_MOV_UL " movl "
e845c06b 10
8ee5797a
HH
11# define _ASM_INC " incl "
12# define _ASM_DEC " decl "
13# define _ASM_ADD " addl "
14# define _ASM_SUB " subl "
15# define _ASM_XADD " xaddl "
16
e845c06b
PA
17#else
18/* 64 bits */
19
20# define _ASM_PTR " .quad "
21# define _ASM_ALIGN " .balign 8 "
3578facf 22# define _ASM_MOV_UL " movq "
e845c06b 23
8ee5797a
HH
24# define _ASM_INC " incq "
25# define _ASM_DEC " decq "
26# define _ASM_ADD " addq "
27# define _ASM_SUB " subq "
28# define _ASM_XADD " xaddq "
29
e845c06b
PA
30#endif /* CONFIG_X86_32 */
31
32#endif /* _ASM_X86_ASM_H */
This page took 0.033511 seconds and 5 git commands to generate.