Changeset 19a8d2097287941bcdf89ae61e22aa77ee355f0c

Show
Ignore:
Timestamp:
07/30/10 20:09:19 (4 years ago)
Author:
Theo Schlossnagle <jesus@omniti.com>
git-committer:
Theo Schlossnagle <jesus@omniti.com> 1280520559 +0000
git-parent:

[fed0d5d2bff89cbba5ece81f815d8e9a51fd8560]

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

Backwards... I hate you Apple.

Files:

Legend:

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

    rb4b3415 r19a8d20  
    4949#define noit_atomic_cas64(ref,new,old) (OSAtomicCompareAndSwap64(old,new,ref) ? old : new) 
    5050#define noit_atomic_casptr(ref,new,old) (OSAtomicCompareAndSwapPtr(old,new,(void *)ref) ? old : new) 
    51 #define noit_atomic_add32(ref,diff) OSAtomicAdd32(ref,diff) 
    52 #define noit_atomic_add64(ref,diff) OSAtomicAdd64(ref,diff) 
    53 #define noit_atomic_sub32(ref,diff) OSAtomicAdd32(ref,0-(diff)
    54 #define noit_atomic_sub64(ref,diff) OSAtomicAdd64(ref,0-(diff)
     51#define noit_atomic_add32(ref,diff) OSAtomicAdd32(diff,ref) 
     52#define noit_atomic_add64(ref,diff) OSAtomicAdd64(diff,ref) 
     53#define noit_atomic_sub32(ref,diff) OSAtomicAdd32(0-(diff),ref
     54#define noit_atomic_sub64(ref,diff) OSAtomicAdd64(0-(diff),ree
    5555#define noit_atomic_inc32(ref) OSAtomicIncrement32(ref) 
    5656#define noit_atomic_inc64(ref) OSAtomicIncrement64(ref)