[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.
- Re: [Tinycc-devel] [PATCH] stdatomic: ld/st/xchg/cmpxchg on simple types, (continued)
- Re: [Tinycc-devel] [PATCH] stdatomic: ld/st/xchg/cmpxchg on simple types, grischka, 2021/03/19
- Re: [Tinycc-devel] [PATCH] stdatomic: ld/st/xchg/cmpxchg on simple types, Dmitry Selyutin, 2021/03/19
- Re: [Tinycc-devel] [PATCH] stdatomic: ld/st/xchg/cmpxchg on simple types, grischka, 2021/03/20
- Re: [Tinycc-devel] [PATCH] stdatomic: ld/st/xchg/cmpxchg on simple types, Dmitry Selyutin, 2021/03/20
- Re: [Tinycc-devel] [PATCH] stdatomic: ld/st/xchg/cmpxchg on simple types, Michael Matz, 2021/03/22
- Re: [Tinycc-devel] [PATCH] stdatomic: ld/st/xchg/cmpxchg on simple types, Dmitry Selyutin, 2021/03/22
- Re: [Tinycc-devel] [PATCH] stdatomic: ld/st/xchg/cmpxchg on simple types, Michael Matz, 2021/03/22
Re: [Tinycc-devel] [PATCH] stdatomic: ld/st/xchg/cmpxchg on simple types, Elijah Stone, 2021/03/19
Re: [Tinycc-devel] [PATCH] stdatomic: ld/st/xchg/cmpxchg on simple types, Michael Matz, 2021/03/22
- Re: [Tinycc-devel] [PATCH] stdatomic: ld/st/xchg/cmpxchg on simple types,
Dmitry Selyutin <=
- Re: [Tinycc-devel] [PATCH] stdatomic: ld/st/xchg/cmpxchg on simple types, Michael Matz, 2021/03/22
- Re: [Tinycc-devel] [PATCH] stdatomic: ld/st/xchg/cmpxchg on simple types, Dmitry Selyutin, 2021/03/22
- Re: [Tinycc-devel] [PATCH] stdatomic: ld/st/xchg/cmpxchg on simple types, Dmitry Selyutin, 2021/03/22
- Re: [Tinycc-devel] [PATCH] stdatomic: ld/st/xchg/cmpxchg on simple types, Dmitry Selyutin, 2021/03/22
- Re: [Tinycc-devel] [PATCH] stdatomic: ld/st/xchg/cmpxchg on simple types, Michael Matz, 2021/03/25
- Re: [Tinycc-devel] [PATCH] stdatomic: ld/st/xchg/cmpxchg on simple types, Dmitry Selyutin, 2021/03/25