Changeset df5a7195a9a2cb911e0c6f8d043a9cf145753b66

Show
Ignore:
Timestamp:
05/04/09 04:18:37 (5 years ago)
Author:
Theo Schlossnagle <jesus@omniti.com>
git-committer:
Theo Schlossnagle <jesus@omniti.com> 1241410717 +0000
git-parent:

[a7ed2df4af73c424e86f7d049a4b2e76a629b2f2]

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

add casptr for Mac OS X

Files:

Legend:

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

    r1712d20 rdf5a719  
    2121#define noit_atomic_cas32(ref,new,old) (OSAtomicCompareAndSwap32(old,new,ref) ? old : new) 
    2222#define noit_atomic_cas64(ref,new,old) (OSAtomicCompareAndSwap64(old,new,ref) ? old : new) 
     23#define noit_atomic_casptr(ref,new,old) (OSAtomicCompareAndSwapPtr(old,new,ref) ? old : new) 
    2324#define noit_atomic_add32(ref,diff) OSAtomicAdd32(ref,diff) 
    2425#define noit_atomic_add64(ref,diff) OSAtomicAdd64(ref,diff)