Code: Select all
extern SInt32 IncrementAtomic(SInt32 * value);
extern SInt32 DecrementAtomic(SInt32 * value);
extern SInt32 AddAtomic(SInt32 amount, SInt32 * value);
extern UInt32 BitAndAtomic(UInt32 mask, UInt32 * value);
extern UInt32 BitOrAtomic(UInt32 mask, UInt32 * value);
extern UInt32 BitXorAtomic(UInt32 mask, UInt32 * value);
phip wrote:What's the verdict on these functions? Probably not as fast as the roll-your-own versions, since they aren't inlined and would imply a dyld_stub call, right?
Return to “Article Discussion”
Users browsing this forum: No registered users and 1 guest