| <!-- HTML header for doxygen 1.8.9.1--> |
| <!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.11"/> |
| <meta name="robots" content="NOINDEX, NOFOLLOW" /> <!-- Prevent indexing by search engines --> |
| <title>Compute Library: src/core/CL/cl_kernels/helpers_asymm.h Source File</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"> |
| $(document).ready(initResizable); |
| $(window).load(resizeHeight); |
| </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/javascript"> |
| $(document).ready(function() { init_search(); }); |
| </script> |
| <script type="text/x-mathjax-config"> |
| MathJax.Hub.Config({ |
| extensions: ["tex2jax.js"], |
| jax: ["input/TeX","output/HTML-CSS"], |
| }); |
| </script><script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js"></script> |
| <link href="doxygen.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;"> |
| <td style="padding-left: 0.5em;"> |
| <div id="projectname">Compute Library |
|  <span id="projectnumber">18.02</span> |
| </div> |
| </td> |
| </tr> |
| </tbody> |
| </table> |
| </div> |
| <!-- end header part --> |
| <!-- Generated by Doxygen 1.8.11 --> |
| <script type="text/javascript"> |
| var searchBox = new SearchBox("searchBox", "search",false,'Search'); |
| </script> |
| <div id="navrow1" class="tabs"> |
| <ul class="tablist"> |
| <li><a href="index.xhtml"><span>Main Page</span></a></li> |
| <li><a href="pages.xhtml"><span>Related Pages</span></a></li> |
| <li><a href="namespaces.xhtml"><span>Namespaces</span></a></li> |
| <li><a href="annotated.xhtml"><span>Data Structures</span></a></li> |
| <li class="current"><a href="files.xhtml"><span>Files</span></a></li> |
| <li> |
| <div id="MSearchBox" class="MSearchBoxInactive"> |
| <span class="left"> |
| <img id="MSearchSelect" src="search/mag_sel.png" |
| onmouseover="return searchBox.OnSearchSelectShow()" |
| onmouseout="return searchBox.OnSearchSelectHide()" |
| alt=""/> |
| <input type="text" id="MSearchField" value="Search" accesskey="S" |
| onfocus="searchBox.OnSearchFieldFocus(true)" |
| onblur="searchBox.OnSearchFieldFocus(false)" |
| onkeyup="searchBox.OnSearchFieldChange(event)"/> |
| </span><span class="right"> |
| <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a> |
| </span> |
| </div> |
| </li> |
| </ul> |
| </div> |
| <div id="navrow2" class="tabs2"> |
| <ul class="tablist"> |
| <li><a href="files.xhtml"><span>File List</span></a></li> |
| <li><a href="globals.xhtml"><span>Globals</span></a></li> |
| </ul> |
| </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"> |
| $(document).ready(function(){initNavTree('helpers__asymm_8h_source.xhtml','');}); |
| </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="headertitle"> |
| <div class="title">helpers_asymm.h</div> </div> |
| </div><!--header--> |
| <div class="contents"> |
| <a href="helpers__asymm_8h.xhtml">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">/*</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment"> * Copyright (c) 2017-2018 ARM Limited.</span></div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment"> *</span></div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment"> * SPDX-License-Identifier: MIT</span></div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment"> *</span></div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment"> * Permission is hereby granted, free of charge, to any person obtaining a copy</span></div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="comment"> * of this software and associated documentation files (the "Software"), to</span></div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="comment"> * deal in the Software without restriction, including without limitation the</span></div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="comment"> * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or</span></div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="comment"> * sell copies of the Software, and to permit persons to whom the Software is</span></div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="comment"> * furnished to do so, subject to the following conditions:</span></div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="comment"> *</span></div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="comment"> * The above copyright notice and this permission notice shall be included in all</span></div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="comment"> * copies or substantial portions of the Software.</span></div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="comment"> *</span></div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="comment"> * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR</span></div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="comment"> * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,</span></div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="comment"> * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE</span></div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="comment"> * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER</span></div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="comment"> * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,</span></div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="comment"> * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE</span></div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="comment"> * SOFTWARE.</span></div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <span class="comment"> */</span></div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="preprocessor">#ifndef ARM_COMPUTE_HELPERS_ASYMM_H</span></div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span> <span class="preprocessor">#define ARM_COMPUTE_HELPERS_ASYMM_H</span></div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span> </div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span> <span class="preprocessor">#include "<a class="code" href="helpers_8h.xhtml">helpers.h</a>"</span></div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span> </div><div class="line"><a name="l00035"></a><span class="lineno"><a class="line" href="helpers__asymm_8h.xhtml#abf75e242631b23007e4046682aa57ec5"> 35</a></span> <span class="preprocessor">#define ASYMM_ROUNDING_DIVIDE_BY_POW2_IMPL(size) \</span></div><div class="line"><a name="l00036"></a><span class="lineno"> 36</span> <span class="preprocessor"> inline VEC_DATA_TYPE(int, size) asymm_rounding_divide_by_POW2_##size(VEC_DATA_TYPE(int, size) x, int exponent) \</span></div><div class="line"><a name="l00037"></a><span class="lineno"> 37</span> <span class="preprocessor"> { \</span></div><div class="line"><a name="l00038"></a><span class="lineno"> 38</span> <span class="preprocessor"> VEC_DATA_TYPE(int, size) \</span></div><div class="line"><a name="l00039"></a><span class="lineno"> 39</span> <span class="preprocessor"> mask = (1 << exponent) - 1; \</span></div><div class="line"><a name="l00040"></a><span class="lineno"> 40</span> <span class="preprocessor"> const VEC_DATA_TYPE(int, size) zero = 0; \</span></div><div class="line"><a name="l00041"></a><span class="lineno"> 41</span> <span class="preprocessor"> const VEC_DATA_TYPE(int, size) one = 1; \</span></div><div class="line"><a name="l00042"></a><span class="lineno"> 42</span> <span class="preprocessor"> VEC_DATA_TYPE(int, size) \</span></div><div class="line"><a name="l00043"></a><span class="lineno"> 43</span> <span class="preprocessor"> threshold = (mask >> 1) + select(zero, one, x < 0); \</span></div><div class="line"><a name="l00044"></a><span class="lineno"> 44</span> <span class="preprocessor"> return (x >> exponent) + select(zero, one, (x & mask) > threshold); \</span></div><div class="line"><a name="l00045"></a><span class="lineno"> 45</span> <span class="preprocessor"> }</span></div><div class="line"><a name="l00046"></a><span class="lineno"> 46</span> </div><div class="line"><a name="l00054"></a><span class="lineno"><a class="line" href="helpers__asymm_8h.xhtml#ad4b199221927cbabbf859e4d2efb688d"> 54</a></span> <span class="preprocessor">#define ASYMM_MULT_IMPL(size) \</span></div><div class="line"><a name="l00055"></a><span class="lineno"> 55</span> <span class="preprocessor"> inline VEC_DATA_TYPE(int, size) asymm_mult##size(VEC_DATA_TYPE(int, size) a, VEC_DATA_TYPE(int, size) b) \</span></div><div class="line"><a name="l00056"></a><span class="lineno"> 56</span> <span class="preprocessor"> { \</span></div><div class="line"><a name="l00057"></a><span class="lineno"> 57</span> <span class="preprocessor"> VEC_DATA_TYPE(int, size) \</span></div><div class="line"><a name="l00058"></a><span class="lineno"> 58</span> <span class="preprocessor"> overflow = a == b && a == INT_MIN; \</span></div><div class="line"><a name="l00059"></a><span class="lineno"> 59</span> <span class="preprocessor"> VEC_DATA_TYPE(long, size) \</span></div><div class="line"><a name="l00060"></a><span class="lineno"> 60</span> <span class="preprocessor"> a_64 = convert_long##size(a); \</span></div><div class="line"><a name="l00061"></a><span class="lineno"> 61</span> <span class="preprocessor"> VEC_DATA_TYPE(long, size) \</span></div><div class="line"><a name="l00062"></a><span class="lineno"> 62</span> <span class="preprocessor"> b_64 = convert_long##size(b); \</span></div><div class="line"><a name="l00063"></a><span class="lineno"> 63</span> <span class="preprocessor"> VEC_DATA_TYPE(long, size) \</span></div><div class="line"><a name="l00064"></a><span class="lineno"> 64</span> <span class="preprocessor"> ab_64 = a_64 * b_64; \</span></div><div class="line"><a name="l00065"></a><span class="lineno"> 65</span> <span class="preprocessor"> VEC_DATA_TYPE(int, size) \</span></div><div class="line"><a name="l00066"></a><span class="lineno"> 66</span> <span class="preprocessor"> ab_x2_high32 = convert_int##size(((ab_64 + (1 << 30)) >> 31)); \</span></div><div class="line"><a name="l00067"></a><span class="lineno"> 67</span> <span class="preprocessor"> return select(ab_x2_high32, INT_MAX, overflow); \</span></div><div class="line"><a name="l00068"></a><span class="lineno"> 68</span> <span class="preprocessor"> }</span></div><div class="line"><a name="l00069"></a><span class="lineno"> 69</span> </div><div class="line"><a name="l00076"></a><span class="lineno"><a class="line" href="helpers__asymm_8h.xhtml#a3d8a3968a069eb8abbc28d31c20f6b8c"> 76</a></span> <span class="preprocessor">#define ASYMM_EXP_ON_INTERVAL_BETWEEN_NEGATIVE_ONE_QUARTER_AND_0_EXCL_IMPL(size) \</span></div><div class="line"><a name="l00077"></a><span class="lineno"> 77</span> <span class="preprocessor"> inline VEC_DATA_TYPE(int, size) asymm_exp_on_interval_between_negative_one_quarter_and_0_excl##size(VEC_DATA_TYPE(int, size) a) \</span></div><div class="line"><a name="l00078"></a><span class="lineno"> 78</span> <span class="preprocessor"> { \</span></div><div class="line"><a name="l00079"></a><span class="lineno"> 79</span> <span class="preprocessor"> const VEC_DATA_TYPE(int, size) constant_term = 1895147668; \</span></div><div class="line"><a name="l00080"></a><span class="lineno"> 80</span> <span class="preprocessor"> const VEC_DATA_TYPE(int, size) constant_1_over_3 = 715827883; \</span></div><div class="line"><a name="l00081"></a><span class="lineno"> 81</span> <span class="preprocessor"> const int k_fractional_bits = 31; \</span></div><div class="line"><a name="l00082"></a><span class="lineno"> 82</span> <span class="preprocessor"> VEC_DATA_TYPE(int, size) \</span></div><div class="line"><a name="l00083"></a><span class="lineno"> 83</span> <span class="preprocessor"> x = a + (1 << (k_fractional_bits - 3)); \</span></div><div class="line"><a name="l00084"></a><span class="lineno"> 84</span> <span class="preprocessor"> VEC_DATA_TYPE(int, size) \</span></div><div class="line"><a name="l00085"></a><span class="lineno"> 85</span> <span class="preprocessor"> x2 = ASYMM_MULT(x, x, size); \</span></div><div class="line"><a name="l00086"></a><span class="lineno"> 86</span> <span class="preprocessor"> VEC_DATA_TYPE(int, size) \</span></div><div class="line"><a name="l00087"></a><span class="lineno"> 87</span> <span class="preprocessor"> x3 = ASYMM_MULT(x2, x, size); \</span></div><div class="line"><a name="l00088"></a><span class="lineno"> 88</span> <span class="preprocessor"> VEC_DATA_TYPE(int, size) \</span></div><div class="line"><a name="l00089"></a><span class="lineno"> 89</span> <span class="preprocessor"> x4 = ASYMM_MULT(x2, x2, size); \</span></div><div class="line"><a name="l00090"></a><span class="lineno"> 90</span> <span class="preprocessor"> VEC_DATA_TYPE(int, size) \</span></div><div class="line"><a name="l00091"></a><span class="lineno"> 91</span> <span class="preprocessor"> x4_over_4 = ASYMM_ROUNDING_DIVIDE_BY_POW2(x4, 2, size); \</span></div><div class="line"><a name="l00092"></a><span class="lineno"> 92</span> <span class="preprocessor"> VEC_DATA_TYPE(int, size) \</span></div><div class="line"><a name="l00093"></a><span class="lineno"> 93</span> <span class="preprocessor"> x4_over_24_plus_x3_over_6_plus_x2 = ASYMM_MULT((x4_over_4 + x3), constant_1_over_3, size) + x2; \</span></div><div class="line"><a name="l00094"></a><span class="lineno"> 94</span> <span class="preprocessor"> VEC_DATA_TYPE(int, size) \</span></div><div class="line"><a name="l00095"></a><span class="lineno"> 95</span> <span class="preprocessor"> x4_over_24_plus_x3_over_6_plus_x2_over_2 = ASYMM_ROUNDING_DIVIDE_BY_POW2(x4_over_24_plus_x3_over_6_plus_x2, 1, size); \</span></div><div class="line"><a name="l00096"></a><span class="lineno"> 96</span> <span class="preprocessor"> return constant_term + ASYMM_MULT(constant_term, x + x4_over_24_plus_x3_over_6_plus_x2_over_2, size); \</span></div><div class="line"><a name="l00097"></a><span class="lineno"> 97</span> <span class="preprocessor"> }</span></div><div class="line"><a name="l00098"></a><span class="lineno"> 98</span> </div><div class="line"><a name="l00107"></a><span class="lineno"><a class="line" href="helpers__asymm_8h.xhtml#ab0b4069b25ac886d5cb6eb3b76473f88"> 107</a></span> <span class="preprocessor">#define ASYMM_SELECT_USING_MASK_IMPL(size) \</span></div><div class="line"><a name="l00108"></a><span class="lineno"> 108</span> <span class="preprocessor"> inline VEC_DATA_TYPE(int, size) asymm_select_using_mask##size(VEC_DATA_TYPE(int, size) if_mask, VEC_DATA_TYPE(int, size) then_val, VEC_DATA_TYPE(int, size) else_val) \</span></div><div class="line"><a name="l00109"></a><span class="lineno"> 109</span> <span class="preprocessor"> { \</span></div><div class="line"><a name="l00110"></a><span class="lineno"> 110</span> <span class="preprocessor"> return (if_mask & then_val) ^ (~if_mask & else_val); \</span></div><div class="line"><a name="l00111"></a><span class="lineno"> 111</span> <span class="preprocessor"> }</span></div><div class="line"><a name="l00112"></a><span class="lineno"> 112</span> </div><div class="line"><a name="l00120"></a><span class="lineno"><a class="line" href="helpers__asymm_8h.xhtml#a8c47a92ec76a1e367b45305c17d9ea88"> 120</a></span> <span class="preprocessor">#define ASYMM_MASK_IF_ZERO_IMPL(size) \</span></div><div class="line"><a name="l00121"></a><span class="lineno"> 121</span> <span class="preprocessor"> inline VEC_DATA_TYPE(int, size) asymm_mask_if_zero##size(VEC_DATA_TYPE(int, size) a) \</span></div><div class="line"><a name="l00122"></a><span class="lineno"> 122</span> <span class="preprocessor"> { \</span></div><div class="line"><a name="l00123"></a><span class="lineno"> 123</span> <span class="preprocessor"> const VEC_DATA_TYPE(int, size) all_zeros = 0; \</span></div><div class="line"><a name="l00124"></a><span class="lineno"> 124</span> <span class="preprocessor"> const VEC_DATA_TYPE(int, size) all_ones = ~0; \</span></div><div class="line"><a name="l00125"></a><span class="lineno"> 125</span> <span class="preprocessor"> return select(all_zeros, all_ones, a == 0); \</span></div><div class="line"><a name="l00126"></a><span class="lineno"> 126</span> <span class="preprocessor"> }</span></div><div class="line"><a name="l00127"></a><span class="lineno"> 127</span> </div><div class="line"><a name="l00135"></a><span class="lineno"><a class="line" href="helpers__asymm_8h.xhtml#a6dd3d8d22942f0ff3e59b4e32cfd4de3"> 135</a></span> <span class="preprocessor">#define ASYMM_MASK_IF_NON_ZERO_IMPL(size) \</span></div><div class="line"><a name="l00136"></a><span class="lineno"> 136</span> <span class="preprocessor"> inline VEC_DATA_TYPE(int, size) asymm_mask_if_non_zero##size(VEC_DATA_TYPE(int, size) a) \</span></div><div class="line"><a name="l00137"></a><span class="lineno"> 137</span> <span class="preprocessor"> { \</span></div><div class="line"><a name="l00138"></a><span class="lineno"> 138</span> <span class="preprocessor"> const VEC_DATA_TYPE(int, size) all_zeros = 0; \</span></div><div class="line"><a name="l00139"></a><span class="lineno"> 139</span> <span class="preprocessor"> const VEC_DATA_TYPE(int, size) all_ones = ~0; \</span></div><div class="line"><a name="l00140"></a><span class="lineno"> 140</span> <span class="preprocessor"> return select(all_zeros, all_ones, a != 0); \</span></div><div class="line"><a name="l00141"></a><span class="lineno"> 141</span> <span class="preprocessor"> }</span></div><div class="line"><a name="l00142"></a><span class="lineno"> 142</span> </div><div class="line"><a name="l00143"></a><span class="lineno"><a class="line" href="helpers__asymm_8h.xhtml#aa12ca21cb9a54d2e4c26d57303fe44a7"> 143</a></span> <span class="preprocessor">#define EXP_BARREL_SHIFTER_IMPL(size) \</span></div><div class="line"><a name="l00144"></a><span class="lineno"> 144</span> <span class="preprocessor"> inline VEC_DATA_TYPE(int, size) exp_barrel_shifter##size(VEC_DATA_TYPE(int, size) result, int exponent, int fp_multiplier, int k_integer_bits, int k_fractional_bits, VEC_DATA_TYPE(int, size) remainder) \</span></div><div class="line"><a name="l00145"></a><span class="lineno"> 145</span> <span class="preprocessor"> { \</span></div><div class="line"><a name="l00146"></a><span class="lineno"> 146</span> <span class="preprocessor"> if(k_integer_bits > exponent) \</span></div><div class="line"><a name="l00147"></a><span class="lineno"> 147</span> <span class="preprocessor"> { \</span></div><div class="line"><a name="l00148"></a><span class="lineno"> 148</span> <span class="preprocessor"> const int k_shift_amount = k_integer_bits > exponent ? k_fractional_bits + exponent : 0; \</span></div><div class="line"><a name="l00149"></a><span class="lineno"> 149</span> <span class="preprocessor"> return ASYMM_SELECT_USING_MASK( \</span></div><div class="line"><a name="l00150"></a><span class="lineno"> 150</span> <span class="preprocessor"> ASYMM_MASK_IF_NON_ZERO(remainder & (1 << k_shift_amount), size), \</span></div><div class="line"><a name="l00151"></a><span class="lineno"> 151</span> <span class="preprocessor"> ASYMM_MULT(result, fp_multiplier, size), result, size); \</span></div><div class="line"><a name="l00152"></a><span class="lineno"> 152</span> <span class="preprocessor"> } \</span></div><div class="line"><a name="l00153"></a><span class="lineno"> 153</span> <span class="preprocessor"> \</span></div><div class="line"><a name="l00154"></a><span class="lineno"> 154</span> <span class="preprocessor"> return result; \</span></div><div class="line"><a name="l00155"></a><span class="lineno"> 155</span> <span class="preprocessor"> }</span></div><div class="line"><a name="l00156"></a><span class="lineno"> 156</span> </div><div class="line"><a name="l00163"></a><span class="lineno"><a class="line" href="helpers__asymm_8h.xhtml#a4d0a02b30d8cc5725d0a11781b488852"> 163</a></span> <span class="preprocessor">#define ASYMM_EXP_ON_NEGATIVE_VALUES_IMPL(size) \</span></div><div class="line"><a name="l00164"></a><span class="lineno"> 164</span> <span class="preprocessor"> inline VEC_DATA_TYPE(int, size) asymm_exp_on_negative_values##size(VEC_DATA_TYPE(int, size) a, int k_integer_bits) \</span></div><div class="line"><a name="l00165"></a><span class="lineno"> 165</span> <span class="preprocessor"> { \</span></div><div class="line"><a name="l00166"></a><span class="lineno"> 166</span> <span class="preprocessor"> const int k_fractional_bits = 31 - k_integer_bits; \</span></div><div class="line"><a name="l00167"></a><span class="lineno"> 167</span> <span class="preprocessor"> VEC_DATA_TYPE(int, size) \</span></div><div class="line"><a name="l00168"></a><span class="lineno"> 168</span> <span class="preprocessor"> k_one_quarter = 1 << (k_fractional_bits - 2); \</span></div><div class="line"><a name="l00169"></a><span class="lineno"> 169</span> <span class="preprocessor"> VEC_DATA_TYPE(int, size) \</span></div><div class="line"><a name="l00170"></a><span class="lineno"> 170</span> <span class="preprocessor"> mask = k_one_quarter - 1; \</span></div><div class="line"><a name="l00171"></a><span class="lineno"> 171</span> <span class="preprocessor"> VEC_DATA_TYPE(int, size) \</span></div><div class="line"><a name="l00172"></a><span class="lineno"> 172</span> <span class="preprocessor"> a_mod_quarter_minus_one_quarter = (a & mask) - k_one_quarter; \</span></div><div class="line"><a name="l00173"></a><span class="lineno"> 173</span> <span class="preprocessor"> VEC_DATA_TYPE(int, size) \</span></div><div class="line"><a name="l00174"></a><span class="lineno"> 174</span> <span class="preprocessor"> a_mod_quarter_minus_one_quarter_scaled = a_mod_quarter_minus_one_quarter << k_integer_bits; \</span></div><div class="line"><a name="l00175"></a><span class="lineno"> 175</span> <span class="preprocessor"> VEC_DATA_TYPE(int, size) \</span></div><div class="line"><a name="l00176"></a><span class="lineno"> 176</span> <span class="preprocessor"> result = ASYMM_EXP_ON_INTERVAL_BETWEEN_NEGATIVE_ONE_QUARTER_AND_0_EXCL(a_mod_quarter_minus_one_quarter_scaled, size); \</span></div><div class="line"><a name="l00177"></a><span class="lineno"> 177</span> <span class="preprocessor"> VEC_DATA_TYPE(int, size) \</span></div><div class="line"><a name="l00178"></a><span class="lineno"> 178</span> <span class="preprocessor"> remainder = a_mod_quarter_minus_one_quarter - a; \</span></div><div class="line"><a name="l00179"></a><span class="lineno"> 179</span> <span class="preprocessor"> \</span></div><div class="line"><a name="l00180"></a><span class="lineno"> 180</span> <span class="preprocessor"> result = EXP_BARREL_SHIFTER(result, -2, 1672461947, k_integer_bits, k_fractional_bits, remainder, size); \</span></div><div class="line"><a name="l00181"></a><span class="lineno"> 181</span> <span class="preprocessor"> result = EXP_BARREL_SHIFTER(result, -1, 1302514674, k_integer_bits, k_fractional_bits, remainder, size); \</span></div><div class="line"><a name="l00182"></a><span class="lineno"> 182</span> <span class="preprocessor"> result = EXP_BARREL_SHIFTER(result, +0, 790015084, k_integer_bits, k_fractional_bits, remainder, size); \</span></div><div class="line"><a name="l00183"></a><span class="lineno"> 183</span> <span class="preprocessor"> result = EXP_BARREL_SHIFTER(result, +1, 290630308, k_integer_bits, k_fractional_bits, remainder, size); \</span></div><div class="line"><a name="l00184"></a><span class="lineno"> 184</span> <span class="preprocessor"> result = EXP_BARREL_SHIFTER(result, +2, 39332535, k_integer_bits, k_fractional_bits, remainder, size); \</span></div><div class="line"><a name="l00185"></a><span class="lineno"> 185</span> <span class="preprocessor"> result = EXP_BARREL_SHIFTER(result, +3, 720401, k_integer_bits, k_fractional_bits, remainder, size); \</span></div><div class="line"><a name="l00186"></a><span class="lineno"> 186</span> <span class="preprocessor"> result = EXP_BARREL_SHIFTER(result, +4, 242, k_integer_bits, k_fractional_bits, remainder, size); \</span></div><div class="line"><a name="l00187"></a><span class="lineno"> 187</span> <span class="preprocessor"> \</span></div><div class="line"><a name="l00188"></a><span class="lineno"> 188</span> <span class="preprocessor"> if(k_integer_bits > 5) \</span></div><div class="line"><a name="l00189"></a><span class="lineno"> 189</span> <span class="preprocessor"> { \</span></div><div class="line"><a name="l00190"></a><span class="lineno"> 190</span> <span class="preprocessor"> const VEC_DATA_TYPE(int, size) clamp = -(1 << (k_fractional_bits + 5)); \</span></div><div class="line"><a name="l00191"></a><span class="lineno"> 191</span> <span class="preprocessor"> result = ASYMM_SELECT_USING_MASK(ASYMM_MASK_IF_NON_ZERO(a < clamp, size), 0, result, size); \</span></div><div class="line"><a name="l00192"></a><span class="lineno"> 192</span> <span class="preprocessor"> } \</span></div><div class="line"><a name="l00193"></a><span class="lineno"> 193</span> <span class="preprocessor"> \</span></div><div class="line"><a name="l00194"></a><span class="lineno"> 194</span> <span class="preprocessor"> const VEC_DATA_TYPE(int, size) Q0_one = INT_MAX; \</span></div><div class="line"><a name="l00195"></a><span class="lineno"> 195</span> <span class="preprocessor"> return ASYMM_SELECT_USING_MASK(ASYMM_MASK_IF_ZERO(a, size), Q0_one, result, size); \</span></div><div class="line"><a name="l00196"></a><span class="lineno"> 196</span> <span class="preprocessor"> }</span></div><div class="line"><a name="l00197"></a><span class="lineno"> 197</span> </div><div class="line"><a name="l00206"></a><span class="lineno"><a class="line" href="helpers__asymm_8h.xhtml#a737312bc4a68c79a77cfab4849793bc0"> 206</a></span> <span class="preprocessor">#define ASYMM_SATURATING_ROUNDING_MULT_BY_POW2_IMPL(size) \</span></div><div class="line"><a name="l00207"></a><span class="lineno"> 207</span> <span class="preprocessor"> inline VEC_DATA_TYPE(int, size) asymm_saturating_rounding_mult_by_pow2##size(VEC_DATA_TYPE(int, size) x, int exponent) \</span></div><div class="line"><a name="l00208"></a><span class="lineno"> 208</span> <span class="preprocessor"> { \</span></div><div class="line"><a name="l00209"></a><span class="lineno"> 209</span> <span class="preprocessor"> if(exponent < 0) \</span></div><div class="line"><a name="l00210"></a><span class="lineno"> 210</span> <span class="preprocessor"> { \</span></div><div class="line"><a name="l00211"></a><span class="lineno"> 211</span> <span class="preprocessor"> return ASYMM_ROUNDING_DIVIDE_BY_POW2(x, -exponent, size); \</span></div><div class="line"><a name="l00212"></a><span class="lineno"> 212</span> <span class="preprocessor"> } \</span></div><div class="line"><a name="l00213"></a><span class="lineno"> 213</span> <span class="preprocessor"> \</span></div><div class="line"><a name="l00214"></a><span class="lineno"> 214</span> <span class="preprocessor"> const VEC_DATA_TYPE(int, size) min = INT_MIN; \</span></div><div class="line"><a name="l00215"></a><span class="lineno"> 215</span> <span class="preprocessor"> const VEC_DATA_TYPE(int, size) max = INT_MAX; \</span></div><div class="line"><a name="l00216"></a><span class="lineno"> 216</span> <span class="preprocessor"> int threshold = ((1 << (31 - exponent)) - 1); \</span></div><div class="line"><a name="l00217"></a><span class="lineno"> 217</span> <span class="preprocessor"> VEC_DATA_TYPE(int, size) \</span></div><div class="line"><a name="l00218"></a><span class="lineno"> 218</span> <span class="preprocessor"> positive_mask = ASYMM_MASK_IF_NON_ZERO(x > threshold, size); \</span></div><div class="line"><a name="l00219"></a><span class="lineno"> 219</span> <span class="preprocessor"> VEC_DATA_TYPE(int, size) \</span></div><div class="line"><a name="l00220"></a><span class="lineno"> 220</span> <span class="preprocessor"> negative_mask = ASYMM_MASK_IF_NON_ZERO(x < -threshold, size); \</span></div><div class="line"><a name="l00221"></a><span class="lineno"> 221</span> <span class="preprocessor"> VEC_DATA_TYPE(int, size) \</span></div><div class="line"><a name="l00222"></a><span class="lineno"> 222</span> <span class="preprocessor"> result = x << exponent; \</span></div><div class="line"><a name="l00223"></a><span class="lineno"> 223</span> <span class="preprocessor"> result = ASYMM_SELECT_USING_MASK(positive_mask, max, result, size); \</span></div><div class="line"><a name="l00224"></a><span class="lineno"> 224</span> <span class="preprocessor"> result = ASYMM_SELECT_USING_MASK(negative_mask, min, result, size); \</span></div><div class="line"><a name="l00225"></a><span class="lineno"> 225</span> <span class="preprocessor"> return result; \</span></div><div class="line"><a name="l00226"></a><span class="lineno"> 226</span> <span class="preprocessor"> }</span></div><div class="line"><a name="l00227"></a><span class="lineno"> 227</span> </div><div class="line"><a name="l00235"></a><span class="lineno"><a class="line" href="helpers__asymm_8h.xhtml#a8d97c6698c0e44424deae3f3130c55ac"> 235</a></span> <span class="preprocessor">#define ASYMM_ROUNDING_HALF_SUM_IMPL(size) \</span></div><div class="line"><a name="l00236"></a><span class="lineno"> 236</span> <span class="preprocessor"> inline VEC_DATA_TYPE(int, size) asymm_rounding_half_sum##size(VEC_DATA_TYPE(int, size) a, VEC_DATA_TYPE(int, size) b) \</span></div><div class="line"><a name="l00237"></a><span class="lineno"> 237</span> <span class="preprocessor"> { \</span></div><div class="line"><a name="l00238"></a><span class="lineno"> 238</span> <span class="preprocessor"> VEC_DATA_TYPE(long, size) \</span></div><div class="line"><a name="l00239"></a><span class="lineno"> 239</span> <span class="preprocessor"> a64 = convert_long##size(a); \</span></div><div class="line"><a name="l00240"></a><span class="lineno"> 240</span> <span class="preprocessor"> VEC_DATA_TYPE(long, size) \</span></div><div class="line"><a name="l00241"></a><span class="lineno"> 241</span> <span class="preprocessor"> b64 = convert_long##size(b); \</span></div><div class="line"><a name="l00242"></a><span class="lineno"> 242</span> <span class="preprocessor"> VEC_DATA_TYPE(long, size) \</span></div><div class="line"><a name="l00243"></a><span class="lineno"> 243</span> <span class="preprocessor"> sum = a64 + b64; \</span></div><div class="line"><a name="l00244"></a><span class="lineno"> 244</span> <span class="preprocessor"> const VEC_DATA_TYPE(long, size) one = 1; \</span></div><div class="line"><a name="l00245"></a><span class="lineno"> 245</span> <span class="preprocessor"> const VEC_DATA_TYPE(long, size) minus_one = -1; \</span></div><div class="line"><a name="l00246"></a><span class="lineno"> 246</span> <span class="preprocessor"> VEC_DATA_TYPE(long, size) \</span></div><div class="line"><a name="l00247"></a><span class="lineno"> 247</span> <span class="preprocessor"> sign = select(minus_one, one, sum >= 0); \</span></div><div class="line"><a name="l00248"></a><span class="lineno"> 248</span> <span class="preprocessor"> return convert_int##size((sum + sign) / 2); \</span></div><div class="line"><a name="l00249"></a><span class="lineno"> 249</span> <span class="preprocessor"> }</span></div><div class="line"><a name="l00250"></a><span class="lineno"> 250</span> </div><div class="line"><a name="l00257"></a><span class="lineno"><a class="line" href="helpers__asymm_8h.xhtml#a0e53aa5d4cbcec7a0c0085838f32453d"> 257</a></span> <span class="preprocessor">#define ASYMM_ONE_OVER_ONE_PLUS_X_FOR_X_IN_0_1_IMPL(size) \</span></div><div class="line"><a name="l00258"></a><span class="lineno"> 258</span> <span class="preprocessor"> inline VEC_DATA_TYPE(int, size) asymm_one_over_one_plus_x_for_x_in_0_1##size(VEC_DATA_TYPE(int, size) a) \</span></div><div class="line"><a name="l00259"></a><span class="lineno"> 259</span> <span class="preprocessor"> { \</span></div><div class="line"><a name="l00260"></a><span class="lineno"> 260</span> <span class="preprocessor"> const VEC_DATA_TYPE(int, size) Q0_one = INT_MAX; \</span></div><div class="line"><a name="l00261"></a><span class="lineno"> 261</span> <span class="preprocessor"> const VEC_DATA_TYPE(int, size) Q2_one = 1 << (31 - 2); \</span></div><div class="line"><a name="l00262"></a><span class="lineno"> 262</span> <span class="preprocessor"> VEC_DATA_TYPE(int, size) \</span></div><div class="line"><a name="l00263"></a><span class="lineno"> 263</span> <span class="preprocessor"> half_denominator = ASYMM_ROUNDING_HALF_SUM(a, Q0_one, size); \</span></div><div class="line"><a name="l00264"></a><span class="lineno"> 264</span> <span class="preprocessor"> const VEC_DATA_TYPE(int, size) Q2_48_over_17 = 1515870810; \</span></div><div class="line"><a name="l00265"></a><span class="lineno"> 265</span> <span class="preprocessor"> const VEC_DATA_TYPE(int, size) Q2_neg_32_over_17 = -1010580540; \</span></div><div class="line"><a name="l00266"></a><span class="lineno"> 266</span> <span class="preprocessor"> VEC_DATA_TYPE(int, size) \</span></div><div class="line"><a name="l00267"></a><span class="lineno"> 267</span> <span class="preprocessor"> x = Q2_48_over_17 + ASYMM_MULT(half_denominator, Q2_neg_32_over_17, size); \</span></div><div class="line"><a name="l00268"></a><span class="lineno"> 268</span> <span class="preprocessor"> for(int i = 0; i < 3; i++) \</span></div><div class="line"><a name="l00269"></a><span class="lineno"> 269</span> <span class="preprocessor"> { \</span></div><div class="line"><a name="l00270"></a><span class="lineno"> 270</span> <span class="preprocessor"> VEC_DATA_TYPE(int, size) \</span></div><div class="line"><a name="l00271"></a><span class="lineno"> 271</span> <span class="preprocessor"> half_denominator_times_x = ASYMM_MULT(half_denominator, x, size); \</span></div><div class="line"><a name="l00272"></a><span class="lineno"> 272</span> <span class="preprocessor"> VEC_DATA_TYPE(int, size) \</span></div><div class="line"><a name="l00273"></a><span class="lineno"> 273</span> <span class="preprocessor"> one_minus_half_denominator_times_x = Q2_one - half_denominator_times_x; \</span></div><div class="line"><a name="l00274"></a><span class="lineno"> 274</span> <span class="preprocessor"> VEC_DATA_TYPE(int, size) \</span></div><div class="line"><a name="l00275"></a><span class="lineno"> 275</span> <span class="preprocessor"> tmp = ASYMM_MULT(x, one_minus_half_denominator_times_x, size); \</span></div><div class="line"><a name="l00276"></a><span class="lineno"> 276</span> <span class="preprocessor"> x = x + ASYMM_SATURATING_ROUNDING_MULT_BY_POW2(tmp, 2, size); \</span></div><div class="line"><a name="l00277"></a><span class="lineno"> 277</span> <span class="preprocessor"> } \</span></div><div class="line"><a name="l00278"></a><span class="lineno"> 278</span> <span class="preprocessor"> return ASYMM_SATURATING_ROUNDING_MULT_BY_POW2(x, 1, size); \</span></div><div class="line"><a name="l00279"></a><span class="lineno"> 279</span> <span class="preprocessor"> }</span></div><div class="line"><a name="l00280"></a><span class="lineno"> 280</span> </div><div class="line"><a name="l00287"></a><span class="lineno"><a class="line" href="helpers__asymm_8h.xhtml#aace85e2a32bacdaa4e2d2055deabfc57"> 287</a></span> <span class="preprocessor">#define ASYMM_RESCALE_IMPL(size) \</span></div><div class="line"><a name="l00288"></a><span class="lineno"> 288</span> <span class="preprocessor"> inline VEC_DATA_TYPE(int, size) asymm_rescale##size(VEC_DATA_TYPE(int, size) value, int src_integer_bits, int dst_integer_bits) \</span></div><div class="line"><a name="l00289"></a><span class="lineno"> 289</span> <span class="preprocessor"> { \</span></div><div class="line"><a name="l00290"></a><span class="lineno"> 290</span> <span class="preprocessor"> int exponent = src_integer_bits - dst_integer_bits; \</span></div><div class="line"><a name="l00291"></a><span class="lineno"> 291</span> <span class="preprocessor"> return ASYMM_SATURATING_ROUNDING_MULT_BY_POW2(value, exponent, size); \</span></div><div class="line"><a name="l00292"></a><span class="lineno"> 292</span> <span class="preprocessor"> }</span></div><div class="line"><a name="l00293"></a><span class="lineno"> 293</span> </div><div class="line"><a name="l00294"></a><span class="lineno"><a class="line" href="helpers__asymm_8h.xhtml#aa43fc359dea64362f3016384f4269845"> 294</a></span> <span class="preprocessor">#define ASYMM_ROUNDING_DIVIDE_BY_POW2(x, exponent, size) asymm_rounding_divide_by_POW2_##size(x, exponent)</span></div><div class="line"><a name="l00295"></a><span class="lineno"><a class="line" href="helpers__asymm_8h.xhtml#a5483aefd5e07244661178bfd3f434448"> 295</a></span> <span class="preprocessor">#define ASYMM_MULT(a, b, size) asymm_mult##size(a, b)</span></div><div class="line"><a name="l00296"></a><span class="lineno"><a class="line" href="helpers__asymm_8h.xhtml#a86de0ffca367bfcf27a8ae5dd1fdef2d"> 296</a></span> <span class="preprocessor">#define ASYMM_MULT_BY_QUANT_MULTIPLIER_LESS_THAN_ONE(x, quantized_multiplier, right_shift, size) \</span></div><div class="line"><a name="l00297"></a><span class="lineno"> 297</span> <span class="preprocessor"> ASYMM_ROUNDING_DIVIDE_BY_POW2(ASYMM_MULT(x, quantized_multiplier, size), right_shift, size)</span></div><div class="line"><a name="l00298"></a><span class="lineno"><a class="line" href="helpers__asymm_8h.xhtml#aeebdcd88f4320931cd4a599ad1527e83"> 298</a></span> <span class="preprocessor">#define ASYMM_EXP_ON_INTERVAL_BETWEEN_NEGATIVE_ONE_QUARTER_AND_0_EXCL(a, size) asymm_exp_on_interval_between_negative_one_quarter_and_0_excl##size(a)</span></div><div class="line"><a name="l00299"></a><span class="lineno"><a class="line" href="helpers__asymm_8h.xhtml#a9bc08a8c1833c5e6055ad6665e3ccf12"> 299</a></span> <span class="preprocessor">#define ASYMM_SELECT_USING_MASK(if_mask, then_val, else_val, size) asymm_select_using_mask##size(if_mask, then_val, else_val)</span></div><div class="line"><a name="l00300"></a><span class="lineno"><a class="line" href="helpers__asymm_8h.xhtml#afc6a76528024472919bb5d50d067578b"> 300</a></span> <span class="preprocessor">#define ASYMM_MASK_IF_ZERO(a, size) asymm_mask_if_zero##size(a)</span></div><div class="line"><a name="l00301"></a><span class="lineno"><a class="line" href="helpers__asymm_8h.xhtml#af1d5450c9c4c13a6b7aa52af197b54b2"> 301</a></span> <span class="preprocessor">#define ASYMM_MASK_IF_NON_ZERO(a, size) asymm_mask_if_non_zero##size(a)</span></div><div class="line"><a name="l00302"></a><span class="lineno"><a class="line" href="helpers__asymm_8h.xhtml#ace9ecff421cf885ad2c2d72d87c492cb"> 302</a></span> <span class="preprocessor">#define EXP_BARREL_SHIFTER(result, exponent, fp_multiplier, k_integer_bits, k_fractional_bits, remainder, size) exp_barrel_shifter##size(result, exponent, fp_multiplier, k_integer_bits, k_fractional_bits, remainder)</span></div><div class="line"><a name="l00303"></a><span class="lineno"><a class="line" href="helpers__asymm_8h.xhtml#a3a4f1b5d8f1cd67ac31bc62c9a6f4aa8"> 303</a></span> <span class="preprocessor">#define ASYMM_EXP_ON_NEGATIVE_VALUES(a, k_integer_bits, size) asymm_exp_on_negative_values##size(a, k_integer_bits)</span></div><div class="line"><a name="l00304"></a><span class="lineno"><a class="line" href="helpers__asymm_8h.xhtml#ae77f34e1316d52c1ee84c35be9efb0d8"> 304</a></span> <span class="preprocessor">#define ASYMM_ONE_OVER_ONE_PLUS_X_FOR_X_IN_0_1(a, size) asymm_one_over_one_plus_x_for_x_in_0_1##size(a)</span></div><div class="line"><a name="l00305"></a><span class="lineno"><a class="line" href="helpers__asymm_8h.xhtml#a4cc3ff3a2eeb5f5e9d6743e08f632928"> 305</a></span> <span class="preprocessor">#define ASYMM_SATURATING_ROUNDING_MULT_BY_POW2(x, exponent, size) asymm_saturating_rounding_mult_by_pow2##size(x, exponent)</span></div><div class="line"><a name="l00306"></a><span class="lineno"><a class="line" href="helpers__asymm_8h.xhtml#ad47fa44c1566aa4678fe524478490612"> 306</a></span> <span class="preprocessor">#define ASYMM_ROUNDING_HALF_SUM(a, b, size) asymm_rounding_half_sum##size(a, b)</span></div><div class="line"><a name="l00307"></a><span class="lineno"><a class="line" href="helpers__asymm_8h.xhtml#a98585f1bb84dea90aecbf59785c46151"> 307</a></span> <span class="preprocessor">#define ASYMM_RESCALE(value, src_integer_bits, dst_integer_bits, size) asymm_rescale##size(value, src_integer_bits, dst_integer_bits)</span></div><div class="line"><a name="l00308"></a><span class="lineno"> 308</span> </div><div class="line"><a name="l00309"></a><span class="lineno"><a class="line" href="helpers__asymm_8h.xhtml#ae62b2416b40ca28724c065e95e18a25b"> 309</a></span> <a class="code" href="helpers__asymm_8h.xhtml#abf75e242631b23007e4046682aa57ec5">ASYMM_ROUNDING_DIVIDE_BY_POW2_IMPL</a>(2)</div><div class="line"><a name="l00310"></a><span class="lineno"><a class="line" href="helpers__asymm_8h.xhtml#a2660d5193f286b247cf533d8ca234e77"> 310</a></span> <a class="code" href="helpers__asymm_8h.xhtml#abf75e242631b23007e4046682aa57ec5">ASYMM_ROUNDING_DIVIDE_BY_POW2_IMPL</a>(4)</div><div class="line"><a name="l00311"></a><span class="lineno"><a class="line" href="helpers__asymm_8h.xhtml#a38afb1b30447264fd62ca7ad86e7ea19"> 311</a></span> <a class="code" href="helpers__asymm_8h.xhtml#abf75e242631b23007e4046682aa57ec5">ASYMM_ROUNDING_DIVIDE_BY_POW2_IMPL</a>(8)</div><div class="line"><a name="l00312"></a><span class="lineno"><a class="line" href="helpers__asymm_8h.xhtml#a21d65cd6ac14696d58509b82789db845"> 312</a></span> <a class="code" href="helpers__asymm_8h.xhtml#abf75e242631b23007e4046682aa57ec5">ASYMM_ROUNDING_DIVIDE_BY_POW2_IMPL</a>(16)</div><div class="line"><a name="l00313"></a><span class="lineno"> 313</span> </div><div class="line"><a name="l00314"></a><span class="lineno"><a class="line" href="helpers__asymm_8h.xhtml#a5038b78913b76d782cc0aa0d841bd7ed"> 314</a></span> <a class="code" href="helpers__asymm_8h.xhtml#ad4b199221927cbabbf859e4d2efb688d">ASYMM_MULT_IMPL</a>(2)</div><div class="line"><a name="l00315"></a><span class="lineno"><a class="line" href="helpers__asymm_8h.xhtml#a6dca28649388d59ec0281af70d4507b2"> 315</a></span> <a class="code" href="helpers__asymm_8h.xhtml#ad4b199221927cbabbf859e4d2efb688d">ASYMM_MULT_IMPL</a>(4)</div><div class="line"><a name="l00316"></a><span class="lineno"><a class="line" href="helpers__asymm_8h.xhtml#a165b0bbab841712ea2c9a17a09bfa166"> 316</a></span> <a class="code" href="helpers__asymm_8h.xhtml#ad4b199221927cbabbf859e4d2efb688d">ASYMM_MULT_IMPL</a>(8)</div><div class="line"><a name="l00317"></a><span class="lineno"><a class="line" href="helpers__asymm_8h.xhtml#aef32e3a9c804f145deb6b88f0a444919"> 317</a></span> <a class="code" href="helpers__asymm_8h.xhtml#ad4b199221927cbabbf859e4d2efb688d">ASYMM_MULT_IMPL</a>(16)</div><div class="line"><a name="l00318"></a><span class="lineno"> 318</span> </div><div class="line"><a name="l00319"></a><span class="lineno"><a class="line" href="helpers__asymm_8h.xhtml#a8eb88d417247a1b8b8929e5c8faeb48d"> 319</a></span> <a class="code" href="helpers__asymm_8h.xhtml#a3d8a3968a069eb8abbc28d31c20f6b8c">ASYMM_EXP_ON_INTERVAL_BETWEEN_NEGATIVE_ONE_QUARTER_AND_0_EXCL_IMPL</a>(2)</div><div class="line"><a name="l00320"></a><span class="lineno"><a class="line" href="helpers__asymm_8h.xhtml#a43aa0011bd9b23ce3f691a9ae205fe07"> 320</a></span> <a class="code" href="helpers__asymm_8h.xhtml#a3d8a3968a069eb8abbc28d31c20f6b8c">ASYMM_EXP_ON_INTERVAL_BETWEEN_NEGATIVE_ONE_QUARTER_AND_0_EXCL_IMPL</a>(4)</div><div class="line"><a name="l00321"></a><span class="lineno"><a class="line" href="helpers__asymm_8h.xhtml#accb6ee0e0c578704ae23e6ab0a57cdd0"> 321</a></span> <a class="code" href="helpers__asymm_8h.xhtml#a3d8a3968a069eb8abbc28d31c20f6b8c">ASYMM_EXP_ON_INTERVAL_BETWEEN_NEGATIVE_ONE_QUARTER_AND_0_EXCL_IMPL</a>(8)</div><div class="line"><a name="l00322"></a><span class="lineno"><a class="line" href="helpers__asymm_8h.xhtml#a1d51b02a83af2a152fa52755f572f5a6"> 322</a></span> <a class="code" href="helpers__asymm_8h.xhtml#a3d8a3968a069eb8abbc28d31c20f6b8c">ASYMM_EXP_ON_INTERVAL_BETWEEN_NEGATIVE_ONE_QUARTER_AND_0_EXCL_IMPL</a>(16)</div><div class="line"><a name="l00323"></a><span class="lineno"> 323</span> </div><div class="line"><a name="l00324"></a><span class="lineno"><a class="line" href="helpers__asymm_8h.xhtml#a0dade5bb9ed9aae49b6bb2875e273d89"> 324</a></span> <a class="code" href="helpers__asymm_8h.xhtml#ab0b4069b25ac886d5cb6eb3b76473f88">ASYMM_SELECT_USING_MASK_IMPL</a>(2)</div><div class="line"><a name="l00325"></a><span class="lineno"><a class="line" href="helpers__asymm_8h.xhtml#a44e4d74ed42006c4153a9cb6c97285de"> 325</a></span> <a class="code" href="helpers__asymm_8h.xhtml#ab0b4069b25ac886d5cb6eb3b76473f88">ASYMM_SELECT_USING_MASK_IMPL</a>(4)</div><div class="line"><a name="l00326"></a><span class="lineno"><a class="line" href="helpers__asymm_8h.xhtml#a64682bc22716ad771d012ce4c7398652"> 326</a></span> <a class="code" href="helpers__asymm_8h.xhtml#ab0b4069b25ac886d5cb6eb3b76473f88">ASYMM_SELECT_USING_MASK_IMPL</a>(8)</div><div class="line"><a name="l00327"></a><span class="lineno"><a class="line" href="helpers__asymm_8h.xhtml#a7effd9e7de9fefa9d4ae4eb2cfc06090"> 327</a></span> <a class="code" href="helpers__asymm_8h.xhtml#ab0b4069b25ac886d5cb6eb3b76473f88">ASYMM_SELECT_USING_MASK_IMPL</a>(16)</div><div class="line"><a name="l00328"></a><span class="lineno"> 328</span> </div><div class="line"><a name="l00329"></a><span class="lineno"><a class="line" href="helpers__asymm_8h.xhtml#a6ed499c821cf4f6b3bc4049d49e35139"> 329</a></span> <a class="code" href="helpers__asymm_8h.xhtml#a8c47a92ec76a1e367b45305c17d9ea88">ASYMM_MASK_IF_ZERO_IMPL</a>(2)</div><div class="line"><a name="l00330"></a><span class="lineno"><a class="line" href="helpers__asymm_8h.xhtml#aed95c68d9545d401d2323cd8ad287fe1"> 330</a></span> <a class="code" href="helpers__asymm_8h.xhtml#a8c47a92ec76a1e367b45305c17d9ea88">ASYMM_MASK_IF_ZERO_IMPL</a>(4)</div><div class="line"><a name="l00331"></a><span class="lineno"><a class="line" href="helpers__asymm_8h.xhtml#abefb0a278a588f03dc561db900df0958"> 331</a></span> <a class="code" href="helpers__asymm_8h.xhtml#a8c47a92ec76a1e367b45305c17d9ea88">ASYMM_MASK_IF_ZERO_IMPL</a>(8)</div><div class="line"><a name="l00332"></a><span class="lineno"><a class="line" href="helpers__asymm_8h.xhtml#a509916b7ee582d87faf1312fde111c3b"> 332</a></span> <a class="code" href="helpers__asymm_8h.xhtml#a8c47a92ec76a1e367b45305c17d9ea88">ASYMM_MASK_IF_ZERO_IMPL</a>(16)</div><div class="line"><a name="l00333"></a><span class="lineno"> 333</span> </div><div class="line"><a name="l00334"></a><span class="lineno"><a class="line" href="helpers__asymm_8h.xhtml#a885a16f240b119acc9f0721c07acdce9"> 334</a></span> <a class="code" href="helpers__asymm_8h.xhtml#a6dd3d8d22942f0ff3e59b4e32cfd4de3">ASYMM_MASK_IF_NON_ZERO_IMPL</a>(2)</div><div class="line"><a name="l00335"></a><span class="lineno"><a class="line" href="helpers__asymm_8h.xhtml#a2f180955030087d7538d5dc89f29eba9"> 335</a></span> <a class="code" href="helpers__asymm_8h.xhtml#a6dd3d8d22942f0ff3e59b4e32cfd4de3">ASYMM_MASK_IF_NON_ZERO_IMPL</a>(4)</div><div class="line"><a name="l00336"></a><span class="lineno"><a class="line" href="helpers__asymm_8h.xhtml#a8de81d453a39d0f589b0d3e007c7fde1"> 336</a></span> <a class="code" href="helpers__asymm_8h.xhtml#a6dd3d8d22942f0ff3e59b4e32cfd4de3">ASYMM_MASK_IF_NON_ZERO_IMPL</a>(8)</div><div class="line"><a name="l00337"></a><span class="lineno"><a class="line" href="helpers__asymm_8h.xhtml#a1e1fef1353d2458beb7fab06cc8f460e"> 337</a></span> <a class="code" href="helpers__asymm_8h.xhtml#a6dd3d8d22942f0ff3e59b4e32cfd4de3">ASYMM_MASK_IF_NON_ZERO_IMPL</a>(16)</div><div class="line"><a name="l00338"></a><span class="lineno"> 338</span> </div><div class="line"><a name="l00339"></a><span class="lineno"><a class="line" href="helpers__asymm_8h.xhtml#ad12110cc5f3099fa90b631e7b05772a0"> 339</a></span> <a class="code" href="helpers__asymm_8h.xhtml#aa12ca21cb9a54d2e4c26d57303fe44a7">EXP_BARREL_SHIFTER_IMPL</a>(2)</div><div class="line"><a name="l00340"></a><span class="lineno"><a class="line" href="helpers__asymm_8h.xhtml#a521e3ded9b6ca69692e9415ef9b4cee1"> 340</a></span> <a class="code" href="helpers__asymm_8h.xhtml#aa12ca21cb9a54d2e4c26d57303fe44a7">EXP_BARREL_SHIFTER_IMPL</a>(4)</div><div class="line"><a name="l00341"></a><span class="lineno"><a class="line" href="helpers__asymm_8h.xhtml#a936aed524c644efcf20b28877e3a0f3f"> 341</a></span> <a class="code" href="helpers__asymm_8h.xhtml#aa12ca21cb9a54d2e4c26d57303fe44a7">EXP_BARREL_SHIFTER_IMPL</a>(8)</div><div class="line"><a name="l00342"></a><span class="lineno"><a class="line" href="helpers__asymm_8h.xhtml#a4bde4cd395697b5d37af5116773f16ed"> 342</a></span> <a class="code" href="helpers__asymm_8h.xhtml#aa12ca21cb9a54d2e4c26d57303fe44a7">EXP_BARREL_SHIFTER_IMPL</a>(16)</div><div class="line"><a name="l00343"></a><span class="lineno"> 343</span> </div><div class="line"><a name="l00344"></a><span class="lineno"><a class="line" href="helpers__asymm_8h.xhtml#a35b98dc80eefc6ce799720861a668691"> 344</a></span> <a class="code" href="helpers__asymm_8h.xhtml#a4d0a02b30d8cc5725d0a11781b488852">ASYMM_EXP_ON_NEGATIVE_VALUES_IMPL</a>(2)</div><div class="line"><a name="l00345"></a><span class="lineno"><a class="line" href="helpers__asymm_8h.xhtml#aa1dda459c2b10a9620b2c14a928ed4ba"> 345</a></span> <a class="code" href="helpers__asymm_8h.xhtml#a4d0a02b30d8cc5725d0a11781b488852">ASYMM_EXP_ON_NEGATIVE_VALUES_IMPL</a>(4)</div><div class="line"><a name="l00346"></a><span class="lineno"><a class="line" href="helpers__asymm_8h.xhtml#a429f20ad96413c1f7d4ee968afed6f0d"> 346</a></span> <a class="code" href="helpers__asymm_8h.xhtml#a4d0a02b30d8cc5725d0a11781b488852">ASYMM_EXP_ON_NEGATIVE_VALUES_IMPL</a>(8)</div><div class="line"><a name="l00347"></a><span class="lineno"><a class="line" href="helpers__asymm_8h.xhtml#ae13cfab30e1d4c5f797f9d3d7c6acacf"> 347</a></span> <a class="code" href="helpers__asymm_8h.xhtml#a4d0a02b30d8cc5725d0a11781b488852">ASYMM_EXP_ON_NEGATIVE_VALUES_IMPL</a>(16)</div><div class="line"><a name="l00348"></a><span class="lineno"> 348</span> </div><div class="line"><a name="l00349"></a><span class="lineno"><a class="line" href="helpers__asymm_8h.xhtml#ac5d336b40941ee7c63a750b3dc92b030"> 349</a></span> <a class="code" href="helpers__asymm_8h.xhtml#a737312bc4a68c79a77cfab4849793bc0">ASYMM_SATURATING_ROUNDING_MULT_BY_POW2_IMPL</a>(2)</div><div class="line"><a name="l00350"></a><span class="lineno"><a class="line" href="helpers__asymm_8h.xhtml#af06991bb67792a6fec9c426923f39745"> 350</a></span> <a class="code" href="helpers__asymm_8h.xhtml#a737312bc4a68c79a77cfab4849793bc0">ASYMM_SATURATING_ROUNDING_MULT_BY_POW2_IMPL</a>(4)</div><div class="line"><a name="l00351"></a><span class="lineno"><a class="line" href="helpers__asymm_8h.xhtml#a1bfbcc866bf09921d6bf4fc39cd38d89"> 351</a></span> <a class="code" href="helpers__asymm_8h.xhtml#a737312bc4a68c79a77cfab4849793bc0">ASYMM_SATURATING_ROUNDING_MULT_BY_POW2_IMPL</a>(8)</div><div class="line"><a name="l00352"></a><span class="lineno"><a class="line" href="helpers__asymm_8h.xhtml#a88b3d0aae3bcf134f9eb4b5637a4b73c"> 352</a></span> <a class="code" href="helpers__asymm_8h.xhtml#a737312bc4a68c79a77cfab4849793bc0">ASYMM_SATURATING_ROUNDING_MULT_BY_POW2_IMPL</a>(16)</div><div class="line"><a name="l00353"></a><span class="lineno"> 353</span> </div><div class="line"><a name="l00354"></a><span class="lineno"><a class="line" href="helpers__asymm_8h.xhtml#acd43480a8530400e781603a995adcad0"> 354</a></span> <a class="code" href="helpers__asymm_8h.xhtml#a8d97c6698c0e44424deae3f3130c55ac">ASYMM_ROUNDING_HALF_SUM_IMPL</a>(2)</div><div class="line"><a name="l00355"></a><span class="lineno"><a class="line" href="helpers__asymm_8h.xhtml#a7dda5bba50450367760a7ad1148881be"> 355</a></span> <a class="code" href="helpers__asymm_8h.xhtml#a8d97c6698c0e44424deae3f3130c55ac">ASYMM_ROUNDING_HALF_SUM_IMPL</a>(4)</div><div class="line"><a name="l00356"></a><span class="lineno"><a class="line" href="helpers__asymm_8h.xhtml#acba55fb1a4dfa6ab5080cc276550d5fd"> 356</a></span> <a class="code" href="helpers__asymm_8h.xhtml#a8d97c6698c0e44424deae3f3130c55ac">ASYMM_ROUNDING_HALF_SUM_IMPL</a>(8)</div><div class="line"><a name="l00357"></a><span class="lineno"><a class="line" href="helpers__asymm_8h.xhtml#ab13b1910b09c0cf268f6a8af0e2013e2"> 357</a></span> <a class="code" href="helpers__asymm_8h.xhtml#a8d97c6698c0e44424deae3f3130c55ac">ASYMM_ROUNDING_HALF_SUM_IMPL</a>(16)</div><div class="line"><a name="l00358"></a><span class="lineno"> 358</span> </div><div class="line"><a name="l00359"></a><span class="lineno"><a class="line" href="helpers__asymm_8h.xhtml#a6524f601cf9a2ae69d5eab74576c93d0"> 359</a></span> <a class="code" href="helpers__asymm_8h.xhtml#a0e53aa5d4cbcec7a0c0085838f32453d">ASYMM_ONE_OVER_ONE_PLUS_X_FOR_X_IN_0_1_IMPL</a>(2)</div><div class="line"><a name="l00360"></a><span class="lineno"><a class="line" href="helpers__asymm_8h.xhtml#a049439083adb7b960079832ad6367389"> 360</a></span> <a class="code" href="helpers__asymm_8h.xhtml#a0e53aa5d4cbcec7a0c0085838f32453d">ASYMM_ONE_OVER_ONE_PLUS_X_FOR_X_IN_0_1_IMPL</a>(4)</div><div class="line"><a name="l00361"></a><span class="lineno"><a class="line" href="helpers__asymm_8h.xhtml#abe37c90e62ee60565cbfbb38c4358fd6"> 361</a></span> <a class="code" href="helpers__asymm_8h.xhtml#a0e53aa5d4cbcec7a0c0085838f32453d">ASYMM_ONE_OVER_ONE_PLUS_X_FOR_X_IN_0_1_IMPL</a>(8)</div><div class="line"><a name="l00362"></a><span class="lineno"><a class="line" href="helpers__asymm_8h.xhtml#ac3316120c01b6c993ac8f2d3f2b4ff03"> 362</a></span> <a class="code" href="helpers__asymm_8h.xhtml#a0e53aa5d4cbcec7a0c0085838f32453d">ASYMM_ONE_OVER_ONE_PLUS_X_FOR_X_IN_0_1_IMPL</a>(16)</div><div class="line"><a name="l00363"></a><span class="lineno"> 363</span> </div><div class="line"><a name="l00364"></a><span class="lineno"><a class="line" href="helpers__asymm_8h.xhtml#a49b94bfc99276975c6fed32c693cbac5"> 364</a></span> <a class="code" href="helpers__asymm_8h.xhtml#aace85e2a32bacdaa4e2d2055deabfc57">ASYMM_RESCALE_IMPL</a>(2)</div><div class="line"><a name="l00365"></a><span class="lineno"><a class="line" href="helpers__asymm_8h.xhtml#a8f9d043040f28f051c7145281de94681"> 365</a></span> <a class="code" href="helpers__asymm_8h.xhtml#aace85e2a32bacdaa4e2d2055deabfc57">ASYMM_RESCALE_IMPL</a>(4)</div><div class="line"><a name="l00366"></a><span class="lineno"><a class="line" href="helpers__asymm_8h.xhtml#a478b69bea5edb6ad939d8e7edd9e7e3f"> 366</a></span> <a class="code" href="helpers__asymm_8h.xhtml#aace85e2a32bacdaa4e2d2055deabfc57">ASYMM_RESCALE_IMPL</a>(8)</div><div class="line"><a name="l00367"></a><span class="lineno"><a class="line" href="helpers__asymm_8h.xhtml#a700e603af523859efb90ed4b52b41c84"> 367</a></span> <a class="code" href="helpers__asymm_8h.xhtml#aace85e2a32bacdaa4e2d2055deabfc57">ASYMM_RESCALE_IMPL</a>(16)</div><div class="line"><a name="l00368"></a><span class="lineno"> 368</span> </div><div class="line"><a name="l00369"></a><span class="lineno"> 369</span> <span class="preprocessor">#endif // ARM_COMPUTE_HELPERS_ASYMM_H</span></div><div class="ttc" id="helpers__asymm_8h_xhtml_a8d97c6698c0e44424deae3f3130c55ac"><div class="ttname"><a href="helpers__asymm_8h.xhtml#a8d97c6698c0e44424deae3f3130c55ac">ASYMM_ROUNDING_HALF_SUM_IMPL</a></div><div class="ttdeci">#define ASYMM_ROUNDING_HALF_SUM_IMPL(size)</div><div class="ttdoc">Calculates (a+b)/2, rounded to the nearest integer. </div><div class="ttdef"><b>Definition:</b> <a href="helpers__asymm_8h_source.xhtml#l00235">helpers_asymm.h:235</a></div></div> |
| <div class="ttc" id="helpers__asymm_8h_xhtml_a4d0a02b30d8cc5725d0a11781b488852"><div class="ttname"><a href="helpers__asymm_8h.xhtml#a4d0a02b30d8cc5725d0a11781b488852">ASYMM_EXP_ON_NEGATIVE_VALUES_IMPL</a></div><div class="ttdeci">#define ASYMM_EXP_ON_NEGATIVE_VALUES_IMPL(size)</div><div class="ttdoc">Calculates for x < 0. </div><div class="ttdef"><b>Definition:</b> <a href="helpers__asymm_8h_source.xhtml#l00163">helpers_asymm.h:163</a></div></div> |
| <div class="ttc" id="helpers__asymm_8h_xhtml_aa12ca21cb9a54d2e4c26d57303fe44a7"><div class="ttname"><a href="helpers__asymm_8h.xhtml#aa12ca21cb9a54d2e4c26d57303fe44a7">EXP_BARREL_SHIFTER_IMPL</a></div><div class="ttdeci">#define EXP_BARREL_SHIFTER_IMPL(size)</div><div class="ttdef"><b>Definition:</b> <a href="helpers__asymm_8h_source.xhtml#l00143">helpers_asymm.h:143</a></div></div> |
| <div class="ttc" id="helpers__asymm_8h_xhtml_ab0b4069b25ac886d5cb6eb3b76473f88"><div class="ttname"><a href="helpers__asymm_8h.xhtml#ab0b4069b25ac886d5cb6eb3b76473f88">ASYMM_SELECT_USING_MASK_IMPL</a></div><div class="ttdeci">#define ASYMM_SELECT_USING_MASK_IMPL(size)</div><div class="ttdoc">Each bit of the result is set to the corresponding bit of either then_val or else_val depending on wh...</div><div class="ttdef"><b>Definition:</b> <a href="helpers__asymm_8h_source.xhtml#l00107">helpers_asymm.h:107</a></div></div> |
| <div class="ttc" id="helpers__asymm_8h_xhtml_a3d8a3968a069eb8abbc28d31c20f6b8c"><div class="ttname"><a href="helpers__asymm_8h.xhtml#a3d8a3968a069eb8abbc28d31c20f6b8c">ASYMM_EXP_ON_INTERVAL_BETWEEN_NEGATIVE_ONE_QUARTER_AND_0_EXCL_IMPL</a></div><div class="ttdeci">#define ASYMM_EXP_ON_INTERVAL_BETWEEN_NEGATIVE_ONE_QUARTER_AND_0_EXCL_IMPL(size)</div><div class="ttdoc">Calculates for x in [-1/4, 0). </div><div class="ttdef"><b>Definition:</b> <a href="helpers__asymm_8h_source.xhtml#l00076">helpers_asymm.h:76</a></div></div> |
| <div class="ttc" id="helpers__asymm_8h_xhtml_a0e53aa5d4cbcec7a0c0085838f32453d"><div class="ttname"><a href="helpers__asymm_8h.xhtml#a0e53aa5d4cbcec7a0c0085838f32453d">ASYMM_ONE_OVER_ONE_PLUS_X_FOR_X_IN_0_1_IMPL</a></div><div class="ttdeci">#define ASYMM_ONE_OVER_ONE_PLUS_X_FOR_X_IN_0_1_IMPL(size)</div><div class="ttdoc">Calculates for x in (0, 1). </div><div class="ttdef"><b>Definition:</b> <a href="helpers__asymm_8h_source.xhtml#l00257">helpers_asymm.h:257</a></div></div> |
| <div class="ttc" id="helpers__asymm_8h_xhtml_a8c47a92ec76a1e367b45305c17d9ea88"><div class="ttname"><a href="helpers__asymm_8h.xhtml#a8c47a92ec76a1e367b45305c17d9ea88">ASYMM_MASK_IF_ZERO_IMPL</a></div><div class="ttdeci">#define ASYMM_MASK_IF_ZERO_IMPL(size)</div><div class="ttdoc">For each element of input vector, the corresponding bits of the result item are set if the input item...</div><div class="ttdef"><b>Definition:</b> <a href="helpers__asymm_8h_source.xhtml#l00120">helpers_asymm.h:120</a></div></div> |
| <div class="ttc" id="helpers__asymm_8h_xhtml_abf75e242631b23007e4046682aa57ec5"><div class="ttname"><a href="helpers__asymm_8h.xhtml#abf75e242631b23007e4046682aa57ec5">ASYMM_ROUNDING_DIVIDE_BY_POW2_IMPL</a></div><div class="ttdeci">#define ASYMM_ROUNDING_DIVIDE_BY_POW2_IMPL(size)</div><div class="ttdoc">Correctly-rounded-to-nearest division by a power-of-two. </div><div class="ttdef"><b>Definition:</b> <a href="helpers__asymm_8h_source.xhtml#l00035">helpers_asymm.h:35</a></div></div> |
| <div class="ttc" id="helpers__asymm_8h_xhtml_aace85e2a32bacdaa4e2d2055deabfc57"><div class="ttname"><a href="helpers__asymm_8h.xhtml#aace85e2a32bacdaa4e2d2055deabfc57">ASYMM_RESCALE_IMPL</a></div><div class="ttdeci">#define ASYMM_RESCALE_IMPL(size)</div><div class="ttdoc">Considering the integer value as fixed-point, change the number of integer bits and update value acco...</div><div class="ttdef"><b>Definition:</b> <a href="helpers__asymm_8h_source.xhtml#l00287">helpers_asymm.h:287</a></div></div> |
| <div class="ttc" id="helpers_8h_xhtml"><div class="ttname"><a href="helpers_8h.xhtml">helpers.h</a></div></div> |
| <div class="ttc" id="helpers__asymm_8h_xhtml_a6dd3d8d22942f0ff3e59b4e32cfd4de3"><div class="ttname"><a href="helpers__asymm_8h.xhtml#a6dd3d8d22942f0ff3e59b4e32cfd4de3">ASYMM_MASK_IF_NON_ZERO_IMPL</a></div><div class="ttdeci">#define ASYMM_MASK_IF_NON_ZERO_IMPL(size)</div><div class="ttdoc">For each element of input vector, the corresponding bits of the result item are set if the input item...</div><div class="ttdef"><b>Definition:</b> <a href="helpers__asymm_8h_source.xhtml#l00135">helpers_asymm.h:135</a></div></div> |
| <div class="ttc" id="helpers__asymm_8h_xhtml_ad4b199221927cbabbf859e4d2efb688d"><div class="ttname"><a href="helpers__asymm_8h.xhtml#ad4b199221927cbabbf859e4d2efb688d">ASYMM_MULT_IMPL</a></div><div class="ttdeci">#define ASYMM_MULT_IMPL(size)</div><div class="ttdoc">Product of two numbers, interpreting them as fixed-point values in the interval [-1, 1), rounding to the nearest value, and saturating -1 * -1 to the maximum value. </div><div class="ttdef"><b>Definition:</b> <a href="helpers__asymm_8h_source.xhtml#l00054">helpers_asymm.h:54</a></div></div> |
| <div class="ttc" id="helpers__asymm_8h_xhtml_a737312bc4a68c79a77cfab4849793bc0"><div class="ttname"><a href="helpers__asymm_8h.xhtml#a737312bc4a68c79a77cfab4849793bc0">ASYMM_SATURATING_ROUNDING_MULT_BY_POW2_IMPL</a></div><div class="ttdeci">#define ASYMM_SATURATING_ROUNDING_MULT_BY_POW2_IMPL(size)</div><div class="ttdoc">Calculates the product of a integer value by a power of two, with either a positive exponent (equival...</div><div class="ttdef"><b>Definition:</b> <a href="helpers__asymm_8h_source.xhtml#l00206">helpers_asymm.h:206</a></div></div> |
| </div><!-- fragment --></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="dir_68267d1309a1af8e8297ef4c3efbcdba.xhtml">src</a></li><li class="navelem"><a class="el" href="dir_aebb8dcc11953d78e620bbef0b9e2183.xhtml">core</a></li><li class="navelem"><a class="el" href="dir_8c278f79c760e5c5fbd911f9870614c1.xhtml">CL</a></li><li class="navelem"><a class="el" href="dir_25885286e9dad4fa105b7b25a8031bbf.xhtml">cl_kernels</a></li><li class="navelem"><a class="el" href="helpers__asymm_8h.xhtml">helpers_asymm.h</a></li> |
| <li class="footer">Generated on Thu Feb 22 2018 15:45:19 for Compute Library by |
| <a href="http://www.doxygen.org/index.html"> |
| <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.11 </li> |
| </ul> |
| </div> |
| </body> |
| </html> |