File: func_abi.h

package info (click to toggle)
libgcrypt20 1.7.6-2%2Bdeb9u3
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 13,196 kB
  • sloc: ansic: 109,553; asm: 33,257; sh: 12,670; perl: 1,376; makefile: 542
file content (19 lines) | stat: -rw-r--r-- 380 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#ifdef USE_MS_ABI
 /* Store registers and move four first input arguments from MS ABI to
  * SYSV ABI.  */
 #define FUNC_ENTRY() \
	pushq %rsi; \
	pushq %rdi; \
	movq %rdx, %rsi; \
	movq %rcx, %rdi; \
	movq %r8, %rdx; \
	movq %r9, %rcx;

 /* Restore registers.  */
 #define FUNC_EXIT() \
	popq %rdi; \
	popq %rsi;
#else
 #define FUNC_ENTRY() /**/
 #define FUNC_EXIT() /**/
#endif