File: asm.h

package info (click to toggle)
valgrind 1:3.10.0-4~bpo7+1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy-backports
  • size: 97,940 kB
  • sloc: ansic: 589,429; xml: 21,096; exp: 8,751; cpp: 7,366; asm: 6,526; perl: 5,656; sh: 5,334; makefile: 4,946; haskell: 195
file content (19 lines) | stat: -rw-r--r-- 539 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// Header to factor out platform differences in asm code.

// On Darwin, all symbols get an underscore prepended when compiled.  If we
// use any such symbols in asm code, we need to add that underscore.  So in
// general, any symbol named in asm code should be wrapped by VG_SYM.

// This one is for use in inline asm in C files.
#if defined(VGO_darwin)
#define VG_SYM(x) "_"#x
#else
#define VG_SYM(x) #x
#endif

// This one is for use in asm files.
#if defined(VGO_darwin)
#define VG_SYM_ASM(x) _##x
#else
#define VG_SYM_ASM(x) x
#endif