cvs commit: src/include Makefile tgmath.h

David Schultz das at FreeBSD.ORG
Thu Aug 19 19:26:49 PDT 2004


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.


More information about the cvs-all mailing list