X-Git-Url: https://git.saurik.com/apple/libc.git/blobdiff_plain/1f2f436a38f7ae2d39a943ad2898d8fed4ed2e58..065eae9f38780a3602538caa52399f41f061a88e:/include/libkern/OSAtomic.h diff --git a/include/libkern/OSAtomic.h b/include/libkern/OSAtomic.h index 6a62bd3..7cb7d63 100644 --- a/include/libkern/OSAtomic.h +++ b/include/libkern/OSAtomic.h @@ -136,8 +136,6 @@ int32_t OSAtomicDecrement32Barrier( volatile int32_t *__theValue ) { return OSAtomicAdd32Barrier( -1, __theValue); } -#if defined(__ppc64__) || defined(__i386__) || defined(__x86_64__) || defined(__arm__) - /*! @abstract Atomically adds two 64-bit values. @discussion This function adds the value given by __theAmount to the @@ -198,9 +196,6 @@ int64_t OSAtomicDecrement64Barrier( volatile int64_t *__theValue ) { return OSAtomicAdd64Barrier( -1, __theValue); } -#endif /* defined(__ppc64__) || defined(__i386__) || defined(__x86_64__) || defined(__arm__) */ - - /*! @group Boolean functions (AND, OR, XOR) * * @discussion Functions in this group come in four variants for each operation: @@ -470,8 +465,6 @@ bool OSAtomicCompareAndSwapLong( long __oldValue, long __newValue, volatile long bool OSAtomicCompareAndSwapLongBarrier( long __oldValue, long __newValue, volatile long *__theValue ) __OSX_AVAILABLE_STARTING(__MAC_10_5, __IPHONE_2_0); -#if defined(__ppc64__) || defined(__i386__) || defined(__x86_64__) || defined(__arm__) - /*! @abstract Compare and swap for uint64_t values. @discussion This function compares the value in __oldValue to the value @@ -496,8 +489,6 @@ bool OSAtomicCompareAndSwap64( int64_t __oldValue, int64_t __newValue, volati */ bool OSAtomicCompareAndSwap64Barrier( int64_t __oldValue, int64_t __newValue, volatile int64_t *__theValue ) __OSX_AVAILABLE_STARTING(__MAC_10_4, __IPHONE_3_2); -#endif /* defined(__ppc64__) || defined(__i386__) || defined(__x86_64__) || defined(__arm__) */ - /* Test and set. They return the original value of the bit, and operate on bit (0x80>>(n&7)) * in byte ((char*)theAddress + (n>>3)).