Sam Lantinga
8eaf7c78b9
Fixed bug #924
...
Only use sysconf if _SC_NPROCESSORS_ONLN is available. Fortunately the case for this was Mac OS X 10.4, which has sysctlbyname()
2010-01-06 04:33:31 +00:00
Sam Lantinga
be4c0844af
Implemented 64-bit version of cpuid code
2009-12-17 04:01:29 +00:00
Sam Lantinga
4a157f0629
Added support for querying the number of CPUs available on Linux. This also happens to work on Mac OS X.
2009-12-17 03:04:04 +00:00
Sam Lantinga
c7df2f4089
Fixed cpuid assembly to work on PIC code
2009-12-16 16:42:04 +00:00
Sam Lantinga
76f674f021
Implemented Windows version of SDL_GetCPUCount()
2009-12-16 08:17:05 +00:00
Sam Lantinga
dc1ed9e7ef
Added SDL_GetCPUCount() to see how many cores are available.
2009-12-16 06:53:53 +00:00
Sam Lantinga
f6828e88f9
Missing pop over a jump
2009-12-03 04:33:05 +00:00
Sam Lantinga
27e8049669
Reduced the push/pop sequence to a single pair, and ported this fix over to the other architectures.
2009-11-30 21:04:25 +00:00
Sam Lantinga
e989a1a23e
Fixed crash - need to save and restore rbx around cpuid, since the compiler may be assuming the stack pointer isn't being modified when filling in %0.
...
I did it around each call to cpuid which isn't strictly necessary, but is definitely future proof. :)
2009-11-30 19:52:34 +00:00
Sam Lantinga
481ee1bb45
cpuid doesn't actually change the flags register
2009-10-30 05:02:47 +00:00
Sam Lantinga
57ae4fced1
Fixed bug #734
...
Save and restore the PIC register %ebx/%rbx using push/pop instead of %edi/%rdi
2009-10-30 04:45:01 +00:00
Sam Lantinga
f8c7e7df22
Fixed 32-bit build
2009-09-26 21:39:56 +00:00
Sam Lantinga
8c5ed7b905
Fixed bug #734
...
Nicholas Phillips 2009-04-26 21:34:05 PDT
I am using x64 Linux (using Intel Core 2 DUO), and I have noticed that there is
an error in SDL_cpuinfo.c, function CPU_getCPUIDFeaturesExt for my platform.
2009-09-26 10:04:38 +00:00
Sam Lantinga
76d691c292
Added 64-bit architectures to the fat build script
2009-09-05 10:39:18 +00:00
Sam Lantinga
a2acb16266
Fixed some dependency issues with SDL_revision.h
2009-01-04 05:41:52 +00:00
Sam Lantinga
d426540e62
Fixed CPU feature detection on x86_64 platform
...
(registers were being corrupted, causing crashes)
2008-12-24 13:13:38 +00:00
Sam Lantinga
befb0f7f42
Updated copyright date
2008-12-08 00:27:32 +00:00
Sam Lantinga
6bc598ea61
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
2006-07-10 21:04:37 +00:00
Sam Lantinga
df51b8dd73
I think this fixes bug #244
2006-06-20 05:35:44 +00:00
Sam Lantinga
e1ae9a0b81
Fixed bug #175
...
Removed obsolete .cvsignore files... whee!
2006-03-23 21:39:58 +00:00
Sam Lantinga
e7b76ca5dd
Don't detect Altivec on MacOS X Intel
2006-03-22 22:29:44 +00:00
Sam Lantinga
887d7dce86
Cleaning up warnings on MacOS X
2006-03-09 06:33:21 +00:00
Sam Lantinga
aaf71291d0
Updated OS/2 build, yay!
2006-02-26 19:30:21 +00:00
Sam Lantinga
911e5db87e
*** empty log message ***
2006-02-24 10:23:49 +00:00
Sam Lantinga
190b425364
Use consistent identifiers for the various platforms we support.
...
Make sure every source file includes SDL_config.h, so the proper system
headers are chosen.
2006-02-21 08:46:50 +00:00
Sam Lantinga
f05187e232
New configure-based build system. Still work in progress, but much improved
2006-02-16 10:11:48 +00:00
Sam Lantinga
808a16717c
Updated copyright information and removed rcs id lines (problematic in branch merges)
...
I batch edited these files, so please let me know if I've accidentally removed anybody's
credit here.
2006-02-01 06:32:25 +00:00
Ryan C. Gordon
f7cdaa4339
Patch from Michael Bonfils to add CPUID support for x86 Solaris.
2006-01-05 08:17:35 +00:00
Sam Lantinga
fef1ed5f5d
Fixed gcc 4 warnings
2005-12-08 14:48:21 +00:00
Ryan C. Gordon
406ef7dae9
OS/2 port!
...
This was mostly, if not entirely, written by "Doodle" and "Caetano":
doodle@scenergy.dfmk.hu
daniel@caetano.eng.br
--ryan.
2005-11-23 07:29:56 +00:00
Ryan C. Gordon
1153e32122
Updates to PocketPC (WinCE) support, thanks to Dmitry Yakimov at
...
activekitten.com.
2005-09-29 09:43:00 +00:00
Sam Lantinga
faa0e1d28b
Date: Mon, 10 May 2004 10:17:46 -0400
...
From: Mike Frysinger
Subject: Re: [SDL] gcc-3.4.0 / PIC fix
here's a combined patch (yours and the one i mentioned earlier) that i tested
with gcc-3.4.0 and gcc-3.3.3
2004-05-16 17:19:48 +00:00
Sam Lantinga
6f9b06c0bb
Date: Tue, 30 Mar 2004 18:18:13 -0600
...
From: Tyler Montbriand
Subject: [SDL] Detecting Opteron CPU features
I can now get SDL_cpuinfo.c to detect the AMD Opteron's RDTSC, MMX, MMXEXT,
3DNOW, 3DNOWEXT, SSE, and SSE2 instruction set extensions under Linux. It
took one #ifdef'ed block of new asm code to account for the 64-bit flags
register, but the other two blocks worked fine without modification, just
needed to modify the #ifdef's a bit.
2004-04-11 19:49:34 +00:00
Sam Lantinga
5d51c784d3
*** empty log message ***
2004-02-10 15:31:35 +00:00
Sam Lantinga
4e8eff824f
*** empty log message ***
2004-01-31 06:49:18 +00:00
Sam Lantinga
7c53445375
Check for altivec assembly support before trying to use it. :)
2004-01-29 16:15:12 +00:00
Sam Lantinga
9aa13dea7e
Altivec detection on non-MacOS X systems
2004-01-29 05:22:23 +00:00
Sam Lantinga
4e8ab456b0
Date: Sat, 24 Jan 2004 14:49:58 +0100
...
From: Stephane Marchesin
Subject: Re: [SDL] 3DNow! detection on a P4 system
Well... I found another bug : 3dnow was detected on P2/P3 cpus. So I
took one more look at the code and found a mistake in
CPU_getCPUIDFeaturesExt :
The condition for having extended cpuinfo is that when we query extended
cpuinfo we get a result >= 0x80000001. So we must exit if eax < 0x80000001.
The attached patch does that.
2004-01-24 15:55:00 +00:00
Sam Lantinga
972de8363f
*** empty log message ***
2004-01-24 05:57:56 +00:00
Sam Lantinga
1ac8626346
Fixed bugs in CPU feature detection and added extended feature detection
2004-01-24 05:47:19 +00:00
Sam Lantinga
d5ec6433eb
*** empty log message ***
2004-01-17 20:37:06 +00:00
Sam Lantinga
b01a5e306e
Date: Tue, 6 Jan 2004 12:42:19 +0100
...
From: Max Horn
Subject: SDL_HasAltiVec; BUGS file
the attached patch adds SDL_HasAltiVec to SDL CVS. Note that at this
point, this only works on MacOSX (and maybe darwin). I don't know how
to properly add a test for e.g. Linux/PPC at this point. I found an
email which might help in doing so:
http://zebra.fh-weingarten.de/~maxi/html/mplayer-dev-eng/2003-01msg00783.html
However, since I have no way to test on a non-OSX PowerPC system, I am
not comfortable blindly adding such code... I just hope that if
somebody from the Linux/PPC (or FreeBSD/PPC, or whatever) community
notices this, they'll jump up and provide a patch for us ;-)
2004-01-06 17:18:38 +00:00
Sam Lantinga
32719e7429
Updated copyright information for 2004 (Happy New Year!)
2004-01-04 16:49:27 +00:00
Sam Lantinga
a729f00bde
Updated Visual C++ support
2003-11-24 19:58:29 +00:00
Sam Lantinga
ba60f47e1c
*** empty log message ***
2003-11-24 09:30:40 +00:00
Sam Lantinga
37366af6f8
Check for CPUID before checking for 3DNow!
2003-11-24 09:30:14 +00:00
Sam Lantinga
4f535a0ef2
Greatly simplified the SDL CPU info code
2003-11-24 09:16:52 +00:00
Sam Lantinga
459ca6f009
Fixed building cpuinfo under mingw32
2003-11-19 08:03:10 +00:00
Sam Lantinga
7fe4f4e884
Actually hook the cpuinfo module into the library. :)
2003-11-18 02:16:57 +00:00
Sam Lantinga
9981325fda
Added SDL_HasMMX(), SDL_Has3DNow(), SDL_HasSSE() in SDL_cpuinfo.h
2003-11-18 01:27:06 +00:00