Commit Graph

241 Commits

Author SHA1 Message Date
reimar 93d598c7b2 Lots and lots of #ifdef ARCH_... -> #if ARCH_...
and #ifdef HAVE_MMX etc -> #if HAVE_MMX.
There might be still more that need to be fixed.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28325 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-01-16 09:21:21 +00:00
diego 824abb5a65 Add missing 'void' keyword to parameterless function declarations.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28267 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-01-05 14:48:03 +00:00
reimar 18100af70f Consistently include config.h before mangle.h, fixes possible compilation
issues due to r28151 (using EXTERN_PREFIX).


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28152 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-12-15 16:13:41 +00:00
diego 094f2ca895 Add missing 'void' to parameterless function declaration.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28129 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-12-11 21:45:11 +00:00
diego 0864f92e7a Get rid of pointless 'extern' keywords.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28085 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-12-03 23:01:03 +00:00
diego 26b29f4f2d Replace all occurrences of '__volatile__' and '__volatile' by plain 'volatile'.
We were using an inconsistent mix of the three variants and 'volatile' should
be the most correct and portable variant.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27791 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-10-16 20:17:56 +00:00
diego 6b52a2e974 Change all occurrences of asm and __asm to __asm__, same as was done for FFmpeg.
Neither variant is valid C99 syntax, but __asm__ is the most portable variant.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27788 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-10-16 18:59:27 +00:00
diego 4b141479da Start unifying names of internal preprocessor directives.
Replace all USE_ prefixes by CONFIG_ prefixes to indicate
options which are configurable.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27373 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-07-30 12:01:30 +00:00
diego d1dcbd2f87 Remove AltiVec vector declaration compiler compatibility macros.
The original problem was that FSF and Apple gcc used a different syntax
for vector declarations, i.e. {} vs. (). Nowadays Apple gcc versions support
the standard {} syntax and versions that support {} are available on all
relevant Mac OS X versions. Thus the greater compatibility is no longer
worth cluttering the code with macros.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27350 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-07-26 12:26:04 +00:00
diego c6fe9d1af4 Check for HAVE_ALTIVEC_VECTOR_BRACES instead of __APPLE_CC__.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26927 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-05-30 12:05:24 +00:00
diego ae09115f2b Merge mp3lib/Makefile into top-level Makefile.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26555 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-04-27 22:53:18 +00:00
diego 59f2911c3e Revert accidentally committed changes.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26540 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-04-25 17:07:22 +00:00
diego ffed0ab3d2 Only add loader to parts if WIN32DLL is enabled.
Plus, some unrelated changes to mp3lib/Makefile committed by accident.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26539 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-04-25 16:58:31 +00:00
diego fb145ef6bc Only compile decode_i586.c on x86_32.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26537 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-04-25 16:51:58 +00:00
diego e58ca8c5da Remove useless comments with compilation commands.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26536 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-04-25 08:39:03 +00:00
diego ba6cc3387e Fix test program linking.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26535 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-04-25 08:37:47 +00:00
diego ef59dbd347 Add return statement, fixes the warning:
test.c:75: warning: control reaches end of non-void function


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26534 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-04-25 08:34:26 +00:00
diego 8aa012384d Remove redundant declaration, fixes the warning:
test.c:15: warning: redundant redeclaration of 'gCpuCaps'
../cpudetect.h:53: warning: previous declaration of 'gCpuCaps' was here


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26533 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-04-25 08:33:43 +00:00
diego c41f3b9244 Add return statement, fixes the warning:
test2.c:72: warning: control reaches end of non-void function


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26532 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-04-25 08:32:26 +00:00
diego d0e5a5224b Remove unused variable.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26531 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-04-25 08:30:43 +00:00
diego b8d8895381 Add missing #include, fixes the warning:
test2.c:65: warning: implicit declaration of function 'memcpy'


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26530 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-04-25 08:30:12 +00:00
diego 3b68802ccc Take name of getch file to link against from config.mak.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26529 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-04-25 08:28:33 +00:00
diego 9551fc7e63 Expand conditional addition of elements to variables with a form that permits
using two conditions. This allows getting rid of some ifeqs in Makefiles.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26516 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-04-24 15:32:44 +00:00
diego 916058bd22 Use directory name as library name template.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26498 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-04-22 21:51:41 +00:00
diego 37ea342f85 #include config.h before all other headers.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26235 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-03-14 16:46:13 +00:00
diego dd7c4bc268 Refactor AltiVec macros as done for FFmpeg.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26028 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-02-18 23:33:14 +00:00
reimar af86efaee0 Always use inline instead of _inline, the former is supported by all
compilers we care about, while e.g. ICC does not support the later.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25876 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-01-27 11:28:13 +00:00
uau b5aa5692cd Remove unnecessary <signal.h> includes
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25654 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-01-09 01:17:49 +00:00
diego df7795b63a cosmetics: Remove ugly and inconsistent uppercasing from filenames.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25378 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-12-12 08:50:54 +00:00
diego 946f71f3aa cosmetics: Move public function declarations together.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25377 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-12-12 08:45:05 +00:00
diego c927397b78 Add missing declaration for dct64_altivec, fixes the warning:
In file included from layer3.c:1171,
                 from sr1.c:391:
decod386.c: In function 'synth_1to1':
decod386.c:145: warning: implicit declaration of function 'dct64_altivec'


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25376 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-12-12 08:29:55 +00:00
diego d1198fab82 Add missing #include <stdio.h>, fixes the warning:
dct64_altivec.c: In function 'dct64_altivec':
dct64_altivec.c:74: warning: implicit declaration of function 'printf'
dct64_altivec.c:74: warning: incompatible implicit declaration of built-in function 'printf'


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25369 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-12-11 23:25:36 +00:00
diego 24af96f8cc There is a check for altivec.h in configure so use the preprocessor directive
set by configure instead of an OS-specific directive when #including altivec.h.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25356 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-12-11 20:16:00 +00:00
diego 17981e0ab6 Replace SYS_DARWIN conditional directive around gcc macros by __APPLE_CC__.
The macro definition depends on compiler capabilities, not OS features.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25355 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-12-11 20:07:18 +00:00
diego 0febd8cf0f Identifiers starting with __ are reserved for the system.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25353 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-12-11 19:54:35 +00:00
diego 2912d9ee57 Remove pointless HAVE_ALTIVEC around the whole file, it is only compiled when
HAVE_ALTIVEC is set anyway.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25352 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-12-11 19:52:17 +00:00
diego 825bfaf480 Fix warning:
In file included from layer3.c:1171,
                 from sr1.c:391:
decod386.c:106: warning: redundant redeclaration of 'synth_1to1_MMX'
mpg123.h:120: warning: previous declaration of 'synth_1to1_MMX' was here


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24193 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-08-25 17:05:02 +00:00
diego 97369c5e09 Get rid of duplicate processor feature variables.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23684 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-06-27 23:11:21 +00:00
reimar 1064982ff8 Follow ffmpeg TARGET_ARCH_* -> ARCH_* change.
Feel free to revert if you do not like it, but I want to get MPlayer to compile again.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23563 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-06-16 15:24:39 +00:00
zuxy dd053ddd67 Enable SIMD optmizations for mp3lib on AMD64
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23515 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-06-08 14:38:25 +00:00
zuxy 1c757aef17 Change some static temporary vars to automatic ones because mingw32 binutils
couldn't align them properly. Also 1% faster decode.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23485 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-06-06 05:16:08 +00:00
zuxy 739f79a5ff Align output pointer so that we can use movaps instead of movups in dct64_sse;
1.5% faster decode.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23484 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-06-06 05:13:13 +00:00
reimar 6a09e8e2ed Replace implicit use of fast_memcpy via macro by explicit use to allow
for future optimization.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23475 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-06-05 14:27:54 +00:00
zuxy 48f565b5f5 Change '%ld' to '%d' to remove warnings introduced by r23452
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23460 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-06-04 09:20:00 +00:00
zuxy 08301d0056 Correct dct64 functions' declarations
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23459 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-06-04 03:05:16 +00:00
zuxy 79225d26ad Remove non-existing make_decode_tables_MMX()
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23453 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-06-02 16:47:10 +00:00
zuxy a9df2bb148 Use int and uint32_t instead of long and unsigned long, when appropriate.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23452 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-06-02 16:25:18 +00:00
zuxy b4cf5f855c Record what was produced by make_decode_table_MMX() and used that data to
initialize mp3lib_decwins directly, then remove call to
make_decode_table_MMX() and tabinit_MMX.c itself.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23383 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-05-25 02:52:35 +00:00
zuxy 7792bf8c1f Remove hardcoded registers
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23378 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-05-23 15:31:37 +00:00
zuxy c31cbc62df Replace hardcoded 32-bit leal with equivalent add/sub so pointer arithmetic will be 64-bit under AMD64
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23376 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-05-22 14:00:39 +00:00