Initial SDL Atomic int/ptr patch

http://www.landofbile.com/software/SDL_atomic.patch

I had this ready some time ago but forgot to submit it. It’s not ready
for all platforms but includes several GCC targets and Windows. I
wasn’t able to test them all so if someone could test out the non-x86
targets I’d appreciate it. It’s a bit of a pain to read because of all
the #ifdefs. I think the best way to fix that would be to have
directories for each platform with definitions in individual files…
but that requires more changes in the build system than I wanted to
do :slight_smile:

The MIPS code… I’m not 100% on. Works on my Linkstation 2… but
there are so many MIPS variations out there. Also the win32 code should
be checked out. From my understanding the prototype for
InterlockedCompareExchange changed from VC6 to 7. I’m not 100% I’m
using the right versions at the right time.

the platforms supported so far:
GNU i386
GNU x86 64
GNU sparc
GNU alpha
GNU powerpc
GNU IA64
GNU MIPS
GNU MIPS64
GNU M68K
GNU S390
WIN32

-Antonio

Anyone ever look at this?On Sat, 20 Jan 2007 12:22:34 -0500 Antonio SJ Musumeci <@Antonio_Musumeci> wrote:

http://www.landofbile.com/software/SDL_atomic.patch

I had this ready some time ago but forgot to submit it. It’s not ready
for all platforms but includes several GCC targets and Windows. I
wasn’t able to test them all so if someone could test out the non-x86
targets I’d appreciate it. It’s a bit of a pain to read because of all
the #ifdefs. I think the best way to fix that would be to have
directories for each platform with definitions in individual files…
but that requires more changes in the build system than I wanted to
do :slight_smile:

The MIPS code… I’m not 100% on. Works on my Linkstation 2… but
there are so many MIPS variations out there. Also the win32 code
should be checked out. From my understanding the prototype for
InterlockedCompareExchange changed from VC6 to 7. I’m not 100% I’m
using the right versions at the right time.

the platforms supported so far:
GNU i386
GNU x86 64
GNU sparc
GNU alpha
GNU powerpc
GNU IA64
GNU MIPS
GNU MIPS64
GNU M68K
GNU S390
WIN32

-Antonio


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

Anyone ever look at this?

I’m interested, and I’ll definitely take a look when I have time.

Thanks!
-Sam Lantinga, Lead Software Engineer, Blizzard Entertainment

Thank you. Unfortunately it’s been so long since I wrote it I don’t
remember all the issues it may have. The least it needs is more
platforms support.On Fri, 30 Mar 2007 13:44:01 -0700 Sam Lantinga wrote:

Anyone ever look at this?

I’m interested, and I’ll definitely take a look when I have time.

Thanks!
-Sam Lantinga, Lead Software Engineer, Blizzard Entertainment


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org