Changeset 6a58044fb9807d56307763ab94fb358372e56a42

Show
Ignore:
Timestamp:
02/18/08 14:41:51 (10 years ago)
Author:
Theo Schlossnagle <jesus@omniti.com>
git-committer:
Theo Schlossnagle <jesus@omniti.com> 1203345711 +0000
git-parent:

[aa127f7cf6fbd77f1e7ad5183b39cdba4ddd1ba0]

git-author:
Theo Schlossnagle <jesus@omniti.com> 1203345711 +0000
Message:

Mac has args all mixed up

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/utils/noit_atomic.h

    r919b09a r6a58044  
    1919#include <libkern/OSAtomic.h> 
    2020typedef OSSpinLock noit_spinlock_t; 
    21 #define noit_atomic_cas32 OSAtomicCompareAndSwap32 
    22 #define noit_atomic_cas64 OSAtomicCompareAndSwap64 
    23 #define noit_atomic_inc32 OSAtomicIncrement32 
    24 #define noit_atomic_inc64 OSAtomicIncrement64 
    25 #define noit_atomic_dec32 OSAtomicDecrement32 
    26 #define noit_atomic_dec64 OSAtomicDecrement64 
     21#define noit_atomic_cas32(ref,new,old) OSAtomicCompareAndSwap32(old,new,ref) 
     22#define noit_atomic_cas64(ref,new,old) OSAtomicCompareAndSwap64(old,new,ref) 
     23#define noit_atomic_inc32(ref) OSAtomicIncrement32(ref) 
     24#define noit_atomic_inc64(ref) OSAtomicIncrement64(ref) 
     25#define noit_atomic_dec32(ref) OSAtomicDecrement32(ref) 
     26#define noit_atomic_dec64(ref) OSAtomicDecrement64(ref) 
    2727#define noit_spinlock_lock OSSpinLockLock 
    2828#define noit_spinlock_unlock OSSpinLockUnlock