Mercurial > libavcodec.hg
annotate libpostproc/mangle.h @ 2734:aeea63c97878 libavcodec
Better ARM support for mplayer/ffmpeg, ported from atty fork
while playing with some new hardware, I found it's running a forked mplayer
-- and it looks like they're following the GPL.
The maintainer's page is here: http://atty.jp/?Zaurus/mplayer
Unfortunately it's mostly in Japanese, so it's hard to figure out any
details.
Their code looks quite interesting (at least to those of us w/ ARM CPUs).
The patches I've attached are the patches from atty.jp with a couple of
modifications by myself:
- ported to current CVS
- reverted their change of removing SNOW support from ffmpeg
- cleaned up their bswap mess
- removed DOS-style linebreaks from various files
patch by (Bernhard Rosenkraenzer: bero, arklinux org)
| author | michael |
|---|---|
| date | Thu, 26 May 2005 14:32:46 +0000 |
| parents | 336a239ad9a4 |
| children | 038e1b4f9afd |
| rev | line source |
|---|---|
| 1069 | 1 /* mangle.h - This file has some CPP macros to deal with different symbol |
| 2 * mangling across binary formats. | |
| 3 * (c)2002 by Felix Buenemann <atmosfear at users.sourceforge.net> | |
| 4 * File licensed under the GPL, see http://www.fsf.org/ for more info. | |
| 5 */ | |
| 6 | |
| 7 #ifndef __MANGLE_H | |
| 8 #define __MANGLE_H | |
| 9 | |
| 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 | 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 | 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)" |
| 1069 | 22 #else |
| 23 #define MANGLE(a) #a | |
| 24 #endif | |
|
2391
336a239ad9a4
fixes for PIC code on x86-64 patch by (Drew Hess <drew.hess gmail com>)
michael
parents:
1161
diff
changeset
|
25 #endif |
| 1069 | 26 |
| 27 #endif /* !__MANGLE_H */ | |
| 28 |
