1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-27 17:42:17 +00:00
Commit Graph

29 Commits

Author SHA1 Message Date
wm4
16c6e1dee9 cpudetect: remove unused/forgotten crap 2012-08-01 23:49:06 +02:00
wm4
43da1e78c4 Rip out 3DNOW support
Ancient AMD specific enhancement to the MMX instruction set. Officually
discontinued by AMD.

Note that support for this was already disabled in the previous commit.
This commit removes the actual code.
2012-07-30 01:38:14 +02:00
wm4
74df1d8e05 Remove compile time/runtime CPU detection, and drop some platforms
mplayer had three ways of enabling CPU specific assembler routines:
a) Enable them at compile time; crash if the CPU can't handle it.
b) Enable them at compile time, but let the configure script detect
   your CPU. Your binary will only crash if you try to run it on a
   different system that has less features than yours.
   This was the default, I think.
c) Runtime detection.

The implementation of b) and c) suck. a) is not really feasible (it
sucks for users). Remove all code related to this, and use libav's CPU
detection instead. Now the configure script will always enable CPU
specific features, and disable them at runtime if libav reports them
not as available.

One implication is that now the compiler is always expected to handle
SSE (etc.) inline assembly at runtime, unless it's explicitly disabled.

Only checks for x86 CPU specific features are kept, the rest is either
unused or barely used.

Get rid of all the dump -mpcu, -march etc. flags. Trust the compiler
to select decent settings.

Get rid of support for the following operating systems:
- BSD/OS (some ancient BSD fork)
- QNX (don't care)
- BeOS (dead, Haiku support is still welcome)
- AIX (don't care)
- HP-UX (don't care)
- OS/2 (dead, actual support has been removed a while ago)

Remove the configure code for detecting the endianness. Instead, use
the standard header <endian.h>, which can be used if _GNU_SOURCE or
_BSD_SOURCE is defined. (Maybe these changes should have been in a
separate commit.)

Since this is a quite violent code removal orgy, and I'm testing only
on x86 32 bit Linux, expect regressions.
2012-07-30 01:37:28 +02:00
reimar
04ce30b2fd loader: Reuse do_cpuid from cpudetect.c in loader/win32.c
Also avoids several "used uninitialized" warnings.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31905 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-11-02 04:15:01 +02:00
Uoti Urpala
4c6e3ac01b Merge svn change r31134
Fix some search/replace errors introduced in the svn commit.
2010-05-07 22:03:48 +03:00
diego
a535f7bfca the great MPlayer tab removal: part II
some extra indentation fixes are put in as a bonus


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31134 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-05-03 23:34:38 +00:00
Uoti Urpala
12d3caebc7 Merge svn changes up to r30475 2010-03-09 19:18:43 +02:00
diego
99c1bbca2a Add license header to all top-level files missing them.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30471 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-01-30 23:24:23 +00:00
Uoti Urpala
d6c410b54c Replace libavutil internal header #includes with MPlayer copies
Change #include lines for libavutil/intreadwrite.h, libavutil/bswap.h
and libavutil/x86_cpu.h to use the MPlayer file under ffmpeg_files/
instead.
2009-07-26 06:16:43 +03:00
reimar
98c7abd005 Directly include libavutil/x86_cpu.h in cpudetect.h instead of duplicating it
incompletely.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29076 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-03-27 20:33:13 +00:00
diego
cb9716ac6e SSE3 support patch by Zhou Zongyi, zhouzongyi pset.suntec net
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28936 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-03-12 10:50:21 +00:00
diego
fdae4e0095 Add necessary header for ARCH_X86_64 preprocessor check.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28664 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-02-19 10:07:46 +00:00
reimar
cd1c4655b8 Fix first handful of #if vs. #ifdef for ARCH_, HAVE_SSE etc.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28323 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-01-16 08:43:05 +00:00
gpoirier
928e4433aa Add detection of x86 CPU features SSSE3 and SSE4a.
Patch by Zhou, Zongyi %zz65 A cornell P edu%
Original thread:
date: Wed, Nov 19, 2008 at 4:22 PM
subject: Re: [MPlayer-dev-eng] [PATCH] yadif SSE2/SSSE3 optimization


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27960 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-11-19 16:41:59 +00:00
diego
8efb2fa21c Add MPLAYER_ prefix to multiple inclusion guards.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26061 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-02-22 09:09:46 +00:00
diego
6bda8fe6ec Fix typo in multiple inclusion guard comment.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25558 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-12-31 11:51:54 +00:00
gpoirier
c9ad9700c3 Retrieve CPU built-in namestring, and if it exists, print it during cpu detection; t it doesn't exist, fallback to the cpu table. Patch by Zuxy Meng
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18539 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-05-17 21:10:11 +00:00
michael
496c4fa6a9 REGBP
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18392 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-05-06 01:53:07 +00:00
aurel
798d2d1337 adapting existing mmx/mmx2/sse/3dnow optimizations so they work on x86_64
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13721 b3059339-0415-0410-9bf9-f77b7e298cf2
2004-10-21 11:55:20 +00:00
atmos4
d6825d6349 cpuspeed detection for X86 TSC capable CPUs (also added TSC detection, should best be verified by some people with TSC/nonTSC capable CPUs)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10886 b3059339-0415-0410-9bf9-f77b7e298cf2
2003-09-19 23:52:41 +00:00
arpi
66e6173c0c AltiVec detection code ("borrowed" from FFmpeg and
libmpeg2) & enough code to enable the AltiVec IMDCT
    in liba52 and the DCT64 in mp3lib.
patch by Romain Dolbeau <dolbeau@irisa.fr>


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9004 b3059339-0415-0410-9bf9-f77b7e298cf2
2003-01-18 19:29:46 +00:00
arpi
3a250d3760 cpu cache line length detection
from mplayerxp (Nick Kurshev <nickols_k@mail.ru>)


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8861 b3059339-0415-0410-9bf9-f77b7e298cf2
2003-01-09 18:39:09 +00:00
alex
676d9cfebd added cpuStepping to CpuCaps struct (needed win32.c)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3404 b3059339-0415-0410-9bf9-f77b7e298cf2
2001-12-09 17:03:04 +00:00
michael
43e9762862 non x86 fix (otherwise we would need #ifdef ARCH_X86 around every if(gCpuCaps.has...))
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3147 b3059339-0415-0410-9bf9-f77b7e298cf2
2001-11-26 23:08:48 +00:00
pl
a46e600619 returns a malloc()'ed string instead of an auto char[]
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2304 b3059339-0415-0410-9bf9-f77b7e298cf2
2001-10-20 11:16:47 +00:00
atmos4
690490f7d0 Detect and show cpu name.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2302 b3059339-0415-0410-9bf9-f77b7e298cf2
2001-10-20 02:35:31 +00:00
arpi
637ead4353 fixed?
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2282 b3059339-0415-0410-9bf9-f77b7e298cf2
2001-10-19 13:09:26 +00:00
pontscho
f8ce675a2f amd fix
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2281 b3059339-0415-0410-9bf9-f77b7e298cf2
2001-10-19 13:01:31 +00:00
arpi
7564f37de2 cpu detect code by Eric Anholt <eanholt@gladstone.uoregon.edu>
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2269 b3059339-0415-0410-9bf9-f77b7e298cf2
2001-10-19 00:40:19 +00:00