Sam Lantinga
aef6fb230a
Fixed SSE4 detection, and split it into SSE 4.1 and 4.2
2011-02-11 23:02:35 -08:00
Sam Lantinga
a2cdcf5486
Happy 2011! :)
2011-02-11 22:37:15 -08:00
Sam Lantinga
2af371cc2e
Updated CPU detection code for SSE3 and SSE4 and removed obsolete 3DNow! and Altivec support.
2011-02-11 14:51:04 -08:00
Sam Lantinga
357519de5a
Added API function to get CPU cache line size.
2011-01-27 20:46:45 -08:00
Sam Lantinga
d6a6503537
Added cache line size info in SDL_cpuinfo.h
...
I also added an implementation to dynamically query it, but didn't expose it since most x86 CPUs have an L1 cache line size of 64 bytes.
2011-01-27 16:46:15 -08:00
Sam Lantinga
01fa14dc42
Include windows.h in a single point in the source, so we can be consistent about the definition of UNICODE and have core utility functions for Windows that all modules can share.
...
I think this also fixes the bug relating to non-latin characters in filenames, since UNICODE wasn't defined in SDL_rwops.c
2011-01-24 21:20:30 -08:00
Sam Lantinga
ec39fffe84
Fixed compiling on Windows Mobile SDK 5.0 with Visual Studio 2008
2011-01-24 15:46:11 -08:00
Sam Lantinga
08ad787807
Fixed bug #925
...
Changed "win32" to "windows"
2011-01-20 18:04:05 -08:00
Sam Lantinga
b90f3fea9c
Mostly cleaned up warnings with -Wmissing-prototypes
2010-06-26 08:56:48 -07:00
Sam Lantinga
7052036491
Fixed bug #926
...
Updated copyright to LGPL version 2.1 and year 2010
2010-01-24 21:10:53 +00:00
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