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
zuxy
6b7aa125cc
Get rid of the outdated and unmaintained CPU codename table.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28704 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-02-23 03:35:07 +00:00
diego
be8c67909b
Convert HAVE_MALLOC_H into a 0/1 definition, fixes the warning:
...
mem.c:32:5: warning: "HAVE_MALLOC_H" is not defined
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28629 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-02-17 11:16:19 +00:00
diego
4f4c060802
Print information about detected CPU in verbose mode only.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28493 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-02-09 00:29:26 +00:00
diego
f64d639d2b
Use OS preprocessor checks with '#if defined()' consistently.
...
Avoids undefined preprocessor directives warnings.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28399 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-01-30 23:29:39 +00:00
diego
5afe13e12a
Replace another bunch of '#if HAVE_FOO' preprocessor checks by 'if (HAVE_FOO)'.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28377 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-01-26 14:36:31 +00:00
diego
eb4a4604c0
HAVE_3DNOW --> HAVE_AMD3DNOW
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28370 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-01-26 09:29:53 +00:00
diego
401ea8e1db
HAVE_3DNOWEX --> HAVE_3DNOWEXT
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28361 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-01-25 21:03:02 +00:00
gpoirier
1e03072359
fix wrong #ifdef/#ifndef -> #if conversion in r28323
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28332 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-01-16 12:23:52 +00:00
reimar
17923f688b
Fix a wrongly converted !defined(ARCH_X86_64)
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28330 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-01-16 09:44:36 +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
diego
1279c23834
one more ARCH_ARMV4L --> ARCH_ARM, patch by Guillaume Lecerf, foxcore gmail com
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28320 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-01-16 01:11:16 +00:00
diego
ce7fc9babc
Set and use only ARCH_PPC, not also ARCH_POWERPC.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28196 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-12-27 12:00:11 +00:00
zuxy
54c23a5806
Correct detection of SSSE3 and SSE4a feature bits.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28049 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-11-30 09:17:21 +00:00
cehoyos
e3bf64337e
Replace pushf/popf by explicit pushfl/popfl (32 bit) or pushfq/popfq
...
(x86_64), to fix generated code on ICC 11.0.
Original FFmpeg patch by Reimar.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28037 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-11-25 18:36:50 +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
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
4d644f513c
Replace preprocessor check for WIN32 with checks for __MINGW32__ and __CYGWIN__.
...
This avoids a pointless indirection that only obscures what is really done.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27761 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-10-13 16:23:55 +00:00
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