Re: Should atomic_xxx() functions reject not-_Atomic() arguments ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, 7 Mar 2020 at 16:01, Chris Hall wrote:
> Of course, for all the machines I know well enough I can say that there
> is no difference between, inter alia, uint64_t and _Atomic(uint64_t).

For some types on some targets the atomic version has stricter
alignment requirements. For example, it might be fine to access an int
that is only byte-aligned, but for the atomic instructions to work it
might need to be 4-byte aligned. This is true for some types on x86.



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux