reimar
f19f762548
Simplify cpudetect OS-support detection code, e.g. using one mp_msg to print either yes or no instead of two.
...
Should not change code behaviour.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27637 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-09-18 15:30:23 +00:00
diego
fea35f288a
Remove pointless '#if 1 [...] #endif' around has_cpuid() function.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27491 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-08-29 17:44:51 +00:00
diego
5423c418c2
cosmetics: Remove useless parentheses from return statements.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26791 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-05-16 09:42:28 +00:00
diego
8c514af56c
Wrap HAVE_XXX macros with RUNTIME_CPUDETECT, because when RUNTIME_CPUDETECT is
...
enabled, checking HAVE_XXX and disabling that CPU feature is meaningless.
patch by KO Myung-Hun, komh chollian net
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26094 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-02-24 18:21:41 +00:00
diego
0044fb7a38
Enable SSE detection on OS/2.
...
patch by KO Myung-Hun, komh chollian net
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26093 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-02-24 18:09:28 +00:00
diego
b824af715e
cosmetics: Break one unreadable long line.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26092 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-02-24 18:04:34 +00:00
diego
4bf51158a9
Add #include <sys/sysctl.h> for Mac OS X, fixes the warning
...
cpudetect.c:344: warning: implicit declaration of function sysctlbyname
patch by Elias Pipping, elias pipping org
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26085 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-02-24 12:05:20 +00:00
diego
cb80e1a797
support for xtensa CPU architecture
...
patch by Dan Nicolaescu (dann ics.uci edu), Reimar and me
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25368 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-12-11 22:37:36 +00:00
diego
472727ba1f
Slightly simplify preprocessor conditionals.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25367 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-12-11 22:31:57 +00:00
diego
796a0db35c
Ahem, fix breakage of last commit: The AltiVec detection code has three
...
sections, namely OS X, AMIGAOS4 and the rest.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25366 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-12-11 22:29:22 +00:00
diego
75b15d9634
Remove redundant and obfuscating preprocessor conditional.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25358 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-12-11 20:30:30 +00:00
diego
a67cf40cfc
Replace SYS_DARWIN conditional by the more correct __APPLE__.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25357 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-12-11 20:27:13 +00:00
diego
2fd3289130
Fix warning:
...
cpudetect.c: In function 'check_os_katmai_support':
cpudetect.c:395: warning: unused variable 'saved_sigfpe'
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24684 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-10-01 22:48:39 +00:00
diego
b305934c76
Enable SSE on MinGW, many builds out there seem to use it without ill effect.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24662 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-29 19:48:45 +00:00
reimar
8351949b6f
sigill_handler_sse is not needed and can not compile on 64 bit systems
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24460 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-14 14:19:22 +00:00
reimar
2f5f5d3b4c
Do not check for X86_FXSR_MAGIC define, it is missing in newer
...
distribution/kernel headers.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24459 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-14 13:49:28 +00:00
reimar
62d005a974
Remove unused sigfpe handler
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24458 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-14 13:43:06 +00:00
reimar
38349bcac8
Remove test for SSE exception support that has been commented out since ages.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24457 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-14 13:25:20 +00:00
diego
d1f409719c
GNU/kFreeBSD support, closes Bugzilla #704 .
...
patch by Petr Salinger, Petr.Salinger seznam cz
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21866 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-01-10 14:56:23 +00:00
reimar
74a504f25b
ARCH_X86 simplifications
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20593 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-11-01 18:41:25 +00:00
nplourde
a99eefdfef
Detect sse/2 on intel mac, Valtteri Vuorikoski(vuori@sci.fi)
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20058 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-10-05 00:12:04 +00:00
reynaldo
5b4ec50d44
rm unnecesary void* casts - part 1
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18874 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-07-01 03:56:13 +00:00
gpoirier
91ca617cfd
Typo: use ptmpstr instead of tmpstr to strip leading spaces + add
...
comment
Patch by Zuxy Meng ##zuxy P meng AH gmail P com##
--Cette ligne, et les
suivantes ci-dessous, seront ignorées--
M cpudetect.c
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18820 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-06-25 17:37:58 +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
pacman
e4ecd258d5
add Amiga-style AltiVec detection, patch from andrea at amigasoft dot net
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17703 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-02-28 23:24:38 +00:00
rathann
e7db4ccf1a
Patch by Stefan Huehner / stefan % huehner ! org \
...
patch replaces '()' for the correct '(void)' in function
declarations/prototypes which have no parameters. The '()' syntax tell
thats there is a variable list of arguments, so that the compiler cannot
check this. The extra CFLAG '-Wstrict-declarations' shows those cases.
Comments about a similar patch applied to ffmpeg:
That in C++ these mean the same, but in ANSI C the semantics are
different; function() is an (obsolete) K&R C style forward declaration,
it basically means that the function can have any number and any types
of parameters, effectively completely preventing the compiler from doing
any sort of type checking. -- Erik Slagter
Defining functions with unspecified arguments is allowed but bad.
With arguments unspecified the compiler can't report an error/warning
if the function is called with incorrect arguments. -- Måns Rullgård
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17567 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-02-09 14:08:03 +00:00
reimar
efb84bce97
Do not show cache-line size message, I've never seen a case where it was useful
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16944 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-11-07 16:16:14 +00:00
gpoirier
ac9e6666a3
according to Intel/AMD official documentations, CPU family should be displayed as
...
the sum of CPUID's family field and extended family field when a CPU has a CPUID
family 0xF.
Patch by Zuxy <zuxy POIS meng AH gmail POIS com>
Original thread:
Date: Oct 2, 2005 11:08 AM
Subject: [MPlayer-dev-eng] [Patch] Correction of P4 family CPUs detection in cputable.h
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16663 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-10-04 21:06:07 +00:00
diego
8308e63eb1
DragonFly BSD support
...
patch by Joerg Sonnenberger <joerg - at - britannica - dot - bec - dot - de>
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15567 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-05-25 08:48:32 +00:00
reimar
46070615c3
ensure null-termination after snprintf
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14479 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-01-12 21:56:25 +00:00
aurel
2de16c0b07
assume OS support SSE on x86_64
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14456 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-01-10 18:33:51 +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
diego
4cba6fba71
Remove CPU speed detection since
...
- it is unreliable
- it adds a constant 0.1s to startup time
- it is hardly a feature for a movie player
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13629 b3059339-0415-0410-9bf9-f77b7e298cf2
2004-10-13 09:37:32 +00:00
faust3
d16ace11a2
disable buggy sse on mingw
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12614 b3059339-0415-0410-9bf9-f77b7e298cf2
2004-06-18 20:56:06 +00:00
alex
3dfa4b010c
SSE support under OpenBSD, patch by Bjorn Sandell
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12144 b3059339-0415-0410-9bf9-f77b7e298cf2
2004-04-06 17:08:02 +00:00
faust3
971bb1dd0f
reenable SSE support for mingw
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12088 b3059339-0415-0410-9bf9-f77b7e298cf2
2004-04-01 10:19:57 +00:00
gabucino
919589e13a
architecture type reporting for non-x86 CPUs (try 2, tested on x86 and x86-64)
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@11963 b3059339-0415-0410-9bf9-f77b7e298cf2
2004-02-16 23:44:05 +00:00
atmos4
29b5d5b8f5
more exact cpu mhz detect for fats cpus (remove rounding)
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10956 b3059339-0415-0410-9bf9-f77b7e298cf2
2003-09-28 01:45:54 +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
faust3
a79caf17d6
disable sse support for mingw because of missing memalign
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10824 b3059339-0415-0410-9bf9-f77b7e298cf2
2003-09-06 12:06:59 +00:00
faust3
fcc160e01c
SSE os support detection for windows
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10441 b3059339-0415-0410-9bf9-f77b7e298cf2
2003-07-19 12:25:18 +00:00
alex
0ee250f912
1l
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9325 b3059339-0415-0410-9bf9-f77b7e298cf2
2003-02-07 21:58:09 +00:00
arpi
54cbe5eec3
The two attached patches *should* allow for proper
...
compilation of the AltiVec stuff on both Darwin
and non-Darwin system. They've only been tested
for compilation on Debian using Debian's gcc-3.2.
Romain Dolbeau <dolbeau@irisa.fr>
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9123 b3059339-0415-0410-9bf9-f77b7e298cf2
2003-01-27 21:47:25 +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
arpi
38c4cdcfc5
Ok, here is a better patch, which even adds a fix to compile it on older
...
NetBSD systems, there was a ; missing.
patch by Bernd Ernesti <mplayer@lists.veego.de>
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8534 b3059339-0415-0410-9bf9-f77b7e298cf2
2002-12-23 01:24:42 +00:00
atmos4
bae716c763
Runtime SSE detection for NEtBSD, patch by Nick Hudson <skrll at netbsd.org>
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8402 b3059339-0415-0410-9bf9-f77b7e298cf2
2002-12-07 21:04:54 +00:00
arpi
f859d013a8
*HUGE* set of compiler warning fixes, unused variables removal
...
based on patch by Dominik Mierzejewski <dominik@rangers.eu.org>
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8124 b3059339-0415-0410-9bf9-f77b7e298cf2
2002-11-06 23:54:29 +00:00
arpi
de946003a5
more cpudetect cosmetics
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6136 b3059339-0415-0410-9bf9-f77b7e298cf2
2002-05-20 01:00:51 +00:00
arpi
77b430d1ad
cosmetics on CPU detection messages
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6135 b3059339-0415-0410-9bf9-f77b7e298cf2
2002-05-20 00:55:50 +00:00