⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 tgmath.h.html

📁 IEEE 1003.1-2003, Single Unix Specification v3
💻 HTML
📖 第 1 页 / 共 2 页
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta name="generator" content="HTML Tidy, see www.w3.org"><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><link type="text/css" rel="stylesheet" href="style.css"><!-- Generated by The Open Group's rhtm tool v1.2.1 --><!-- Copyright (c) 2001-2003 The Open Group, All Rights Reserved --><title>&lt;tgmath.h&gt;</title></head><body bgcolor="white"><script type="text/javascript" language="JavaScript" src="../jscript/codes.js"></script><basefont size="3"> <a name="&lt;tgmath.h&gt;"></a> <a name="tag_13_75"></a><!-- &lt;tgmath.h&gt; --> <!--header start--><center><font size="2">The Open Group Base Specifications Issue 6<br>IEEE Std 1003.1, 2003 Edition<br>Copyright &copy; 2001-2003 The IEEE and The Open Group, All Rights reserved.</font></center><!--header end--><hr size="2" noshade><h4><a name="tag_13_75_01"></a>NAME</h4><blockquote>tgmath.h - type-generic macros</blockquote><h4><a name="tag_13_75_02"></a>SYNOPSIS</h4><blockquote class="synopsis"><p><tt>#include &lt;tgmath.h&gt;</tt></p></blockquote><h4><a name="tag_13_75_03"></a>DESCRIPTION</h4><blockquote><div class="box"><sup>[<a href="javascript:open_code('CX')">CX</a>]</sup> <img src="../images/opt-start.gif" alt="[Option Start]"border="0"> The functionality described on this reference page is aligned with the ISO&nbsp;C standard. Any conflict between therequirements described here and the ISO&nbsp;C standard is unintentional. This volume of IEEE&nbsp;Std&nbsp;1003.1-2001 defers tothe ISO&nbsp;C standard. <img src="../images/opt-end.gif" alt="[Option End]" border="0"></div><p>The <i>&lt;tgmath.h&gt;</i> header shall include the headers <a href="../basedefs/math.h.html"><i>&lt;math.h&gt;</i></a> and <ahref="../basedefs/complex.h.html"><i>&lt;complex.h&gt;</i></a> and shall define several type-generic macros.</p><p>Of the functions contained within the <a href="../basedefs/math.h.html"><i>&lt;math.h&gt;</i></a> and <a href="../basedefs/complex.h.html"><i>&lt;complex.h&gt;</i></a> headers without an <i>f</i> ( <b>float</b>) or <i>l</i> ( <b>longdouble</b>) suffix, several have one or more parameters whose corresponding real type is <b>double</b>. For each such function,except <a href="../functions/modf.html"><i>modf</i>()</a>, there shall be a corresponding type-generic macro. The parameters whosecorresponding real type is <b>double</b> in the function synopsis are generic parameters. Use of the macro invokes a function whosecorresponding real type and type domain are determined by the arguments for the generic parameters.</p><p>Use of the macro invokes a function whose generic parameters have the corresponding real type determined as follows:</p><ul><li><p>First, if any argument for generic parameters has type <b>long double</b>, the type determined is <b>long double</b>.</p></li><li><p>Otherwise, if any argument for generic parameters has type <b>double</b> or is of integer type, the type determined is<b>double</b>.</p></li><li><p>Otherwise, the type determined is <b>float</b>.</p></li></ul><p>For each unsuffixed function in the <a href="../basedefs/math.h.html"><i>&lt;math.h&gt;</i></a> header for which there is afunction in the <a href="../basedefs/complex.h.html"><i>&lt;complex.h&gt;</i></a> header with the same name except for a <i>c</i>prefix, the corresponding type-generic macro (for both functions) has the same name as the function in the <a href="../basedefs/math.h.html"><i>&lt;math.h&gt;</i></a> header. The corresponding type-generic macro for <a href="../functions/fabs.html"><i>fabs</i>()</a> and <a href="../functions/cabs.html"><i>cabs</i>()</a> is <a href="../functions/fabs.html"><i>fabs</i>()</a>.</p><blockquote><table border="1" cellpadding="3"><tr valign="top"><th align="center"><p class="tent"><b>&lt;math.h&gt;</b></p></th><th align="center"><p class="tent"><b>&lt;complex.h&gt;</b></p></th><th align="center"><p class="tent"><b>Type-Generic</b></p></th></tr><tr valign="top"><th align="center"><p class="tent"><b>Function</b></p></th><th align="center"><p class="tent"><b>Function</b></p></th><th align="center"><p class="tent"><b>Macro</b></p></th></tr><tr valign="top"><td align="left"><p class="tent"><i>acos</i>()</p></td><td align="left"><p class="tent"><i>cacos</i>()</p></td><td align="left"><p class="tent"><i>acos</i>()</p></td></tr><tr valign="top"><td align="left"><p class="tent"><i>asin</i>()</p></td><td align="left"><p class="tent"><i>casin</i>()</p></td><td align="left"><p class="tent"><i>asin</i>()</p></td></tr><tr valign="top"><td align="left"><p class="tent"><i>atan</i>()</p></td><td align="left"><p class="tent"><i>catan</i>()</p></td><td align="left"><p class="tent"><i>atan</i>()</p></td></tr><tr valign="top"><td align="left"><p class="tent"><i>acosh</i>()</p></td><td align="left"><p class="tent"><i>cacosh</i>()</p></td><td align="left"><p class="tent"><i>acosh</i>()</p></td></tr><tr valign="top"><td align="left"><p class="tent"><i>asinh</i>()</p></td><td align="left"><p class="tent"><i>casinh</i>()</p></td><td align="left"><p class="tent"><i>asinh</i>()</p></td></tr><tr valign="top"><td align="left"><p class="tent"><i>atanh</i>()</p></td><td align="left"><p class="tent"><i>catanh</i>()</p></td><td align="left"><p class="tent"><i>atanh</i>()</p></td></tr><tr valign="top"><td align="left"><p class="tent"><i>cos</i>()</p></td><td align="left"><p class="tent"><i>ccos</i>()</p></td><td align="left"><p class="tent"><i>cos</i>()</p></td></tr><tr valign="top"><td align="left"><p class="tent"><i>sin</i>()</p></td><td align="left"><p class="tent"><i>csin</i>()</p></td><td align="left"><p class="tent"><i>sin</i>()</p></td></tr><tr valign="top"><td align="left"><p class="tent"><i>tan</i>()</p></td><td align="left"><p class="tent"><i>ctan</i>()</p></td><td align="left"><p class="tent"><i>tan</i>()</p></td></tr><tr valign="top"><td align="left"><p class="tent"><i>cosh</i>()</p></td><td align="left"><p class="tent"><i>ccosh</i>()</p></td><td align="left"><p class="tent"><i>cosh</i>()</p></td></tr><tr valign="top"><td align="left"><p class="tent"><i>sinh</i>()</p></td><td align="left"><p class="tent"><i>csinh</i>()</p></td><td align="left"><p class="tent"><i>sinh</i>()</p></td></tr><tr valign="top"><td align="left"><p class="tent"><i>tanh</i>()</p></td><td align="left"><p class="tent"><i>ctanh</i>()</p></td><td align="left"><p class="tent"><i>tanh</i>()</p></td></tr><tr valign="top"><td align="left"><p class="tent"><i>exp</i>()</p></td><td align="left"><p class="tent"><i>cexp</i>()</p></td><td align="left"><p class="tent"><i>exp</i>()</p></td></tr><tr valign="top"><td align="left"><p class="tent"><i>log</i>()</p></td><td align="left"><p class="tent"><i>clog</i>()</p></td><td align="left"><p class="tent"><i>log</i>()</p></td></tr><tr valign="top"><td align="left"><p class="tent"><i>pow</i>()</p></td><td align="left"><p class="tent"><i>cpow</i>()</p></td><td align="left"><p class="tent"><i>pow</i>()</p></td></tr><tr valign="top"><td align="left"><p class="tent"><i>sqrt</i>()</p></td><td align="left"><p class="tent"><i>csqrt</i>()</p></td><td align="left"><p class="tent"><i>sqrt</i>()</p></td></tr><tr valign="top"><td align="left"><p class="tent"><i>fabs</i>()</p></td><td align="left"><p class="tent"><i>cabs</i>()</p></td><td align="left"><p class="tent"><i>fabs</i>()</p></td></tr></table></blockquote><p>If at least one argument for a generic parameter is complex, then use of the macro invokes a complex function; otherwise, use ofthe macro invokes a real function.</p><p>For each unsuffixed function in the <a href="../basedefs/math.h.html"><i>&lt;math.h&gt;</i></a> header without a<i>c</i>-prefixed counterpart in the <a href="../basedefs/complex.h.html"><i>&lt;complex.h&gt;</i></a> header, the correspondingtype-generic macro has the same name as the function. These type-generic macros are:</p><blockquote><table cellpadding="3"><tr valign="top"><td align="left"><p class="tent"><br><a href="../functions/atan2.html"><i>atan2</i>()</a><br><a href="../functions/cbrt.html"><i>cbrt</i>()</a><br><a href="../functions/ceil.html"><i>ceil</i>()</a><br><a href="../functions/copysign.html"><i>copysign</i>()</a><br><a href="../functions/erf.html"><i>erf</i>()</a><br><a href="../functions/erfc.html"><i>erfc</i>()</a><br><a href="../functions/exp2.html"><i>exp2</i>()</a><br><a href="../functions/expm1.html"><i>expm1</i>()</a><br><a href="../functions/fdim.html"><i>fdim</i>()</a><br><a href="../functions/floor.html"><i>floor</i>()</a><br>&nbsp;</p></td><td align="left"><p class="tent"><br><a href="../functions/fma.html"><i>fma</i>()</a><br><a href="../functions/fmax.html"><i>fmax</i>()</a><br><a href="../functions/fmin.html"><i>fmin</i>()</a><br><a href="../functions/fmod.html"><i>fmod</i>()</a><br><a href="../functions/frexp.html"><i>frexp</i>()</a><br><a href="../functions/hypot.html"><i>hypot</i>()</a><br><a href="../functions/ilogb.html"><i>ilogb</i>()</a><br><a href="../functions/ldexp.html"><i>ldexp</i>()</a><br><a href="../functions/lgamma.html"><i>lgamma</i>()</a><br><a href="../functions/llrint.html"><i>llrint</i>()</a><br>&nbsp;</p></td><td align="left"><p class="tent"><br><a href="../functions/llround.html"><i>llround</i>()</a><br><a href="../functions/log10.html"><i>log10</i>()</a><br><a href="../functions/log1p.html"><i>log1p</i>()</a><br><a href="../functions/log2.html"><i>log2</i>()</a><br><a href="../functions/logb.html"><i>logb</i>()</a><br><a href="../functions/lrint.html"><i>lrint</i>()</a><br><a href="../functions/lround.html"><i>lround</i>()</a><br><a href="../functions/nearbyint.html"><i>nearbyint</i>()</a><br><a href="../functions/nextafter.html"><i>nextafter</i>()</a><br><a href="../functions/nexttoward.html"><i>nexttoward</i>()</a><br>&nbsp;</p>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -