What is Nostr?
shac ron ₪‎ /
npub1vmt…rx56
2024-08-31 13:43:56
in reply to nevent1q…xlmp

shac ron ₪‎ on Nostr: It is a compiler fence, which is what people actually mean when they use volatile. ...

It is a compiler fence, which is what people actually mean when they use volatile. Yes it restricts ordering somewhat in the code gen, but ultimately generates a plain load or store instruction.

On any sane architecture, atomic basic types are going to be aligned such that tearing is a non-issue. For types are bigger than the size your core can load or store atomically, I believe the only option is to cast away the _Atomic
Author Public Key
npub1vmtnnusyhm9gchr0w0m8p52w5mjv4kv4a7n5xqd9hhucqunjy8pq8arx56