> On Mar 11, 2015, at 3:26 AM, Jonas Maebe <[email protected]> wrote:
> 
> The compiler will, under normal circumstances, never by itself emit an atomic 
> 64 bit load. My guess is that Jens is passing the address of that field to a 
> function that is hardcoded (possibly using inline assembly) to perform a 64 
> bit atomic load.

The library I’m using is calling the (intrinsic) function 
__sync_add_and_fetch().

We worked around it by using an __attribute to force 8-byte alignment for that 
struct field.

—Jens
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/xcode-users/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to