ReactOS 0.4.16-dev-737-g3368adc
asm.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define __ASM_NAME(name)   name
 
#define __ASM_STDCALL(name, args)   __ASM_NAME(name)
 
#define __ASM_CFI(str)
 
#define __ASM_SEH(str)
 
#define __ASM_FUNC_TYPE(name)   ".type " name ",@function"
 
#define __ASM_BLOCK_BEGIN(name)   void __asm_dummy_##name(void) {
 
#define __ASM_BLOCK_END   }
 
#define __ASM_DEFINE_FUNC(name, code)
 
#define __ASM_GLOBAL_FUNC(name, code)   __ASM_DEFINE_FUNC(__ASM_NAME(#name),code)
 
#define __ASM_STDCALL_FUNC(name, args, code)   __ASM_DEFINE_FUNC(__ASM_STDCALL(#name,args),code)
 
#define DEFINE_FASTCALL1_WRAPPER(func)   /* nothing */
 
#define DEFINE_FASTCALL_WRAPPER(func, args)   /* nothing */
 
#define DEFINE_THISCALL_WRAPPER(func, args)   /* nothing */
 
#define THISCALL(func)   func
 
#define THISCALL_NAME(func)   __ASM_NAME(#func)
 

Macro Definition Documentation

◆ __ASM_BLOCK_BEGIN

#define __ASM_BLOCK_BEGIN (   name)    void __asm_dummy_##name(void) {

Definition at line 59 of file asm.h.

◆ __ASM_BLOCK_END

#define __ASM_BLOCK_END   }

Definition at line 60 of file asm.h.

◆ __ASM_CFI

#define __ASM_CFI (   str)

Definition at line 39 of file asm.h.

◆ __ASM_DEFINE_FUNC

#define __ASM_DEFINE_FUNC (   name,
  code 
)
Value:
void __asm_dummy_##__LINE__(void) { \
asm(".text\n\t.align 4\n\t.globl " name "\n\t" __ASM_FUNC_TYPE(name) __ASM_SEH("\n\t.seh_proc " name) "\n" name ":\n\t" \
__ASM_CFI(".cfi_startproc\n\t") code __ASM_CFI("\n\t.cfi_endproc") __ASM_SEH("\n\t.seh_endproc") ); }
#define __ASM_CFI(str)
Definition: asm.h:39
#define __ASM_SEH(str)
Definition: asm.h:45
#define __ASM_FUNC_TYPE(name)
Definition: asm.h:55
Definition: inflate.c:139
Definition: name.c:39

Definition at line 74 of file asm.h.

◆ __ASM_FUNC_TYPE

#define __ASM_FUNC_TYPE (   name)    ".type " name ",@function"

Definition at line 55 of file asm.h.

◆ __ASM_GLOBAL_FUNC

#define __ASM_GLOBAL_FUNC (   name,
  code 
)    __ASM_DEFINE_FUNC(__ASM_NAME(#name),code)

Definition at line 79 of file asm.h.

◆ __ASM_NAME

#define __ASM_NAME (   name)    name

Definition at line 27 of file asm.h.

◆ __ASM_SEH

#define __ASM_SEH (   str)

Definition at line 45 of file asm.h.

◆ __ASM_STDCALL

#define __ASM_STDCALL (   name,
  args 
)    __ASM_NAME(name)

Definition at line 33 of file asm.h.

◆ __ASM_STDCALL_FUNC

#define __ASM_STDCALL_FUNC (   name,
  args,
  code 
)    __ASM_DEFINE_FUNC(__ASM_STDCALL(#name,args),code)

Definition at line 81 of file asm.h.

◆ DEFINE_FASTCALL1_WRAPPER

#define DEFINE_FASTCALL1_WRAPPER (   func)    /* nothing */

Definition at line 103 of file asm.h.

◆ DEFINE_FASTCALL_WRAPPER

#define DEFINE_FASTCALL_WRAPPER (   func,
  args 
)    /* nothing */

Definition at line 104 of file asm.h.

◆ DEFINE_THISCALL_WRAPPER

#define DEFINE_THISCALL_WRAPPER (   func,
  args 
)    /* nothing */

Definition at line 152 of file asm.h.

◆ THISCALL

#define THISCALL (   func)    func

Definition at line 153 of file asm.h.

◆ THISCALL_NAME

#define THISCALL_NAME (   func)    __ASM_NAME(#func)

Definition at line 154 of file asm.h.