annotate libpostproc/mangle.h @ 3198:6b9f0c4fbdbe libavcodec

First part of a series of speed-enchancing patches. This one sets up a snow.h and makes snow use the dsputil function pointer framework to access the three functions that will be implemented in asm in the other parts of the patchset. Patch by Robert Edele < yartrebo AH earthlink POIS net> Original thread: Subject: [Ffmpeg-devel] [PATCH] Snow mmx+sse2 asm optimizations Date: Sun, 05 Feb 2006 12:47:14 -0500
author gpoirier
date Thu, 16 Mar 2006 19:18:18 +0000
parents 038e1b4f9afd
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1069
8528d0b9e508 moving postprocess to ffmpeg/libavcodec
michaelni
parents:
diff changeset
1 /* mangle.h - This file has some CPP macros to deal with different symbol
8528d0b9e508 moving postprocess to ffmpeg/libavcodec
michaelni
parents:
diff changeset
2 * mangling across binary formats.
8528d0b9e508 moving postprocess to ffmpeg/libavcodec
michaelni
parents:
diff changeset
3 * (c)2002 by Felix Buenemann <atmosfear at users.sourceforge.net>
8528d0b9e508 moving postprocess to ffmpeg/libavcodec
michaelni
parents:
diff changeset
4 * File licensed under the GPL, see http://www.fsf.org/ for more info.
8528d0b9e508 moving postprocess to ffmpeg/libavcodec
michaelni
parents:
diff changeset
5 */
8528d0b9e508 moving postprocess to ffmpeg/libavcodec
michaelni
parents:
diff changeset
6
8528d0b9e508 moving postprocess to ffmpeg/libavcodec
michaelni
parents:
diff changeset
7 #ifndef __MANGLE_H
8528d0b9e508 moving postprocess to ffmpeg/libavcodec
michaelni
parents:
diff changeset
8 #define __MANGLE_H
8528d0b9e508 moving postprocess to ffmpeg/libavcodec
michaelni
parents:
diff changeset
9
8528d0b9e508 moving postprocess to ffmpeg/libavcodec
michaelni
parents:
diff changeset
10 /* Feel free to add more to the list, eg. a.out IMO */
2391
336a239ad9a4 fixes for PIC code on x86-64 patch by (Drew Hess <drew.hess gmail com>)
michael
parents: 1161
diff changeset
11 /* Use rip-relative addressing if compiling PIC code on x86-64. */
1161
556b5d0b5228 mangle on mingw32 patch by ("Sascha Sommer" <saschasommer at freenet dot de>)
michaelni
parents: 1069
diff changeset
12 #if defined(__CYGWIN__) || defined(__MINGW32__) || defined(__OS2__) || \
1069
8528d0b9e508 moving postprocess to ffmpeg/libavcodec
michaelni
parents:
diff changeset
13 (defined(__OpenBSD__) && !defined(__ELF__))
2391
336a239ad9a4 fixes for PIC code on x86-64 patch by (Drew Hess <drew.hess gmail com>)
michael
parents: 1161
diff changeset
14 #if defined(ARCH_X86_64) && defined(PIC)
336a239ad9a4 fixes for PIC code on x86-64 patch by (Drew Hess <drew.hess gmail com>)
michael
parents: 1161
diff changeset
15 #define MANGLE(a) "_" #a"(%%rip)"
336a239ad9a4 fixes for PIC code on x86-64 patch by (Drew Hess <drew.hess gmail com>)
michael
parents: 1161
diff changeset
16 #else
1069
8528d0b9e508 moving postprocess to ffmpeg/libavcodec
michaelni
parents:
diff changeset
17 #define MANGLE(a) "_" #a
2391
336a239ad9a4 fixes for PIC code on x86-64 patch by (Drew Hess <drew.hess gmail com>)
michael
parents: 1161
diff changeset
18 #endif
336a239ad9a4 fixes for PIC code on x86-64 patch by (Drew Hess <drew.hess gmail com>)
michael
parents: 1161
diff changeset
19 #else
336a239ad9a4 fixes for PIC code on x86-64 patch by (Drew Hess <drew.hess gmail com>)
michael
parents: 1161
diff changeset
20 #if defined(ARCH_X86_64) && defined(PIC)
336a239ad9a4 fixes for PIC code on x86-64 patch by (Drew Hess <drew.hess gmail com>)
michael
parents: 1161
diff changeset
21 #define MANGLE(a) #a"(%%rip)"
3172
038e1b4f9afd Proper mangling information for symbols in OS X Mach-O shared objects.
diego
parents: 2391
diff changeset
22 #elif defined(CONFIG_DARWIN)
038e1b4f9afd Proper mangling information for symbols in OS X Mach-O shared objects.
diego
parents: 2391
diff changeset
23 #define MANGLE(a) "_" #a
1069
8528d0b9e508 moving postprocess to ffmpeg/libavcodec
michaelni
parents:
diff changeset
24 #else
8528d0b9e508 moving postprocess to ffmpeg/libavcodec
michaelni
parents:
diff changeset
25 #define MANGLE(a) #a
8528d0b9e508 moving postprocess to ffmpeg/libavcodec
michaelni
parents:
diff changeset
26 #endif
2391
336a239ad9a4 fixes for PIC code on x86-64 patch by (Drew Hess <drew.hess gmail com>)
michael
parents: 1161
diff changeset
27 #endif
1069
8528d0b9e508 moving postprocess to ffmpeg/libavcodec
michaelni
parents:
diff changeset
28
8528d0b9e508 moving postprocess to ffmpeg/libavcodec
michaelni
parents:
diff changeset
29 #endif /* !__MANGLE_H */
8528d0b9e508 moving postprocess to ffmpeg/libavcodec
michaelni
parents:
diff changeset
30