tgmath.h (C99)

tgmath.h には引数の型に応じて math.hcomplex.h の関数を呼び出すマクロが定義されています.なお,tgmath.h をインクルードすると math.hcomplex.h も自動的にインクルードされます.
マクロとそのマクロによって呼び出される関数の一覧は以下の通りです.

math.h と complex.h のどちらか一方から関数を呼び出すマクロ

マクロ名呼び出される関数 (math.h)呼び出される関数 (complex.h)
double float long double double complex float complex long double complex
acos acos acosf acosl cacos cacosf cacosl
asin asin asinf asinl casin casinf casinl
atan atan atanf atanl catan catanf catanl
acosh acosh acoshf acoshl cacosh cacoshf cacoshl
asinh asinh asinhf asinhl casinh casinhf casinhl
atanh atanh atanhf atanhl catanh catanhf catanhl
cos cos cosf cosl ccos ccosf ccosl
sin sin sinf sinl csin csinf csinl
tan tan tanf tanl ctan ctanf ctanl
cosh cosh coshf coshl ccosh ccoshf ccoshl
sinh sinh sinhf sinhl csinh csinhf csinhl
tanh tanh tanhf tanhl ctanh ctanhf ctanhl
exp exp expf expl cexp cexpf cexpl
log log logf logl clog clogf clogl
pow pow powf powl cpow cpowf cpowl
sqrt sqrt sqrtf sqrtl csqrt csqrtf csqrtl
fabs fabs fabsf fabsl cabs cabsf cabsl

math.h から関数を呼び出すマクロ

マクロ名呼び出される関数 (math.h)
double float long double
atan2 atan2 atan2f atan2l
cbrt cbrt cbrtf cbrtl
ceil ceil ceilf ceill
copysign copysign copysignf copysignl
erf erf erff erfl
erfc erfc erfcf erfcl
exp2 exp2 exp2f exp2l
expm1 expm1 expm1f expm1l
fdim fdim fdimf fdiml
floor floor floorf floorl
fma fma fmaf fmal
fmax fmax fmaxf fmaxl
fmin fmin fminf fminl
fmod fmod fmodf fmodl
frexp frexp frexpf frexpl
hypot hypot hypotf hypotl
ilogb ilogb ilogbf ilogbl
ldexp ldexp ldexpf ldexpl
lgamma lgamma lgammaf lgammal
llrint llrint llrintf llrintl
llround llround llroundf llroundl
log10 log10 log10f log10l
log1p log1p log1pf log1pl
log2 log2 log2f log2l
logb logb logbf logbl
lrint lrint lrintf lrintl
lround lround lroundf lroundl
nearbyint nearbyint nearbyintf nearbyintl
nextafter nextafter nextafterf nextafterl
nexttoward nexttoward nexttowardf nexttowardl
remainder remainder remainderf remainderl
remquo remquo remquof remquol
rint rint rintf rintl
round round roundf roundl
scalbn scalbn scalbnf scalbnl
scalbln scalbln scalblnf scalblnl
tgamma tgamma tgammaf tgammal
trunc trunc truncf truncl

complex.h から関数を呼び出すマクロ

マクロ名呼び出される関数 (complex.h)
double complex float complex long double complex
carg carg cargf cargl
cimag cimag cimagf cimagl
conj conj conjf conjl
cproj cproj cprojf cprojl
creal creal crealf creall