tinycc-devel
[Top][All Lists]
Advanced

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

Re: [Tinycc-devel] [PATCH] stdatomic: ld/st/xchg/cmpxchg on simple types


From: Dmitry Selyutin
Subject: Re: [Tinycc-devel] [PATCH] stdatomic: ld/st/xchg/cmpxchg on simple types
Date: Mon, 22 Mar 2021 19:35:25 +0300

> Is the above atomic_load supposed to be similar to the GCC __atomic_load
> intrinsic?
No, it's supposed to be similar to __atomic_load_N.

> hence structs aren't passed around
It depends on the calling convention.
For the __atomic_##_N, it seems like we can pass things this way, as
long as pointers are naturally-aligned.
As I mentioned in one of the earlier patches, there's no proper align
check yet, for now we have size check.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]