Mercurial > libavutil.hg
comparison internal.h @ 736:9c9a242f840c libavutil
Add LABEL_MANGLE() to export label symbols from inside asm blocks.
author | ramiro |
---|---|
date | Mon, 25 May 2009 01:50:37 +0000 |
parents | b386bd0fad52 |
children | 1091b120412e |
comparison
equal
deleted
inserted
replaced
735:92180cbccda6 | 736:9c9a242f840c |
---|---|
96 #endif | 96 #endif |
97 | 97 |
98 #ifndef offsetof | 98 #ifndef offsetof |
99 # define offsetof(T,F) ((unsigned int)((char *)&((T *)0)->F)) | 99 # define offsetof(T,F) ((unsigned int)((char *)&((T *)0)->F)) |
100 #endif | 100 #endif |
101 | |
102 /* Use to export labels from asm. */ | |
103 #define LABEL_MANGLE(a) EXTERN_PREFIX #a | |
101 | 104 |
102 // Use rip-relative addressing if compiling PIC code on x86-64. | 105 // Use rip-relative addressing if compiling PIC code on x86-64. |
103 #if ARCH_X86_64 && defined(PIC) | 106 #if ARCH_X86_64 && defined(PIC) |
104 # define LOCAL_MANGLE(a) #a "(%%rip)" | 107 # define LOCAL_MANGLE(a) #a "(%%rip)" |
105 #else | 108 #else |