Date: Thu, 19 Aug 2004 19:27:31 -0700 From: David Schultz <das@FreeBSD.ORG> To: Stefan Farfeleder <stefanf@FreeBSD.ORG> Cc: cvs-all@FreeBSD.ORG Subject: Re: cvs commit: src/include Makefile tgmath.h Message-ID: <20040820022731.GA2314@VARK.homeunix.com> In-Reply-To: <200408082005.i78K5lDQ023077@repoman.freebsd.org> References: <200408082005.i78K5lDQ023077@repoman.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Aug 08, 2004, Stefan Farfeleder wrote: > stefanf 2004-08-08 20:05:47 UTC > > FreeBSD src repository > > Modified files: > include Makefile > Added files: > include tgmath.h > Log: > Implement C99's standard header <tgmath.h>. It provides type-generic macros > for the <math.h> and <complex.h> functions that have float, double and long > double implementations. Such type-generic macros expand to an actual > function, depending on the types of the macro arguments, eg. if <tgmath.h> > is included, the invocation cos(1.0f) calls the function cosf(). Nice! Some regression tests might be nice, too, so people can easily verify that their changes to math.h don't break tgmath.h.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040820022731.GA2314>