Groups | Search | Server Info | Login | Register


Groups > comp.std.c > #6662

7.17.7.5 The atomic_fetch and modify generic functions and "address types"

Path csiph.com!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From Andrey Tarasevich <andreytarasevich@hotmail.com>
Newsgroups comp.std.c
Subject 7.17.7.5 The atomic_fetch and modify generic functions and "address types"
Date Fri, 27 Dec 2024 14:06:33 -0800
Organization A noiseless patient Spider
Lines 18
Message-ID <vkn8da$3rj4n$1@dont-email.me> (permalink)
MIME-Version 1.0
Content-Type text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding 7bit
Injection-Date Fri, 27 Dec 2024 23:06:35 +0100 (CET)
Injection-Info dont-email.me; posting-host="eb31099ce1cd6e5f4af988346ae4d9dd"; logging-data="4050071"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+20Dort4aomPaXeswu4OXg"
User-Agent Mozilla Thunderbird
Cancel-Lock sha1:2MAbST4zZeAdHRNvB32JZqoWvD8=
Content-Language en-US
Xref csiph.com comp.std.c:6662

Show key headers only | View raw


7.17.7.5 says (https://port70.net/~nsz/c/c11/n1570.html#7.17.7.5)

> 1 The following operations perform arithmetic and bitwise computations. All of these operations are applicable to an object of any atomic integer type. None of these operations is applicable to atomic_bool.

If I understand it correctly, this wording is intended to restrict these 
operations to integers types only. I.e. they shall not be applied to 
atomic pointer types. Is that correct?

Later 7.17.7.5 also says

> 3 For address types, the result may be an undefined address, but the operations otherwise have no undefined behavior.

However, I was unable to find any mention of "address types" anywhere in 
the standard. What types are "address types"?

-- 
Best regards,
Andrey

Back to comp.std.c | Previous | NextNext in thread | Find similar


Thread

7.17.7.5 The atomic_fetch and modify generic functions and "address types" Andrey Tarasevich <andreytarasevich@hotmail.com> - 2024-12-27 14:06 -0800
  Re: 7.17.7.5 The atomic_fetch and modify generic functions and "address types" Keith Thompson <Keith.S.Thompson+u@gmail.com> - 2024-12-27 17:24 -0800
  Re: 7.17.7.5 The atomic_fetch and modify generic functions and "address types" Tim Rentsch <tr.17687@z991.linuxsc.com> - 2025-01-01 20:31 -0800
    Re: 7.17.7.5 The atomic_fetch and modify generic functions and "address types" Keith Thompson <Keith.S.Thompson+u@gmail.com> - 2025-01-01 21:32 -0800

csiph-web