DESCRIPTION
The header
.In tgmath.h provides type-generic macros for
.In math.h and
.In complex.h functions that have
.Vt float (suffixed with f),
.Vt double and
.Vt "long double" (suffixed with l) versions. The arguments that vary across the three functions and have type
.Vt float , double and
.Vt "long double" , respectively, are called "generic arguments". The following rules describe which function is actually called if a type-generic macro is invoked. If any generic argument has type
.Vt "long double" or
.Vt "long double complex" , the
.Vt "long double" function is called. Else, if any generic argument has type
.Vt double , "double complex" or an integer type, the
.Vt double version is invoked. Otherwise, the macro expands to the
.Vt float implementation.
For the macros in the following table, both real and complex functions exist. The real functions are prototyped in
.In math.h and the complex equivalents in
.In complex.h . The complex function is called if any of the generic arguments is a complex value. Otherwise, the real equivalent is called.