Micro template library A library for building device drivers
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

732 lines
38 KiB

  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
  5. <meta http-equiv="X-UA-Compatible" content="IE=9"/>
  6. <meta name="generator" content="Doxygen 1.8.14"/>
  7. <meta name="viewport" content="width=device-width, initial-scale=1"/>
  8. <title>uTL: testing::internal::FloatingPoint&lt; RawType &gt; Class Template Reference</title>
  9. <link href="tabs.css" rel="stylesheet" type="text/css"/>
  10. <script type="text/javascript" src="jquery.js"></script>
  11. <script type="text/javascript" src="dynsections.js"></script>
  12. <link href="navtree.css" rel="stylesheet" type="text/css"/>
  13. <script type="text/javascript" src="resize.js"></script>
  14. <script type="text/javascript" src="navtreedata.js"></script>
  15. <script type="text/javascript" src="navtree.js"></script>
  16. <script type="text/javascript">
  17. /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  18. $(document).ready(initResizable);
  19. /* @license-end */</script>
  20. <link href="search/search.css" rel="stylesheet" type="text/css"/>
  21. <script type="text/javascript" src="search/searchdata.js"></script>
  22. <script type="text/javascript" src="search/search.js"></script>
  23. <link href="doxygen.css" rel="stylesheet" type="text/css" />
  24. </head>
  25. <body>
  26. <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
  27. <div id="titlearea">
  28. <table cellspacing="0" cellpadding="0">
  29. <tbody>
  30. <tr style="height: 56px;">
  31. <td id="projectalign" style="padding-left: 0.5em;">
  32. <div id="projectname">uTL
  33. </div>
  34. <div id="projectbrief">micro Template library</div>
  35. </td>
  36. </tr>
  37. </tbody>
  38. </table>
  39. </div>
  40. <!-- end header part -->
  41. <!-- Generated by Doxygen 1.8.14 -->
  42. <script type="text/javascript">
  43. /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  44. var searchBox = new SearchBox("searchBox", "search",false,'Search');
  45. /* @license-end */
  46. </script>
  47. <script type="text/javascript" src="menudata.js"></script>
  48. <script type="text/javascript" src="menu.js"></script>
  49. <script type="text/javascript">
  50. /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  51. $(function() {
  52. initMenu('',true,false,'search.php','Search');
  53. $(document).ready(function() { init_search(); });
  54. });
  55. /* @license-end */</script>
  56. <div id="main-nav"></div>
  57. </div><!-- top -->
  58. <div id="side-nav" class="ui-resizable side-nav-resizable">
  59. <div id="nav-tree">
  60. <div id="nav-tree-contents">
  61. <div id="nav-sync" class="sync"></div>
  62. </div>
  63. </div>
  64. <div id="splitbar" style="-moz-user-select:none;"
  65. class="ui-resizable-handle">
  66. </div>
  67. </div>
  68. <script type="text/javascript">
  69. /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  70. $(document).ready(function(){initNavTree('classtesting_1_1internal_1_1_floating_point.html','');});
  71. /* @license-end */
  72. </script>
  73. <div id="doc-content">
  74. <!-- window showing the filter options -->
  75. <div id="MSearchSelectWindow"
  76. onmouseover="return searchBox.OnSearchSelectShow()"
  77. onmouseout="return searchBox.OnSearchSelectHide()"
  78. onkeydown="return searchBox.OnSearchSelectKey(event)">
  79. </div>
  80. <!-- iframe showing the search results (closed by default) -->
  81. <div id="MSearchResultsWindow">
  82. <iframe src="javascript:void(0)" frameborder="0"
  83. name="MSearchResults" id="MSearchResults">
  84. </iframe>
  85. </div>
  86. <div class="header">
  87. <div class="summary">
  88. <a href="#nested-classes">Classes</a> &#124;
  89. <a href="#pub-types">Public Types</a> &#124;
  90. <a href="#pub-methods">Public Member Functions</a> &#124;
  91. <a href="#pub-static-methods">Static Public Member Functions</a> &#124;
  92. <a href="#pub-static-attribs">Static Public Attributes</a> &#124;
  93. <a href="classtesting_1_1internal_1_1_floating_point-members.html">List of all members</a> </div>
  94. <div class="headertitle">
  95. <div class="title">testing::internal::FloatingPoint&lt; RawType &gt; Class Template Reference</div> </div>
  96. </div><!--header-->
  97. <div class="contents">
  98. <p><code>#include &lt;<a class="el" href="gtest_8h_source.html">gtest.h</a>&gt;</code></p>
  99. <table class="memberdecls">
  100. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
  101. Public Types</h2></td></tr>
  102. <tr class="memitem:abf228bf6cd48f12c8b44c85b4971a731"><td class="memItemLeft" align="right" valign="top">typedef <a class="el" href="classtesting_1_1internal_1_1_type_with_size.html">TypeWithSize</a>&lt; sizeof(RawType)&gt;::UInt&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classtesting_1_1internal_1_1_floating_point.html#abf228bf6cd48f12c8b44c85b4971a731">Bits</a></td></tr>
  103. <tr class="separator:abf228bf6cd48f12c8b44c85b4971a731"><td class="memSeparator" colspan="2">&#160;</td></tr>
  104. </table><table class="memberdecls">
  105. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
  106. Public Member Functions</h2></td></tr>
  107. <tr class="memitem:a0dabf840863e0df84046f171c891fe71"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classtesting_1_1internal_1_1_floating_point.html#a0dabf840863e0df84046f171c891fe71">FloatingPoint</a> (const RawType &amp;x)</td></tr>
  108. <tr class="separator:a0dabf840863e0df84046f171c891fe71"><td class="memSeparator" colspan="2">&#160;</td></tr>
  109. <tr class="memitem:aab053be914bdc9e507c0db89740c318c"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classtesting_1_1internal_1_1_floating_point.html#abf228bf6cd48f12c8b44c85b4971a731">Bits</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classtesting_1_1internal_1_1_floating_point.html#aab053be914bdc9e507c0db89740c318c">bits</a> () const</td></tr>
  110. <tr class="separator:aab053be914bdc9e507c0db89740c318c"><td class="memSeparator" colspan="2">&#160;</td></tr>
  111. <tr class="memitem:af6bf8fab8df572ecb137a3516ff390ae"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classtesting_1_1internal_1_1_floating_point.html#abf228bf6cd48f12c8b44c85b4971a731">Bits</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classtesting_1_1internal_1_1_floating_point.html#af6bf8fab8df572ecb137a3516ff390ae">exponent_bits</a> () const</td></tr>
  112. <tr class="separator:af6bf8fab8df572ecb137a3516ff390ae"><td class="memSeparator" colspan="2">&#160;</td></tr>
  113. <tr class="memitem:aa17337e50a2ac855719bc0676529558f"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classtesting_1_1internal_1_1_floating_point.html#abf228bf6cd48f12c8b44c85b4971a731">Bits</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classtesting_1_1internal_1_1_floating_point.html#aa17337e50a2ac855719bc0676529558f">fraction_bits</a> () const</td></tr>
  114. <tr class="separator:aa17337e50a2ac855719bc0676529558f"><td class="memSeparator" colspan="2">&#160;</td></tr>
  115. <tr class="memitem:afb8a816bb598225d775caaf43a893ef0"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classtesting_1_1internal_1_1_floating_point.html#abf228bf6cd48f12c8b44c85b4971a731">Bits</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classtesting_1_1internal_1_1_floating_point.html#afb8a816bb598225d775caaf43a893ef0">sign_bit</a> () const</td></tr>
  116. <tr class="separator:afb8a816bb598225d775caaf43a893ef0"><td class="memSeparator" colspan="2">&#160;</td></tr>
  117. <tr class="memitem:a1fc654fd206efa98e480aa1e034f30d5"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classtesting_1_1internal_1_1_floating_point.html#a1fc654fd206efa98e480aa1e034f30d5">is_nan</a> () const</td></tr>
  118. <tr class="separator:a1fc654fd206efa98e480aa1e034f30d5"><td class="memSeparator" colspan="2">&#160;</td></tr>
  119. <tr class="memitem:a965214c1af2f9ac5adb1393794aa81e5"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classtesting_1_1internal_1_1_floating_point.html#a965214c1af2f9ac5adb1393794aa81e5">AlmostEquals</a> (const <a class="el" href="classtesting_1_1internal_1_1_floating_point.html">FloatingPoint</a> &amp;rhs) const</td></tr>
  120. <tr class="separator:a965214c1af2f9ac5adb1393794aa81e5"><td class="memSeparator" colspan="2">&#160;</td></tr>
  121. <tr class="memitem:af2eda9331e679229a1baa3404b57b51d"><td class="memTemplParams" colspan="2">template&lt;&gt; </td></tr>
  122. <tr class="memitem:af2eda9331e679229a1baa3404b57b51d"><td class="memTemplItemLeft" align="right" valign="top">float&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classtesting_1_1internal_1_1_floating_point.html#af2eda9331e679229a1baa3404b57b51d">Max</a> ()</td></tr>
  123. <tr class="separator:af2eda9331e679229a1baa3404b57b51d"><td class="memSeparator" colspan="2">&#160;</td></tr>
  124. <tr class="memitem:afc2e85c0e886cb13b2300e961c9a9648"><td class="memTemplParams" colspan="2">template&lt;&gt; </td></tr>
  125. <tr class="memitem:afc2e85c0e886cb13b2300e961c9a9648"><td class="memTemplItemLeft" align="right" valign="top">double&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classtesting_1_1internal_1_1_floating_point.html#afc2e85c0e886cb13b2300e961c9a9648">Max</a> ()</td></tr>
  126. <tr class="separator:afc2e85c0e886cb13b2300e961c9a9648"><td class="memSeparator" colspan="2">&#160;</td></tr>
  127. </table><table class="memberdecls">
  128. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
  129. Static Public Member Functions</h2></td></tr>
  130. <tr class="memitem:ac551f793522e54fbd8a25acb79eac5b1"><td class="memItemLeft" align="right" valign="top">static RawType&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classtesting_1_1internal_1_1_floating_point.html#ac551f793522e54fbd8a25acb79eac5b1">ReinterpretBits</a> (const <a class="el" href="classtesting_1_1internal_1_1_floating_point.html#abf228bf6cd48f12c8b44c85b4971a731">Bits</a> <a class="el" href="classtesting_1_1internal_1_1_floating_point.html#aab053be914bdc9e507c0db89740c318c">bits</a>)</td></tr>
  131. <tr class="separator:ac551f793522e54fbd8a25acb79eac5b1"><td class="memSeparator" colspan="2">&#160;</td></tr>
  132. <tr class="memitem:a460027cc19cf01ae8e09cc3796b2b575"><td class="memItemLeft" align="right" valign="top">static RawType&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classtesting_1_1internal_1_1_floating_point.html#a460027cc19cf01ae8e09cc3796b2b575">Infinity</a> ()</td></tr>
  133. <tr class="separator:a460027cc19cf01ae8e09cc3796b2b575"><td class="memSeparator" colspan="2">&#160;</td></tr>
  134. <tr class="memitem:aae5954d8a57d3ff0987c6930cb68e114"><td class="memItemLeft" align="right" valign="top">static RawType&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classtesting_1_1internal_1_1_floating_point.html#aae5954d8a57d3ff0987c6930cb68e114">Max</a> ()</td></tr>
  135. <tr class="separator:aae5954d8a57d3ff0987c6930cb68e114"><td class="memSeparator" colspan="2">&#160;</td></tr>
  136. </table><table class="memberdecls">
  137. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-attribs"></a>
  138. Static Public Attributes</h2></td></tr>
  139. <tr class="memitem:ab819d2e8f93e9e482373999f0f8d71b9"><td class="memItemLeft" align="right" valign="top">static const size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classtesting_1_1internal_1_1_floating_point.html#ab819d2e8f93e9e482373999f0f8d71b9">kBitCount</a> = 8*sizeof(RawType)</td></tr>
  140. <tr class="separator:ab819d2e8f93e9e482373999f0f8d71b9"><td class="memSeparator" colspan="2">&#160;</td></tr>
  141. <tr class="memitem:a0b756a6d2a4f5f5b41ca79651c06c043"><td class="memItemLeft" align="right" valign="top">static const size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classtesting_1_1internal_1_1_floating_point.html#a0b756a6d2a4f5f5b41ca79651c06c043">kFractionBitCount</a></td></tr>
  142. <tr class="separator:a0b756a6d2a4f5f5b41ca79651c06c043"><td class="memSeparator" colspan="2">&#160;</td></tr>
  143. <tr class="memitem:a1973d843c00781053d3073daa8a40119"><td class="memItemLeft" align="right" valign="top">static const size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classtesting_1_1internal_1_1_floating_point.html#a1973d843c00781053d3073daa8a40119">kExponentBitCount</a> = <a class="el" href="classtesting_1_1internal_1_1_floating_point.html#ab819d2e8f93e9e482373999f0f8d71b9">kBitCount</a> - 1 - <a class="el" href="classtesting_1_1internal_1_1_floating_point.html#a0b756a6d2a4f5f5b41ca79651c06c043">kFractionBitCount</a></td></tr>
  144. <tr class="separator:a1973d843c00781053d3073daa8a40119"><td class="memSeparator" colspan="2">&#160;</td></tr>
  145. <tr class="memitem:aca98b5ea6f2222a66a82e52421682efa"><td class="memItemLeft" align="right" valign="top">static const <a class="el" href="classtesting_1_1internal_1_1_floating_point.html#abf228bf6cd48f12c8b44c85b4971a731">Bits</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classtesting_1_1internal_1_1_floating_point.html#aca98b5ea6f2222a66a82e52421682efa">kSignBitMask</a> = static_cast&lt;<a class="el" href="classtesting_1_1internal_1_1_floating_point.html#abf228bf6cd48f12c8b44c85b4971a731">Bits</a>&gt;(1) &lt;&lt; (<a class="el" href="classtesting_1_1internal_1_1_floating_point.html#ab819d2e8f93e9e482373999f0f8d71b9">kBitCount</a> - 1)</td></tr>
  146. <tr class="separator:aca98b5ea6f2222a66a82e52421682efa"><td class="memSeparator" colspan="2">&#160;</td></tr>
  147. <tr class="memitem:a0ac75d4ffd24f14bca452abe8a718da1"><td class="memItemLeft" align="right" valign="top">static const <a class="el" href="classtesting_1_1internal_1_1_floating_point.html#abf228bf6cd48f12c8b44c85b4971a731">Bits</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classtesting_1_1internal_1_1_floating_point.html#a0ac75d4ffd24f14bca452abe8a718da1">kFractionBitMask</a></td></tr>
  148. <tr class="separator:a0ac75d4ffd24f14bca452abe8a718da1"><td class="memSeparator" colspan="2">&#160;</td></tr>
  149. <tr class="memitem:a66065dfc4d5f41100f686159637af23b"><td class="memItemLeft" align="right" valign="top">static const <a class="el" href="classtesting_1_1internal_1_1_floating_point.html#abf228bf6cd48f12c8b44c85b4971a731">Bits</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classtesting_1_1internal_1_1_floating_point.html#a66065dfc4d5f41100f686159637af23b">kExponentBitMask</a> = ~(<a class="el" href="classtesting_1_1internal_1_1_floating_point.html#aca98b5ea6f2222a66a82e52421682efa">kSignBitMask</a> | <a class="el" href="classtesting_1_1internal_1_1_floating_point.html#a0ac75d4ffd24f14bca452abe8a718da1">kFractionBitMask</a>)</td></tr>
  150. <tr class="separator:a66065dfc4d5f41100f686159637af23b"><td class="memSeparator" colspan="2">&#160;</td></tr>
  151. <tr class="memitem:aac498b3714d93f8e88cdc30e4c5935f6"><td class="memItemLeft" align="right" valign="top">static const size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classtesting_1_1internal_1_1_floating_point.html#aac498b3714d93f8e88cdc30e4c5935f6">kMaxUlps</a> = 4</td></tr>
  152. <tr class="separator:aac498b3714d93f8e88cdc30e4c5935f6"><td class="memSeparator" colspan="2">&#160;</td></tr>
  153. </table>
  154. <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
  155. <div class="textblock"><h3>template&lt;typename RawType&gt;<br />
  156. class testing::internal::FloatingPoint&lt; RawType &gt;</h3>
  157. <p class="definition">Definition at line <a class="el" href="gtest_8h_source.html#l06687">6687</a> of file <a class="el" href="gtest_8h_source.html">gtest.h</a>.</p>
  158. </div><h2 class="groupheader">Member Typedef Documentation</h2>
  159. <a id="abf228bf6cd48f12c8b44c85b4971a731"></a>
  160. <h2 class="memtitle"><span class="permalink"><a href="#abf228bf6cd48f12c8b44c85b4971a731">&#9670;&nbsp;</a></span>Bits</h2>
  161. <div class="memitem">
  162. <div class="memproto">
  163. <div class="memtemplate">
  164. template&lt;typename RawType&gt; </div>
  165. <table class="memname">
  166. <tr>
  167. <td class="memname">typedef <a class="el" href="classtesting_1_1internal_1_1_type_with_size.html">TypeWithSize</a>&lt;sizeof(RawType)&gt;::UInt <a class="el" href="classtesting_1_1internal_1_1_floating_point.html">testing::internal::FloatingPoint</a>&lt; RawType &gt;::<a class="el" href="classtesting_1_1internal_1_1_floating_point.html#abf228bf6cd48f12c8b44c85b4971a731">Bits</a></td>
  168. </tr>
  169. </table>
  170. </div><div class="memdoc">
  171. <p class="definition">Definition at line <a class="el" href="gtest_8h_source.html#l06691">6691</a> of file <a class="el" href="gtest_8h_source.html">gtest.h</a>.</p>
  172. </div>
  173. </div>
  174. <h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
  175. <a id="a0dabf840863e0df84046f171c891fe71"></a>
  176. <h2 class="memtitle"><span class="permalink"><a href="#a0dabf840863e0df84046f171c891fe71">&#9670;&nbsp;</a></span>FloatingPoint()</h2>
  177. <div class="memitem">
  178. <div class="memproto">
  179. <div class="memtemplate">
  180. template&lt;typename RawType&gt; </div>
  181. <table class="mlabels">
  182. <tr>
  183. <td class="mlabels-left">
  184. <table class="memname">
  185. <tr>
  186. <td class="memname"><a class="el" href="classtesting_1_1internal_1_1_floating_point.html">testing::internal::FloatingPoint</a>&lt; RawType &gt;::<a class="el" href="classtesting_1_1internal_1_1_floating_point.html">FloatingPoint</a> </td>
  187. <td>(</td>
  188. <td class="paramtype">const RawType &amp;&#160;</td>
  189. <td class="paramname"><em>x</em></td><td>)</td>
  190. <td></td>
  191. </tr>
  192. </table>
  193. </td>
  194. <td class="mlabels-right">
  195. <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">explicit</span></span> </td>
  196. </tr>
  197. </table>
  198. </div><div class="memdoc">
  199. <p class="definition">Definition at line <a class="el" href="gtest_8h_source.html#l06735">6735</a> of file <a class="el" href="gtest_8h_source.html">gtest.h</a>.</p>
  200. </div>
  201. </div>
  202. <h2 class="groupheader">Member Function Documentation</h2>
  203. <a id="a965214c1af2f9ac5adb1393794aa81e5"></a>
  204. <h2 class="memtitle"><span class="permalink"><a href="#a965214c1af2f9ac5adb1393794aa81e5">&#9670;&nbsp;</a></span>AlmostEquals()</h2>
  205. <div class="memitem">
  206. <div class="memproto">
  207. <div class="memtemplate">
  208. template&lt;typename RawType&gt; </div>
  209. <table class="mlabels">
  210. <tr>
  211. <td class="mlabels-left">
  212. <table class="memname">
  213. <tr>
  214. <td class="memname">bool <a class="el" href="classtesting_1_1internal_1_1_floating_point.html">testing::internal::FloatingPoint</a>&lt; RawType &gt;::AlmostEquals </td>
  215. <td>(</td>
  216. <td class="paramtype">const <a class="el" href="classtesting_1_1internal_1_1_floating_point.html">FloatingPoint</a>&lt; RawType &gt; &amp;&#160;</td>
  217. <td class="paramname"><em>rhs</em></td><td>)</td>
  218. <td> const</td>
  219. </tr>
  220. </table>
  221. </td>
  222. <td class="mlabels-right">
  223. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  224. </tr>
  225. </table>
  226. </div><div class="memdoc">
  227. <p class="definition">Definition at line <a class="el" href="gtest_8h_source.html#l06783">6783</a> of file <a class="el" href="gtest_8h_source.html">gtest.h</a>.</p>
  228. </div>
  229. </div>
  230. <a id="aab053be914bdc9e507c0db89740c318c"></a>
  231. <h2 class="memtitle"><span class="permalink"><a href="#aab053be914bdc9e507c0db89740c318c">&#9670;&nbsp;</a></span>bits()</h2>
  232. <div class="memitem">
  233. <div class="memproto">
  234. <div class="memtemplate">
  235. template&lt;typename RawType&gt; </div>
  236. <table class="mlabels">
  237. <tr>
  238. <td class="mlabels-left">
  239. <table class="memname">
  240. <tr>
  241. <td class="memname">const <a class="el" href="classtesting_1_1internal_1_1_floating_point.html#abf228bf6cd48f12c8b44c85b4971a731">Bits</a>&amp; <a class="el" href="classtesting_1_1internal_1_1_floating_point.html">testing::internal::FloatingPoint</a>&lt; RawType &gt;::bits </td>
  242. <td>(</td>
  243. <td class="paramname"></td><td>)</td>
  244. <td> const</td>
  245. </tr>
  246. </table>
  247. </td>
  248. <td class="mlabels-right">
  249. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  250. </tr>
  251. </table>
  252. </div><div class="memdoc">
  253. <p class="definition">Definition at line <a class="el" href="gtest_8h_source.html#l06759">6759</a> of file <a class="el" href="gtest_8h_source.html">gtest.h</a>.</p>
  254. </div>
  255. </div>
  256. <a id="af6bf8fab8df572ecb137a3516ff390ae"></a>
  257. <h2 class="memtitle"><span class="permalink"><a href="#af6bf8fab8df572ecb137a3516ff390ae">&#9670;&nbsp;</a></span>exponent_bits()</h2>
  258. <div class="memitem">
  259. <div class="memproto">
  260. <div class="memtemplate">
  261. template&lt;typename RawType&gt; </div>
  262. <table class="mlabels">
  263. <tr>
  264. <td class="mlabels-left">
  265. <table class="memname">
  266. <tr>
  267. <td class="memname"><a class="el" href="classtesting_1_1internal_1_1_floating_point.html#abf228bf6cd48f12c8b44c85b4971a731">Bits</a> <a class="el" href="classtesting_1_1internal_1_1_floating_point.html">testing::internal::FloatingPoint</a>&lt; RawType &gt;::exponent_bits </td>
  268. <td>(</td>
  269. <td class="paramname"></td><td>)</td>
  270. <td> const</td>
  271. </tr>
  272. </table>
  273. </td>
  274. <td class="mlabels-right">
  275. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  276. </tr>
  277. </table>
  278. </div><div class="memdoc">
  279. <p class="definition">Definition at line <a class="el" href="gtest_8h_source.html#l06762">6762</a> of file <a class="el" href="gtest_8h_source.html">gtest.h</a>.</p>
  280. </div>
  281. </div>
  282. <a id="aa17337e50a2ac855719bc0676529558f"></a>
  283. <h2 class="memtitle"><span class="permalink"><a href="#aa17337e50a2ac855719bc0676529558f">&#9670;&nbsp;</a></span>fraction_bits()</h2>
  284. <div class="memitem">
  285. <div class="memproto">
  286. <div class="memtemplate">
  287. template&lt;typename RawType&gt; </div>
  288. <table class="mlabels">
  289. <tr>
  290. <td class="mlabels-left">
  291. <table class="memname">
  292. <tr>
  293. <td class="memname"><a class="el" href="classtesting_1_1internal_1_1_floating_point.html#abf228bf6cd48f12c8b44c85b4971a731">Bits</a> <a class="el" href="classtesting_1_1internal_1_1_floating_point.html">testing::internal::FloatingPoint</a>&lt; RawType &gt;::fraction_bits </td>
  294. <td>(</td>
  295. <td class="paramname"></td><td>)</td>
  296. <td> const</td>
  297. </tr>
  298. </table>
  299. </td>
  300. <td class="mlabels-right">
  301. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  302. </tr>
  303. </table>
  304. </div><div class="memdoc">
  305. <p class="definition">Definition at line <a class="el" href="gtest_8h_source.html#l06765">6765</a> of file <a class="el" href="gtest_8h_source.html">gtest.h</a>.</p>
  306. </div>
  307. </div>
  308. <a id="a460027cc19cf01ae8e09cc3796b2b575"></a>
  309. <h2 class="memtitle"><span class="permalink"><a href="#a460027cc19cf01ae8e09cc3796b2b575">&#9670;&nbsp;</a></span>Infinity()</h2>
  310. <div class="memitem">
  311. <div class="memproto">
  312. <div class="memtemplate">
  313. template&lt;typename RawType&gt; </div>
  314. <table class="mlabels">
  315. <tr>
  316. <td class="mlabels-left">
  317. <table class="memname">
  318. <tr>
  319. <td class="memname">static RawType <a class="el" href="classtesting_1_1internal_1_1_floating_point.html">testing::internal::FloatingPoint</a>&lt; RawType &gt;::Infinity </td>
  320. <td>(</td>
  321. <td class="paramname"></td><td>)</td>
  322. <td></td>
  323. </tr>
  324. </table>
  325. </td>
  326. <td class="mlabels-right">
  327. <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span> </td>
  328. </tr>
  329. </table>
  330. </div><div class="memdoc">
  331. <p class="definition">Definition at line <a class="el" href="gtest_8h_source.html#l06749">6749</a> of file <a class="el" href="gtest_8h_source.html">gtest.h</a>.</p>
  332. </div>
  333. </div>
  334. <a id="a1fc654fd206efa98e480aa1e034f30d5"></a>
  335. <h2 class="memtitle"><span class="permalink"><a href="#a1fc654fd206efa98e480aa1e034f30d5">&#9670;&nbsp;</a></span>is_nan()</h2>
  336. <div class="memitem">
  337. <div class="memproto">
  338. <div class="memtemplate">
  339. template&lt;typename RawType&gt; </div>
  340. <table class="mlabels">
  341. <tr>
  342. <td class="mlabels-left">
  343. <table class="memname">
  344. <tr>
  345. <td class="memname">bool <a class="el" href="classtesting_1_1internal_1_1_floating_point.html">testing::internal::FloatingPoint</a>&lt; RawType &gt;::is_nan </td>
  346. <td>(</td>
  347. <td class="paramname"></td><td>)</td>
  348. <td> const</td>
  349. </tr>
  350. </table>
  351. </td>
  352. <td class="mlabels-right">
  353. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  354. </tr>
  355. </table>
  356. </div><div class="memdoc">
  357. <p class="definition">Definition at line <a class="el" href="gtest_8h_source.html#l06771">6771</a> of file <a class="el" href="gtest_8h_source.html">gtest.h</a>.</p>
  358. </div>
  359. </div>
  360. <a id="aae5954d8a57d3ff0987c6930cb68e114"></a>
  361. <h2 class="memtitle"><span class="permalink"><a href="#aae5954d8a57d3ff0987c6930cb68e114">&#9670;&nbsp;</a></span>Max() <span class="overload">[1/3]</span></h2>
  362. <div class="memitem">
  363. <div class="memproto">
  364. <div class="memtemplate">
  365. template&lt;typename RawType&gt; </div>
  366. <table class="mlabels">
  367. <tr>
  368. <td class="mlabels-left">
  369. <table class="memname">
  370. <tr>
  371. <td class="memname">static RawType <a class="el" href="classtesting_1_1internal_1_1_floating_point.html">testing::internal::FloatingPoint</a>&lt; RawType &gt;::Max </td>
  372. <td>(</td>
  373. <td class="paramname"></td><td>)</td>
  374. <td></td>
  375. </tr>
  376. </table>
  377. </td>
  378. <td class="mlabels-right">
  379. <span class="mlabels"><span class="mlabel">static</span></span> </td>
  380. </tr>
  381. </table>
  382. </div><div class="memdoc">
  383. </div>
  384. </div>
  385. <a id="af2eda9331e679229a1baa3404b57b51d"></a>
  386. <h2 class="memtitle"><span class="permalink"><a href="#af2eda9331e679229a1baa3404b57b51d">&#9670;&nbsp;</a></span>Max() <span class="overload">[2/3]</span></h2>
  387. <div class="memitem">
  388. <div class="memproto">
  389. <div class="memtemplate">
  390. template&lt;&gt; </div>
  391. <table class="mlabels">
  392. <tr>
  393. <td class="mlabels-left">
  394. <table class="memname">
  395. <tr>
  396. <td class="memname">float <a class="el" href="classtesting_1_1internal_1_1_floating_point.html">testing::internal::FloatingPoint</a>&lt; float &gt;::Max </td>
  397. <td>(</td>
  398. <td class="paramname"></td><td>)</td>
  399. <td></td>
  400. </tr>
  401. </table>
  402. </td>
  403. <td class="mlabels-right">
  404. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  405. </tr>
  406. </table>
  407. </div><div class="memdoc">
  408. <p class="definition">Definition at line <a class="el" href="gtest_8h_source.html#l06839">6839</a> of file <a class="el" href="gtest_8h_source.html">gtest.h</a>.</p>
  409. </div>
  410. </div>
  411. <a id="afc2e85c0e886cb13b2300e961c9a9648"></a>
  412. <h2 class="memtitle"><span class="permalink"><a href="#afc2e85c0e886cb13b2300e961c9a9648">&#9670;&nbsp;</a></span>Max() <span class="overload">[3/3]</span></h2>
  413. <div class="memitem">
  414. <div class="memproto">
  415. <div class="memtemplate">
  416. template&lt;&gt; </div>
  417. <table class="mlabels">
  418. <tr>
  419. <td class="mlabels-left">
  420. <table class="memname">
  421. <tr>
  422. <td class="memname">double <a class="el" href="classtesting_1_1internal_1_1_floating_point.html">testing::internal::FloatingPoint</a>&lt; double &gt;::Max </td>
  423. <td>(</td>
  424. <td class="paramname"></td><td>)</td>
  425. <td></td>
  426. </tr>
  427. </table>
  428. </td>
  429. <td class="mlabels-right">
  430. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  431. </tr>
  432. </table>
  433. </div><div class="memdoc">
  434. <p class="definition">Definition at line <a class="el" href="gtest_8h_source.html#l06841">6841</a> of file <a class="el" href="gtest_8h_source.html">gtest.h</a>.</p>
  435. </div>
  436. </div>
  437. <a id="ac551f793522e54fbd8a25acb79eac5b1"></a>
  438. <h2 class="memtitle"><span class="permalink"><a href="#ac551f793522e54fbd8a25acb79eac5b1">&#9670;&nbsp;</a></span>ReinterpretBits()</h2>
  439. <div class="memitem">
  440. <div class="memproto">
  441. <div class="memtemplate">
  442. template&lt;typename RawType&gt; </div>
  443. <table class="mlabels">
  444. <tr>
  445. <td class="mlabels-left">
  446. <table class="memname">
  447. <tr>
  448. <td class="memname">static RawType <a class="el" href="classtesting_1_1internal_1_1_floating_point.html">testing::internal::FloatingPoint</a>&lt; RawType &gt;::ReinterpretBits </td>
  449. <td>(</td>
  450. <td class="paramtype">const <a class="el" href="classtesting_1_1internal_1_1_floating_point.html#abf228bf6cd48f12c8b44c85b4971a731">Bits</a>&#160;</td>
  451. <td class="paramname"><em>bits</em></td><td>)</td>
  452. <td></td>
  453. </tr>
  454. </table>
  455. </td>
  456. <td class="mlabels-right">
  457. <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span> </td>
  458. </tr>
  459. </table>
  460. </div><div class="memdoc">
  461. <p class="definition">Definition at line <a class="el" href="gtest_8h_source.html#l06742">6742</a> of file <a class="el" href="gtest_8h_source.html">gtest.h</a>.</p>
  462. </div>
  463. </div>
  464. <a id="afb8a816bb598225d775caaf43a893ef0"></a>
  465. <h2 class="memtitle"><span class="permalink"><a href="#afb8a816bb598225d775caaf43a893ef0">&#9670;&nbsp;</a></span>sign_bit()</h2>
  466. <div class="memitem">
  467. <div class="memproto">
  468. <div class="memtemplate">
  469. template&lt;typename RawType&gt; </div>
  470. <table class="mlabels">
  471. <tr>
  472. <td class="mlabels-left">
  473. <table class="memname">
  474. <tr>
  475. <td class="memname"><a class="el" href="classtesting_1_1internal_1_1_floating_point.html#abf228bf6cd48f12c8b44c85b4971a731">Bits</a> <a class="el" href="classtesting_1_1internal_1_1_floating_point.html">testing::internal::FloatingPoint</a>&lt; RawType &gt;::sign_bit </td>
  476. <td>(</td>
  477. <td class="paramname"></td><td>)</td>
  478. <td> const</td>
  479. </tr>
  480. </table>
  481. </td>
  482. <td class="mlabels-right">
  483. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  484. </tr>
  485. </table>
  486. </div><div class="memdoc">
  487. <p class="definition">Definition at line <a class="el" href="gtest_8h_source.html#l06768">6768</a> of file <a class="el" href="gtest_8h_source.html">gtest.h</a>.</p>
  488. </div>
  489. </div>
  490. <h2 class="groupheader">Member Data Documentation</h2>
  491. <a id="ab819d2e8f93e9e482373999f0f8d71b9"></a>
  492. <h2 class="memtitle"><span class="permalink"><a href="#ab819d2e8f93e9e482373999f0f8d71b9">&#9670;&nbsp;</a></span>kBitCount</h2>
  493. <div class="memitem">
  494. <div class="memproto">
  495. <div class="memtemplate">
  496. template&lt;typename RawType&gt; </div>
  497. <table class="mlabels">
  498. <tr>
  499. <td class="mlabels-left">
  500. <table class="memname">
  501. <tr>
  502. <td class="memname">const size_t <a class="el" href="classtesting_1_1internal_1_1_floating_point.html">testing::internal::FloatingPoint</a>&lt; RawType &gt;::kBitCount = 8*sizeof(RawType)</td>
  503. </tr>
  504. </table>
  505. </td>
  506. <td class="mlabels-right">
  507. <span class="mlabels"><span class="mlabel">static</span></span> </td>
  508. </tr>
  509. </table>
  510. </div><div class="memdoc">
  511. <p class="definition">Definition at line <a class="el" href="gtest_8h_source.html#l06696">6696</a> of file <a class="el" href="gtest_8h_source.html">gtest.h</a>.</p>
  512. </div>
  513. </div>
  514. <a id="a1973d843c00781053d3073daa8a40119"></a>
  515. <h2 class="memtitle"><span class="permalink"><a href="#a1973d843c00781053d3073daa8a40119">&#9670;&nbsp;</a></span>kExponentBitCount</h2>
  516. <div class="memitem">
  517. <div class="memproto">
  518. <div class="memtemplate">
  519. template&lt;typename RawType&gt; </div>
  520. <table class="mlabels">
  521. <tr>
  522. <td class="mlabels-left">
  523. <table class="memname">
  524. <tr>
  525. <td class="memname">const size_t <a class="el" href="classtesting_1_1internal_1_1_floating_point.html">testing::internal::FloatingPoint</a>&lt; RawType &gt;::kExponentBitCount = <a class="el" href="classtesting_1_1internal_1_1_floating_point.html#ab819d2e8f93e9e482373999f0f8d71b9">kBitCount</a> - 1 - <a class="el" href="classtesting_1_1internal_1_1_floating_point.html#a0b756a6d2a4f5f5b41ca79651c06c043">kFractionBitCount</a></td>
  526. </tr>
  527. </table>
  528. </td>
  529. <td class="mlabels-right">
  530. <span class="mlabels"><span class="mlabel">static</span></span> </td>
  531. </tr>
  532. </table>
  533. </div><div class="memdoc">
  534. <p class="definition">Definition at line <a class="el" href="gtest_8h_source.html#l06703">6703</a> of file <a class="el" href="gtest_8h_source.html">gtest.h</a>.</p>
  535. </div>
  536. </div>
  537. <a id="a66065dfc4d5f41100f686159637af23b"></a>
  538. <h2 class="memtitle"><span class="permalink"><a href="#a66065dfc4d5f41100f686159637af23b">&#9670;&nbsp;</a></span>kExponentBitMask</h2>
  539. <div class="memitem">
  540. <div class="memproto">
  541. <div class="memtemplate">
  542. template&lt;typename RawType&gt; </div>
  543. <table class="mlabels">
  544. <tr>
  545. <td class="mlabels-left">
  546. <table class="memname">
  547. <tr>
  548. <td class="memname">const <a class="el" href="classtesting_1_1internal_1_1_floating_point.html#abf228bf6cd48f12c8b44c85b4971a731">Bits</a> <a class="el" href="classtesting_1_1internal_1_1_floating_point.html">testing::internal::FloatingPoint</a>&lt; RawType &gt;::kExponentBitMask = ~(<a class="el" href="classtesting_1_1internal_1_1_floating_point.html#aca98b5ea6f2222a66a82e52421682efa">kSignBitMask</a> | <a class="el" href="classtesting_1_1internal_1_1_floating_point.html#a0ac75d4ffd24f14bca452abe8a718da1">kFractionBitMask</a>)</td>
  549. </tr>
  550. </table>
  551. </td>
  552. <td class="mlabels-right">
  553. <span class="mlabels"><span class="mlabel">static</span></span> </td>
  554. </tr>
  555. </table>
  556. </div><div class="memdoc">
  557. <p class="definition">Definition at line <a class="el" href="gtest_8h_source.html#l06713">6713</a> of file <a class="el" href="gtest_8h_source.html">gtest.h</a>.</p>
  558. </div>
  559. </div>
  560. <a id="a0b756a6d2a4f5f5b41ca79651c06c043"></a>
  561. <h2 class="memtitle"><span class="permalink"><a href="#a0b756a6d2a4f5f5b41ca79651c06c043">&#9670;&nbsp;</a></span>kFractionBitCount</h2>
  562. <div class="memitem">
  563. <div class="memproto">
  564. <div class="memtemplate">
  565. template&lt;typename RawType&gt; </div>
  566. <table class="mlabels">
  567. <tr>
  568. <td class="mlabels-left">
  569. <table class="memname">
  570. <tr>
  571. <td class="memname">const size_t <a class="el" href="classtesting_1_1internal_1_1_floating_point.html">testing::internal::FloatingPoint</a>&lt; RawType &gt;::kFractionBitCount</td>
  572. </tr>
  573. </table>
  574. </td>
  575. <td class="mlabels-right">
  576. <span class="mlabels"><span class="mlabel">static</span></span> </td>
  577. </tr>
  578. </table>
  579. </div><div class="memdoc">
  580. <b>Initial value:</b><div class="fragment"><div class="line">=</div><div class="line"> std::numeric_limits&lt;RawType&gt;::digits - 1</div></div><!-- fragment -->
  581. <p class="definition">Definition at line <a class="el" href="gtest_8h_source.html#l06699">6699</a> of file <a class="el" href="gtest_8h_source.html">gtest.h</a>.</p>
  582. </div>
  583. </div>
  584. <a id="a0ac75d4ffd24f14bca452abe8a718da1"></a>
  585. <h2 class="memtitle"><span class="permalink"><a href="#a0ac75d4ffd24f14bca452abe8a718da1">&#9670;&nbsp;</a></span>kFractionBitMask</h2>
  586. <div class="memitem">
  587. <div class="memproto">
  588. <div class="memtemplate">
  589. template&lt;typename RawType&gt; </div>
  590. <table class="mlabels">
  591. <tr>
  592. <td class="mlabels-left">
  593. <table class="memname">
  594. <tr>
  595. <td class="memname">const <a class="el" href="classtesting_1_1internal_1_1_floating_point.html#abf228bf6cd48f12c8b44c85b4971a731">Bits</a> <a class="el" href="classtesting_1_1internal_1_1_floating_point.html">testing::internal::FloatingPoint</a>&lt; RawType &gt;::kFractionBitMask</td>
  596. </tr>
  597. </table>
  598. </td>
  599. <td class="mlabels-right">
  600. <span class="mlabels"><span class="mlabel">static</span></span> </td>
  601. </tr>
  602. </table>
  603. </div><div class="memdoc">
  604. <b>Initial value:</b><div class="fragment"><div class="line">=</div><div class="line"> ~static_cast&lt;<a class="code" href="classtesting_1_1internal_1_1_floating_point.html#abf228bf6cd48f12c8b44c85b4971a731">Bits</a>&gt;(0) &gt;&gt; (<a class="code" href="classtesting_1_1internal_1_1_floating_point.html#a1973d843c00781053d3073daa8a40119">kExponentBitCount</a> + 1)</div></div><!-- fragment -->
  605. <p class="definition">Definition at line <a class="el" href="gtest_8h_source.html#l06709">6709</a> of file <a class="el" href="gtest_8h_source.html">gtest.h</a>.</p>
  606. </div>
  607. </div>
  608. <a id="aac498b3714d93f8e88cdc30e4c5935f6"></a>
  609. <h2 class="memtitle"><span class="permalink"><a href="#aac498b3714d93f8e88cdc30e4c5935f6">&#9670;&nbsp;</a></span>kMaxUlps</h2>
  610. <div class="memitem">
  611. <div class="memproto">
  612. <div class="memtemplate">
  613. template&lt;typename RawType&gt; </div>
  614. <table class="mlabels">
  615. <tr>
  616. <td class="mlabels-left">
  617. <table class="memname">
  618. <tr>
  619. <td class="memname">const size_t <a class="el" href="classtesting_1_1internal_1_1_floating_point.html">testing::internal::FloatingPoint</a>&lt; RawType &gt;::kMaxUlps = 4</td>
  620. </tr>
  621. </table>
  622. </td>
  623. <td class="mlabels-right">
  624. <span class="mlabels"><span class="mlabel">static</span></span> </td>
  625. </tr>
  626. </table>
  627. </div><div class="memdoc">
  628. <p class="definition">Definition at line <a class="el" href="gtest_8h_source.html#l06727">6727</a> of file <a class="el" href="gtest_8h_source.html">gtest.h</a>.</p>
  629. </div>
  630. </div>
  631. <a id="aca98b5ea6f2222a66a82e52421682efa"></a>
  632. <h2 class="memtitle"><span class="permalink"><a href="#aca98b5ea6f2222a66a82e52421682efa">&#9670;&nbsp;</a></span>kSignBitMask</h2>
  633. <div class="memitem">
  634. <div class="memproto">
  635. <div class="memtemplate">
  636. template&lt;typename RawType&gt; </div>
  637. <table class="mlabels">
  638. <tr>
  639. <td class="mlabels-left">
  640. <table class="memname">
  641. <tr>
  642. <td class="memname">const <a class="el" href="classtesting_1_1internal_1_1_floating_point.html#abf228bf6cd48f12c8b44c85b4971a731">Bits</a> <a class="el" href="classtesting_1_1internal_1_1_floating_point.html">testing::internal::FloatingPoint</a>&lt; RawType &gt;::kSignBitMask = static_cast&lt;<a class="el" href="classtesting_1_1internal_1_1_floating_point.html#abf228bf6cd48f12c8b44c85b4971a731">Bits</a>&gt;(1) &lt;&lt; (<a class="el" href="classtesting_1_1internal_1_1_floating_point.html#ab819d2e8f93e9e482373999f0f8d71b9">kBitCount</a> - 1)</td>
  643. </tr>
  644. </table>
  645. </td>
  646. <td class="mlabels-right">
  647. <span class="mlabels"><span class="mlabel">static</span></span> </td>
  648. </tr>
  649. </table>
  650. </div><div class="memdoc">
  651. <p class="definition">Definition at line <a class="el" href="gtest_8h_source.html#l06706">6706</a> of file <a class="el" href="gtest_8h_source.html">gtest.h</a>.</p>
  652. </div>
  653. </div>
  654. <hr/>The documentation for this class was generated from the following file:<ul>
  655. <li>test/eclipse-cygwin/lib/gtest/<a class="el" href="gtest_8h_source.html">gtest.h</a></li>
  656. </ul>
  657. </div><!-- contents -->
  658. </div><!-- doc-content -->
  659. <!-- start footer part -->
  660. <div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  661. <ul>
  662. <li class="navelem"><a class="el" href="namespacetesting.html">testing</a></li><li class="navelem"><a class="el" href="namespacetesting_1_1internal.html">internal</a></li><li class="navelem"><a class="el" href="classtesting_1_1internal_1_1_floating_point.html">FloatingPoint</a></li>
  663. <li class="footer">Generated by
  664. <a href="http://www.doxygen.org/index.html">
  665. <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.14 </li>
  666. </ul>
  667. </div>
  668. </body>
  669. </html>