projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e9356be
)
Add LABEL_MANGLE() to export label symbols from inside asm blocks.
author
Ramiro Polla
<ramiro.polla@gmail.com>
Mon, 25 May 2009 01:50:37 +0000
(
01:50
+0000)
committer
Ramiro Polla
<ramiro.polla@gmail.com>
Mon, 25 May 2009 01:50:37 +0000
(
01:50
+0000)
Originally committed as revision 18934 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavutil/internal.h
patch
|
blob
|
history
diff --git
a/libavutil/internal.h
b/libavutil/internal.h
index
a41a946
..
c9bab52
100644
(file)
--- a/
libavutil/internal.h
+++ b/
libavutil/internal.h
@@
-99,6
+99,9
@@
# define offsetof(T,F) ((unsigned int)((char *)&((T *)0)->F))
#endif
+/* Use to export labels from asm. */
+#define LABEL_MANGLE(a) EXTERN_PREFIX #a
+
// Use rip-relative addressing if compiling PIC code on x86-64.
#if ARCH_X86_64 && defined(PIC)
# define LOCAL_MANGLE(a) #a "(%%rip)"