summaryrefslogtreecommitdiffstats
path: root/cpudetect.h
Commit message (Collapse)AuthorAgeFilesLines
* cpudetect: remove unused/forgotten crapwm42012-08-011-13/+0
|
* Rip out 3DNOW supportwm42012-07-301-2/+0
| | | | | | | | 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.
* Remove compile time/runtime CPU detection, and drop some platformswm42012-07-301-14/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* loader: Reuse do_cpuid from cpudetect.c in loader/win32.creimar2010-11-021-0/+2
| | | | | | Also avoids several "used uninitialized" warnings. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31905 b3059339-0415-0410-9bf9-f77b7e298cf2
* Merge svn change r31134Uoti Urpala2010-05-071-19/+19
|\ | | | | | | Fix some search/replace errors introduced in the svn commit.
| * the great MPlayer tab removal: part IIdiego2010-05-031-19/+19
| | | | | | | | | | | | | | 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
* | Merge svn changes up to r30475Uoti Urpala2010-03-091-0/+18
|\|
| * Add license header to all top-level files missing them.diego2010-01-301-0/+18
| | | | | | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30471 b3059339-0415-0410-9bf9-f77b7e298cf2
* | Replace libavutil internal header #includes with MPlayer copiesUoti Urpala2009-07-261-1/+1
|/ | | | | | Change #include lines for libavutil/intreadwrite.h, libavutil/bswap.h and libavutil/x86_cpu.h to use the MPlayer file under ffmpeg_files/ instead.
* Directly include libavutil/x86_cpu.h in cpudetect.h instead of duplicating itreimar2009-03-271-27/+1
| | | | | | | incompletely. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29076 b3059339-0415-0410-9bf9-f77b7e298cf2
* SSE3 support patch by Zhou Zongyi, zhouzongyi pset.suntec netdiego2009-03-121-0/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28936 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add necessary header for ARCH_X86_64 preprocessor check.diego2009-02-191-0/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28664 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix first handful of #if vs. #ifdef for ARCH_, HAVE_SSE etc.reimar2009-01-161-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28323 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add detection of x86 CPU features SSSE3 and SSE4a.gpoirier2008-11-191-0/+2
| | | | | | | | | | 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
* Add MPLAYER_ prefix to multiple inclusion guards.diego2008-02-221-3/+3
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26061 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix typo in multiple inclusion guard comment.diego2007-12-311-2/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25558 b3059339-0415-0410-9bf9-f77b7e298cf2
* Retrieve CPU built-in namestring, and if it exists, print it during cpu ↵gpoirier2006-05-171-0/+1
| | | | | | 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
* REGBPmichael2006-05-061-0/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18392 b3059339-0415-0410-9bf9-f77b7e298cf2
* adapting existing mmx/mmx2/sse/3dnow optimizations so they work on x86_64aurel2004-10-211-0/+26
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13721 b3059339-0415-0410-9bf9-f77b7e298cf2
* cpuspeed detection for X86 TSC capable CPUs (also added TSC detection, ↵atmos42003-09-191-0/+1
| | | | | | 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
* AltiVec detection code ("borrowed" from FFmpeg andarpi2003-01-181-0/+1
| | | | | | | | | 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
* cpu cache line length detectionarpi2003-01-091-0/+1
| | | | | | | from mplayerxp (Nick Kurshev <nickols_k@mail.ru>) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8861 b3059339-0415-0410-9bf9-f77b7e298cf2
* added cpuStepping to CpuCaps struct (needed win32.c)alex2001-12-091-0/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3404 b3059339-0415-0410-9bf9-f77b7e298cf2
* non x86 fix (otherwise we would need #ifdef ARCH_X86 around every ↵michael2001-11-261-2/+4
| | | | | | if(gCpuCaps.has...)) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3147 b3059339-0415-0410-9bf9-f77b7e298cf2
* returns a malloc()'ed string instead of an auto char[]pl2001-10-201-0/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2304 b3059339-0415-0410-9bf9-f77b7e298cf2
* Detect and show cpu name.atmos42001-10-201-1/+3
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2302 b3059339-0415-0410-9bf9-f77b7e298cf2
* fixed?arpi2001-10-191-4/+4
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2282 b3059339-0415-0410-9bf9-f77b7e298cf2
* amd fixpontscho2001-10-191-0/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2281 b3059339-0415-0410-9bf9-f77b7e298cf2
* cpu detect code by Eric Anholt <eanholt@gladstone.uoregon.edu>arpi2001-10-191-0/+21
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2269 b3059339-0415-0410-9bf9-f77b7e298cf2