Some Fixes, compile fix in Linux. Comments, etc

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3777 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
Sonicadvance1 committed 2009-07-13 07:31:43 +00:00
1 parent 4cfcf9bdd5
commit e4a57202d2
5 files changed
+64 -7

No files matched your search

+3 -3
View File
@@ -38,11 +38,11 @@ namespace Common
{
inline void AtomicAdd(volatile u32& target, u32 value) {
__sync_add_and_fetch(target, value);
__sync_add_and_fetch(&target, value);
}
inline void AtomicIncrement(volatile u32& target) {
__sync_add_and_fetch(target, 1);
__sync_add_and_fetch(&target, 1);
}
inline u32 AtomicLoad(volatile u32& src) {
@@ -57,7 +57,7 @@ inline void AtomicStore(volatile u32& dest, u32 value) {
dest = value; // 32-bit writes are always atomic.
}
inline void AtomicStoreRelease(volatile u32& dest, u32 value) {
__sync_lock_test_and_set(dest, value);
__sync_lock_test_and_set(&dest, value);
}
}