|Subject:||Re: [Tinycc-devel] Opinions on constexpr being added to C2X?|
|Date:||Tue, 19 Oct 2021 07:10:25 +0200|
Indeed, I see that __STDC_NO_COMPLEX__ is already defined for tcc which is correct. I missed this, sorry.
7.3 Complex arithmetic <complex.h>
1 The header <complex.h> defines macros and declares functions that support complex
2 Implementations that define the macro _ _STDC_NO_COMPLEX_ _ need not provide
this header nor support any of its facilities.
From: Tinycc-devel [mailto:email@example.com] On Behalf Of Tyge Løvset
I added tgmath.h last year, which includes generic support for all non-complex math functions. As complex.h is optional in C11 and not included with tinycc, this should be fine.
I think any added C11 features should be welcome, C2X features are secondary, imo unless it is low-hanging fruit and easy to implement.
On constexpr, I find it interesting for tinycc as it minimizes generated code - efficiency gains are not that important. Mutable types like in c++ are useful,
although it is possible to write functional style code instead. I haven't looked at the proposal yet, though.
On Sun, 17 Oct 2021 at 11:03, Christian Jullien <firstname.lastname@example.org> wrote:
|[Prev in Thread]||Current Thread||[Next in Thread]|