blob: 8f3f2bef11b669eab7ccefa617a14097351f90e6 [file] [log] [blame]
<!-- HTML header for doxygen 1.8.15-->
<!-- Remember to use version doxygen 1.8.15 +-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.15"/>
<meta name="robots" content="NOINDEX, NOFOLLOW" /> <!-- Prevent indexing by search engines -->
<title>Compute Library: RawFloat Union Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(initResizable);
/* @license-end */</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
extensions: ["tex2jax.js"],
jax: ["input/TeX","output/HTML-CSS"],
});
</script><script type="text/javascript" async="async" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="stylesheet.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<img alt="Compute Library" src="https://raw.githubusercontent.com/ARM-software/ComputeLibrary/gh-pages/ACL_logo.png" style="max-width: 100%;margin-top: 15px;margin-left: 10px"/>
<td style="padding-left: 0.5em;">
<div id="projectname">
&#160;<span id="projectnumber">20.02.1</span>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.15 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
<div id="nav-tree">
<div id="nav-tree-contents">
<div id="nav-sync" class="sync"></div>
</div>
</div>
<div id="splitbar" style="-moz-user-select:none;"
class="ui-resizable-handle">
</div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('unionarm__compute_1_1helpers_1_1float__ops_1_1_raw_float.xhtml','');});
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div class="header">
<div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-attribs">Data Fields</a> </div>
<div class="headertitle">
<div class="title">RawFloat Union Reference</div> </div>
</div><!--header-->
<div class="contents">
<p><code>#include &lt;<a class="el" href="float__ops_8h_source.xhtml">float_ops.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:aa3817c2ed0584cd3c3c818ff598bacb9"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="unionarm__compute_1_1helpers_1_1float__ops_1_1_raw_float.xhtml#aa3817c2ed0584cd3c3c818ff598bacb9">RawFloat</a> (float val)</td></tr>
<tr class="memdesc:aa3817c2ed0584cd3c3c818ff598bacb9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructor. <a href="#aa3817c2ed0584cd3c3c818ff598bacb9">More...</a><br /></td></tr>
<tr class="separator:aa3817c2ed0584cd3c3c818ff598bacb9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a20d424219004c098e3c7e845e391afb6"><td class="memItemLeft" align="right" valign="top">int32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="unionarm__compute_1_1helpers_1_1float__ops_1_1_raw_float.xhtml#a20d424219004c098e3c7e845e391afb6">sign</a> () const</td></tr>
<tr class="memdesc:a20d424219004c098e3c7e845e391afb6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Extract sign of floating point number. <a href="#a20d424219004c098e3c7e845e391afb6">More...</a><br /></td></tr>
<tr class="separator:a20d424219004c098e3c7e845e391afb6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3fda27eb4e4896945317480496290159"><td class="memItemLeft" align="right" valign="top">int32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="unionarm__compute_1_1helpers_1_1float__ops_1_1_raw_float.xhtml#a3fda27eb4e4896945317480496290159">exponent</a> () const</td></tr>
<tr class="memdesc:a3fda27eb4e4896945317480496290159"><td class="mdescLeft">&#160;</td><td class="mdescRight">Extract exponent of floating point number. <a href="#a3fda27eb4e4896945317480496290159">More...</a><br /></td></tr>
<tr class="separator:a3fda27eb4e4896945317480496290159"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2331cafeb7bdfe99da1a767ce41d550d"><td class="memItemLeft" align="right" valign="top">int32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="unionarm__compute_1_1helpers_1_1float__ops_1_1_raw_float.xhtml#a2331cafeb7bdfe99da1a767ce41d550d">mantissa</a> () const</td></tr>
<tr class="memdesc:a2331cafeb7bdfe99da1a767ce41d550d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Extract mantissa of floating point number. <a href="#a2331cafeb7bdfe99da1a767ce41d550d">More...</a><br /></td></tr>
<tr class="separator:a2331cafeb7bdfe99da1a767ce41d550d"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Data Fields</h2></td></tr>
<tr class="memitem:a9183041de7aec86af61a14ffe5f3758e"><td class="memItemLeft" align="right" valign="top">int32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="unionarm__compute_1_1helpers_1_1float__ops_1_1_raw_float.xhtml#a9183041de7aec86af61a14ffe5f3758e">i32</a></td></tr>
<tr class="separator:a9183041de7aec86af61a14ffe5f3758e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7d886905c667c4e8e91251b6a3a98f39"><td class="memItemLeft" align="right" valign="top">float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="unionarm__compute_1_1helpers_1_1float__ops_1_1_raw_float.xhtml#a7d886905c667c4e8e91251b6a3a98f39">f32</a></td></tr>
<tr class="separator:a7d886905c667c4e8e91251b6a3a98f39"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock">
<p class="definition">Definition at line <a class="el" href="float__ops_8h_source.xhtml#l00033">33</a> of file <a class="el" href="float__ops_8h_source.xhtml">float_ops.h</a>.</p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="aa3817c2ed0584cd3c3c818ff598bacb9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa3817c2ed0584cd3c3c818ff598bacb9">&#9670;&nbsp;</a></span>RawFloat()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="unionarm__compute_1_1helpers_1_1float__ops_1_1_raw_float.xhtml">RawFloat</a> </td>
<td>(</td>
<td class="paramtype">float&#160;</td>
<td class="paramname"><em>val</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">explicit</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Constructor. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramdir">[in]</td><td class="paramname">val</td><td>Floating-point value </td></tr>
</table>
</dd>
</dl>
<p class="definition">Definition at line <a class="el" href="float__ops_8h_source.xhtml#l00039">39</a> of file <a class="el" href="float__ops_8h_source.xhtml">float_ops.h</a>.</p>
<div class="fragment"><div class="line"><a name="l00040"></a><span class="lineno"> 40</span>&#160; : <a class="code" href="unionarm__compute_1_1helpers_1_1float__ops_1_1_raw_float.xhtml#a7d886905c667c4e8e91251b6a3a98f39">f32</a>(val)</div><div class="line"><a name="l00041"></a><span class="lineno"> 41</span>&#160; {</div><div class="line"><a name="l00042"></a><span class="lineno"> 42</span>&#160; }</div><div class="ttc" id="unionarm__compute_1_1helpers_1_1float__ops_1_1_raw_float_xhtml_a7d886905c667c4e8e91251b6a3a98f39"><div class="ttname"><a href="unionarm__compute_1_1helpers_1_1float__ops_1_1_raw_float.xhtml#a7d886905c667c4e8e91251b6a3a98f39">arm_compute::helpers::float_ops::RawFloat::f32</a></div><div class="ttdeci">float f32</div><div class="ttdef"><b>Definition:</b> <a href="float__ops_8h_source.xhtml#l00069">float_ops.h:69</a></div></div>
</div><!-- fragment -->
</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a3fda27eb4e4896945317480496290159"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3fda27eb4e4896945317480496290159">&#9670;&nbsp;</a></span>exponent()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">int32_t exponent </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Extract exponent of floating point number. </p>
<dl class="section return"><dt>Returns</dt><dd>Exponent of floating point number </dd></dl>
<p class="definition">Definition at line <a class="el" href="float__ops_8h_source.xhtml#l00055">55</a> of file <a class="el" href="float__ops_8h_source.xhtml">float_ops.h</a>.</p>
<div class="fragment"><div class="line"><a name="l00056"></a><span class="lineno"> 56</span>&#160; {</div><div class="line"><a name="l00057"></a><span class="lineno"> 57</span>&#160; <span class="keywordflow">return</span> (<a class="code" href="unionarm__compute_1_1helpers_1_1float__ops_1_1_raw_float.xhtml#a9183041de7aec86af61a14ffe5f3758e">i32</a> &gt;&gt; 23) &amp; 0xFF;</div><div class="line"><a name="l00058"></a><span class="lineno"> 58</span>&#160; }</div><div class="ttc" id="unionarm__compute_1_1helpers_1_1float__ops_1_1_raw_float_xhtml_a9183041de7aec86af61a14ffe5f3758e"><div class="ttname"><a href="unionarm__compute_1_1helpers_1_1float__ops_1_1_raw_float.xhtml#a9183041de7aec86af61a14ffe5f3758e">arm_compute::helpers::float_ops::RawFloat::i32</a></div><div class="ttdeci">int32_t i32</div><div class="ttdef"><b>Definition:</b> <a href="float__ops_8h_source.xhtml#l00068">float_ops.h:68</a></div></div>
</div><!-- fragment -->
<p class="reference">References <a class="el" href="float__ops_8h_source.xhtml#l00068">RawFloat::i32</a>.</p>
</div>
</div>
<a id="a2331cafeb7bdfe99da1a767ce41d550d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2331cafeb7bdfe99da1a767ce41d550d">&#9670;&nbsp;</a></span>mantissa()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">int32_t mantissa </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Extract mantissa of floating point number. </p>
<dl class="section return"><dt>Returns</dt><dd>Mantissa of floating point number </dd></dl>
<p class="definition">Definition at line <a class="el" href="float__ops_8h_source.xhtml#l00063">63</a> of file <a class="el" href="float__ops_8h_source.xhtml">float_ops.h</a>.</p>
<div class="fragment"><div class="line"><a name="l00064"></a><span class="lineno"> 64</span>&#160; {</div><div class="line"><a name="l00065"></a><span class="lineno"> 65</span>&#160; <span class="keywordflow">return</span> <a class="code" href="unionarm__compute_1_1helpers_1_1float__ops_1_1_raw_float.xhtml#a9183041de7aec86af61a14ffe5f3758e">i32</a> &amp; 0x007FFFFF;</div><div class="line"><a name="l00066"></a><span class="lineno"> 66</span>&#160; }</div><div class="ttc" id="unionarm__compute_1_1helpers_1_1float__ops_1_1_raw_float_xhtml_a9183041de7aec86af61a14ffe5f3758e"><div class="ttname"><a href="unionarm__compute_1_1helpers_1_1float__ops_1_1_raw_float.xhtml#a9183041de7aec86af61a14ffe5f3758e">arm_compute::helpers::float_ops::RawFloat::i32</a></div><div class="ttdeci">int32_t i32</div><div class="ttdef"><b>Definition:</b> <a href="float__ops_8h_source.xhtml#l00068">float_ops.h:68</a></div></div>
</div><!-- fragment -->
<p class="reference">References <a class="el" href="float__ops_8h_source.xhtml#l00068">RawFloat::i32</a>.</p>
</div>
</div>
<a id="a20d424219004c098e3c7e845e391afb6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a20d424219004c098e3c7e845e391afb6">&#9670;&nbsp;</a></span>sign()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">int32_t sign </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Extract sign of floating point number. </p>
<dl class="section return"><dt>Returns</dt><dd>Sign of floating point number </dd></dl>
<p class="definition">Definition at line <a class="el" href="float__ops_8h_source.xhtml#l00047">47</a> of file <a class="el" href="float__ops_8h_source.xhtml">float_ops.h</a>.</p>
<div class="fragment"><div class="line"><a name="l00048"></a><span class="lineno"> 48</span>&#160; {</div><div class="line"><a name="l00049"></a><span class="lineno"> 49</span>&#160; <span class="keywordflow">return</span> <a class="code" href="unionarm__compute_1_1helpers_1_1float__ops_1_1_raw_float.xhtml#a9183041de7aec86af61a14ffe5f3758e">i32</a> &gt;&gt; 31;</div><div class="line"><a name="l00050"></a><span class="lineno"> 50</span>&#160; }</div><div class="ttc" id="unionarm__compute_1_1helpers_1_1float__ops_1_1_raw_float_xhtml_a9183041de7aec86af61a14ffe5f3758e"><div class="ttname"><a href="unionarm__compute_1_1helpers_1_1float__ops_1_1_raw_float.xhtml#a9183041de7aec86af61a14ffe5f3758e">arm_compute::helpers::float_ops::RawFloat::i32</a></div><div class="ttdeci">int32_t i32</div><div class="ttdef"><b>Definition:</b> <a href="float__ops_8h_source.xhtml#l00068">float_ops.h:68</a></div></div>
</div><!-- fragment -->
<p class="reference">References <a class="el" href="float__ops_8h_source.xhtml#l00068">RawFloat::i32</a>.</p>
</div>
</div>
<h2 class="groupheader">Field Documentation</h2>
<a id="a7d886905c667c4e8e91251b6a3a98f39"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7d886905c667c4e8e91251b6a3a98f39">&#9670;&nbsp;</a></span>f32</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">float f32</td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="float__ops_8h_source.xhtml#l00069">69</a> of file <a class="el" href="float__ops_8h_source.xhtml">float_ops.h</a>.</p>
</div>
</div>
<a id="a9183041de7aec86af61a14ffe5f3758e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9183041de7aec86af61a14ffe5f3758e">&#9670;&nbsp;</a></span>i32</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int32_t i32</td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="float__ops_8h_source.xhtml#l00068">68</a> of file <a class="el" href="float__ops_8h_source.xhtml">float_ops.h</a>.</p>
<p class="reference">Referenced by <a class="el" href="float__ops_8h_source.xhtml#l00055">RawFloat::exponent()</a>, <a class="el" href="float__ops_8h_source.xhtml#l00080">arm_compute::helpers::float_ops::is_equal_ulps()</a>, <a class="el" href="float__ops_8h_source.xhtml#l00063">RawFloat::mantissa()</a>, and <a class="el" href="float__ops_8h_source.xhtml#l00047">RawFloat::sign()</a>.</p>
</div>
</div>
<hr/>The documentation for this union was generated from the following file:<ul>
<li>arm_compute/core/utils/helpers/<a class="el" href="float__ops_8h_source.xhtml">float_ops.h</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="navelem"><a class="el" href="namespacearm__compute.xhtml">arm_compute</a></li><li class="navelem"><a class="el" href="namespacearm__compute_1_1helpers.xhtml">helpers</a></li><li class="navelem"><a class="el" href="namespacearm__compute_1_1helpers_1_1float__ops.xhtml">float_ops</a></li><li class="navelem"><a class="el" href="unionarm__compute_1_1helpers_1_1float__ops_1_1_raw_float.xhtml">RawFloat</a></li>
<li class="footer">Generated on Thu Mar 5 2020 16:07:18 for Compute Library by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.15 </li>
</ul>
</div>
</body>
</html>