Sam Lantinga
95dcfa4c28
Happy New Year!
2013-02-15 08:47:44 -08:00
Sam Lantinga
f380ecb137
Removed executable bit from source files
2012-09-27 14:35:28 -07:00
Sam Lantinga
9033bb050f
Make sure that we use consistent configuration options on platforms like Windows so that command line builds and IDE builds have ABI compatibility.
...
Make sure we don't clobber SDL_revision.h when building from Mercurial
--HG--
rename : include/SDL_config.h.in => include/SDL_config_generated.h.in
2012-01-14 13:21:19 -05:00
Sam Lantinga
028e5dcdbd
Happy New Year!
2011-12-31 09:28:07 -05:00
Ryan C. Gordon
3d70224c40
Check for __ARM_ARCH_5TEJ__ in spinlock atomics.
...
Fixes Bugzilla #1264 .
Thanks to Gueniffey for the patch!
2011-10-16 03:27:48 -04:00
Ryan C. Gordon
5a652760ab
Let iOS use OSAtomicCompareAndSwap32Barrier() if nothing else is available.
2011-10-16 03:02:46 -04:00
Ryan C. Gordon
82283b7279
Implemented x86 and x86-64 spinlock inline asm.
...
Favor it over Mac OS X API for Intel systems (but not GCC atomic intrinsics).
This might get us a little further on Cygwin builds, too.
2011-09-18 03:19:41 -04:00
Ryan C. Gordon
6fcfc35b50
Use an actual #error instead of a bogus symbol if there's no spinlock support.
2011-09-18 02:55:45 -04:00
Nathan Heisey
dfe639930e
Implemented pthread spinlocks.
2011-06-22 10:33:48 +00:00
Sam Lantinga
b0660ba5ff
SDL 1.3 is now under the zlib license.
2011-04-08 13:03:26 -07:00
Sam Lantinga
1cbbefce43
Fixed bug 1122 (spinlock fails to compile with -march=armv4t)
2011-02-16 17:17:21 -08:00
Sam Lantinga
f9a5f416fb
Frank Zago to SDL
...
On 02/12/2011 01:44 PM, Sam Lantinga wrote:
> BTW, you probably want to nuke the NDS renderer and just implement these three
> functions instead:
> int (*CreateWindowFramebuffer) (_THIS, SDL_Window * window, Uint32 *
> format, void ** pixels, int *pitch);
> int (*UpdateWindowFramebuffer) (_THIS, SDL_Window * window, int numrects,
> SDL_Rect * rects);
> void (*DestroyWindowFramebuffer) (_THIS, SDL_Window * window);
Patch attached. The renderer for the DS is not used anymore, but I left the
file in place if someone wants to finish it.
I've also added a README.ds and fixed the spinlocks.
2011-02-13 14:01:02 -08:00
Sam Lantinga
e5803d148c
Happy 2011! :)
2011-02-11 22:37:15 -08:00
Sam Lantinga
8f205278b1
It's now possible to disable the fast atomic operations, at a huge performance penalty.
2011-02-07 22:57:33 -08:00
Sam Lantinga
fc5dc0ddb2
More fixes for compilation on Visual Studio
2011-01-25 18:02:41 -08:00
Sam Lantinga
29e0bf97e0
Improvements based on feedback from Anthony Williams
2011-01-25 17:40:06 -08:00
Sam Lantinga
f98d804282
Only include windows.h on Windows. :)
2011-01-24 21:22:00 -08:00
Sam Lantinga
b4497865bd
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
--HG--
rename : src/SDL_android.cpp => src/core/android/SDL_android.cpp
rename : src/SDL_android.h => src/core/android/SDL_android.h
2011-01-24 21:20:30 -08:00
Sam Lantinga
10b8372bd3
Fixed compiling on Windows Mobile SDK 5.0 with Visual Studio 2008
2011-01-24 15:46:11 -08:00
Sam Lantinga
c4bf458e47
Fixed bug #1097
...
There are problems with including intrin.h in C linkage in C++ compilation,
and further conflicts between intrin.h and winnt.h on Visual Studio 2005.
2011-01-21 23:46:51 -08:00
Sam Lantinga
daecbfdc17
HAVE_GCC_ATOMICS covers the test and set
2011-01-21 21:45:55 -08:00
Sam Lantinga
2c31531800
Separated out the minimum functionality that we need from gcc for our spinlock fallback.
2011-01-21 21:42:04 -08:00
Sam Lantinga
5601ecaeae
Whoops, good catch from Greg Jandl
2011-01-18 22:10:37 -08:00
Sam Lantinga
cdb1bda300
Use compiler intrinsics on Windows
2011-01-17 14:05:43 -08:00
Sam Lantinga
b0e0f61c7e
Added native atomic operations for Windows, Mac OS X, and gcc compiler intrinsics.
...
Changed the CAS return value to bool, so it's efficient with OSAtomicCompareAndSwap32Barrier()
Added an atomic test adapted from code by Michael Davidsaver
2011-01-16 15:16:39 -08:00
Sam Lantinga
1bc8fe69ce
Updated the atomic API for better use cases
2011-01-15 12:41:59 -08:00