On 27.09.2017 07:38, co...@sdf.org wrote:
> Apparently we do have our own version we do not install.
> https://nxr.netbsd.org/xref/src/include/tgmath.h
>
This version looks good. We could expand it with C11 fallback option for
the !GCC compiler and make it default for -std=c11.
I had in the past
Apparently we do have our own version we do not install.
https://nxr.netbsd.org/xref/src/include/tgmath.h
On Tue, Sep 26, 2017 at 11:03:09PM +0200, Kamil Rytarowski wrote:
> On 26.09.2017 22:33, Joerg Sonnenberger wrote:
> > On Tue, Sep 26, 2017 at 10:28:23PM +0200, Kamil Rytarowski wrote:
> >> Can we just import as-is the FreeBSD version? It has support for pre-C11
> >> compilers. This has header to b
On 26.09.2017 22:33, Joerg Sonnenberger wrote:
> On Tue, Sep 26, 2017 at 10:28:23PM +0200, Kamil Rytarowski wrote:
>> Can we just import as-is the FreeBSD version? It has support for pre-C11
>> compilers. This has header to be supported in the clean C99 mode.
>
> I see absolutely no reason for wan
On Tue, Sep 26, 2017 at 10:28:23PM +0200, Kamil Rytarowski wrote:
> Can we just import as-is the FreeBSD version?
No.
> Can we please reuse the template license header for new code?
> Public-domain might be problematic for strict people (it does not work
> for all countries).
Absolutely not.
On Tue, Sep 26, 2017 at 10:28:23PM +0200, Kamil Rytarowski wrote:
> Can we just import as-is the FreeBSD version? It has support for pre-C11
> compilers. This has header to be supported in the clean C99 mode.
I see absolutely no reason for wanting to support tgmath.h in pre-C11
mode and a lot of v
are to
> believed.
>
> randomly poking it turned out that in C99 you probably had to be a
> compiler/extensions to implement tgmath*. with C11 generics, you don't.
>
> attached is a version that could use more testing & careful reading of
> is standard.
>
> t
to be a
compiler/extensions to implement tgmath*. with C11 generics, you don't.
attached is a version that could use more testing & careful reading of
is standard.
thoughts?
* sizeof(double) == sizeof(complex float)
/*
* Type-generic mathematics
*
* Public domain
*/
#ifndef _