Jenkins | 514be65 | 2019-02-28 12:25:18 +0000 | [diff] [blame] | 1 | <!-- HTML header for doxygen 1.8.15--> |
| 2 | <!-- Remember to use version doxygen 1.8.15 +--> |
Jenkins | b9abeae | 2018-11-22 11:58:08 +0000 | [diff] [blame] | 3 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| 4 | <html xmlns="http://www.w3.org/1999/xhtml"> |
| 5 | <head> |
| 6 | <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> |
| 7 | <meta http-equiv="X-UA-Compatible" content="IE=9"/> |
Jenkins | 514be65 | 2019-02-28 12:25:18 +0000 | [diff] [blame] | 8 | <meta name="generator" content="Doxygen 1.8.15"/> |
Jenkins | b9abeae | 2018-11-22 11:58:08 +0000 | [diff] [blame] | 9 | <meta name="robots" content="NOINDEX, NOFOLLOW" /> <!-- Prevent indexing by search engines --> |
| 10 | <title>Compute Library: TransposeInterleaveCommon< IntBy, TIn, TOut > Struct Template Reference</title> |
| 11 | <link href="tabs.css" rel="stylesheet" type="text/css"/> |
| 12 | <script type="text/javascript" src="jquery.js"></script> |
| 13 | <script type="text/javascript" src="dynsections.js"></script> |
| 14 | <link href="navtree.css" rel="stylesheet" type="text/css"/> |
| 15 | <script type="text/javascript" src="resize.js"></script> |
| 16 | <script type="text/javascript" src="navtreedata.js"></script> |
| 17 | <script type="text/javascript" src="navtree.js"></script> |
| 18 | <script type="text/javascript"> |
Jenkins | 514be65 | 2019-02-28 12:25:18 +0000 | [diff] [blame] | 19 | /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */ |
Jenkins | b9abeae | 2018-11-22 11:58:08 +0000 | [diff] [blame] | 20 | $(document).ready(initResizable); |
Jenkins | 514be65 | 2019-02-28 12:25:18 +0000 | [diff] [blame] | 21 | /* @license-end */</script> |
Jenkins | b9abeae | 2018-11-22 11:58:08 +0000 | [diff] [blame] | 22 | <link href="search/search.css" rel="stylesheet" type="text/css"/> |
| 23 | <script type="text/javascript" src="search/searchdata.js"></script> |
| 24 | <script type="text/javascript" src="search/search.js"></script> |
| 25 | <script type="text/x-mathjax-config"> |
| 26 | MathJax.Hub.Config({ |
| 27 | extensions: ["tex2jax.js"], |
| 28 | jax: ["input/TeX","output/HTML-CSS"], |
| 29 | }); |
Jenkins | 514be65 | 2019-02-28 12:25:18 +0000 | [diff] [blame] | 30 | </script><script type="text/javascript" async="async" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js"></script> |
Jenkins | b9abeae | 2018-11-22 11:58:08 +0000 | [diff] [blame] | 31 | <link href="doxygen.css" rel="stylesheet" type="text/css" /> |
Jenkins | 514be65 | 2019-02-28 12:25:18 +0000 | [diff] [blame] | 32 | <link href="stylesheet.css" rel="stylesheet" type="text/css"/> |
Jenkins | b9abeae | 2018-11-22 11:58:08 +0000 | [diff] [blame] | 33 | </head> |
| 34 | <body> |
| 35 | <div id="top"><!-- do not remove this div, it is closed by doxygen! --> |
| 36 | <div id="titlearea"> |
| 37 | <table cellspacing="0" cellpadding="0"> |
| 38 | <tbody> |
| 39 | <tr style="height: 56px;"> |
Jenkins | 514be65 | 2019-02-28 12:25:18 +0000 | [diff] [blame] | 40 | <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"/> |
Jenkins | b9abeae | 2018-11-22 11:58:08 +0000 | [diff] [blame] | 41 | <td style="padding-left: 0.5em;"> |
Jenkins | 514be65 | 2019-02-28 12:25:18 +0000 | [diff] [blame] | 42 | <div id="projectname"> |
Jenkins | 575c81f | 2020-03-05 16:07:35 +0000 | [diff] [blame^] | 43 |  <span id="projectnumber">20.02.1</span> |
Jenkins | b9abeae | 2018-11-22 11:58:08 +0000 | [diff] [blame] | 44 | </div> |
| 45 | </td> |
| 46 | </tr> |
| 47 | </tbody> |
| 48 | </table> |
| 49 | </div> |
| 50 | <!-- end header part --> |
Jenkins | 514be65 | 2019-02-28 12:25:18 +0000 | [diff] [blame] | 51 | <!-- Generated by Doxygen 1.8.15 --> |
Jenkins | b9abeae | 2018-11-22 11:58:08 +0000 | [diff] [blame] | 52 | <script type="text/javascript"> |
Jenkins | 514be65 | 2019-02-28 12:25:18 +0000 | [diff] [blame] | 53 | /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */ |
Jenkins | b9abeae | 2018-11-22 11:58:08 +0000 | [diff] [blame] | 54 | var searchBox = new SearchBox("searchBox", "search",false,'Search'); |
Jenkins | 514be65 | 2019-02-28 12:25:18 +0000 | [diff] [blame] | 55 | /* @license-end */ |
Jenkins | b9abeae | 2018-11-22 11:58:08 +0000 | [diff] [blame] | 56 | </script> |
| 57 | <script type="text/javascript" src="menudata.js"></script> |
| 58 | <script type="text/javascript" src="menu.js"></script> |
| 59 | <script type="text/javascript"> |
Jenkins | 514be65 | 2019-02-28 12:25:18 +0000 | [diff] [blame] | 60 | /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */ |
Jenkins | b9abeae | 2018-11-22 11:58:08 +0000 | [diff] [blame] | 61 | $(function() { |
| 62 | initMenu('',true,false,'search.php','Search'); |
| 63 | $(document).ready(function() { init_search(); }); |
| 64 | }); |
Jenkins | 514be65 | 2019-02-28 12:25:18 +0000 | [diff] [blame] | 65 | /* @license-end */</script> |
Jenkins | b9abeae | 2018-11-22 11:58:08 +0000 | [diff] [blame] | 66 | <div id="main-nav"></div> |
| 67 | </div><!-- top --> |
| 68 | <div id="side-nav" class="ui-resizable side-nav-resizable"> |
| 69 | <div id="nav-tree"> |
| 70 | <div id="nav-tree-contents"> |
| 71 | <div id="nav-sync" class="sync"></div> |
| 72 | </div> |
| 73 | </div> |
| 74 | <div id="splitbar" style="-moz-user-select:none;" |
| 75 | class="ui-resizable-handle"> |
| 76 | </div> |
| 77 | </div> |
| 78 | <script type="text/javascript"> |
Jenkins | 514be65 | 2019-02-28 12:25:18 +0000 | [diff] [blame] | 79 | /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */ |
Jenkins | b9abeae | 2018-11-22 11:58:08 +0000 | [diff] [blame] | 80 | $(document).ready(function(){initNavTree('struct_transpose_interleave_common.xhtml','');}); |
Jenkins | 514be65 | 2019-02-28 12:25:18 +0000 | [diff] [blame] | 81 | /* @license-end */ |
Jenkins | b9abeae | 2018-11-22 11:58:08 +0000 | [diff] [blame] | 82 | </script> |
| 83 | <div id="doc-content"> |
| 84 | <!-- window showing the filter options --> |
| 85 | <div id="MSearchSelectWindow" |
| 86 | onmouseover="return searchBox.OnSearchSelectShow()" |
| 87 | onmouseout="return searchBox.OnSearchSelectHide()" |
| 88 | onkeydown="return searchBox.OnSearchSelectKey(event)"> |
| 89 | </div> |
| 90 | |
| 91 | <!-- iframe showing the search results (closed by default) --> |
| 92 | <div id="MSearchResultsWindow"> |
| 93 | <iframe src="javascript:void(0)" frameborder="0" |
| 94 | name="MSearchResults" id="MSearchResults"> |
| 95 | </iframe> |
| 96 | </div> |
| 97 | |
| 98 | <div class="header"> |
| 99 | <div class="summary"> |
| 100 | <a href="#pub-static-methods">Static Public Member Functions</a> </div> |
| 101 | <div class="headertitle"> |
| 102 | <div class="title">TransposeInterleaveCommon< IntBy, TIn, TOut > Struct Template Reference</div> </div> |
| 103 | </div><!--header--> |
| 104 | <div class="contents"> |
| 105 | |
| 106 | <p><code>#include <<a class="el" href="transpose__interleave__common_8hpp_source.xhtml">transpose_interleave_common.hpp</a>></code></p> |
| 107 | <table class="memberdecls"> |
| 108 | <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a> |
| 109 | Static Public Member Functions</h2></td></tr> |
| 110 | <tr class="memitem:ad40e856da5c9d8272b3370cf0e7a4ca6"><td class="memItemLeft" align="right" valign="top">static void </td><td class="memItemRight" valign="bottom"><a class="el" href="struct_transpose_interleave_common.xhtml#ad40e856da5c9d8272b3370cf0e7a4ca6">moveblock_1x1</a> (const TIn *&in0, TOut *out)</td></tr> |
| 111 | <tr class="separator:ad40e856da5c9d8272b3370cf0e7a4ca6"><td class="memSeparator" colspan="2"> </td></tr> |
| 112 | <tr class="memitem:a29fa7590a592651d46ac0f7fffe782a9"><td class="memItemLeft" align="right" valign="top">static void </td><td class="memItemRight" valign="bottom"><a class="el" href="struct_transpose_interleave_common.xhtml#a29fa7590a592651d46ac0f7fffe782a9">moveblock_1x2</a> (const TIn *&in0, const TIn *&in1, TOut *out)</td></tr> |
| 113 | <tr class="separator:a29fa7590a592651d46ac0f7fffe782a9"><td class="memSeparator" colspan="2"> </td></tr> |
| 114 | <tr class="memitem:aecb18b3a50a5ad95347415c651236df6"><td class="memItemLeft" align="right" valign="top">static void </td><td class="memItemRight" valign="bottom"><a class="el" href="struct_transpose_interleave_common.xhtml#aecb18b3a50a5ad95347415c651236df6">moveblock_1x4</a> (const TIn *&in0, const TIn *&in1, const TIn *&in2, const TIn *&in3, TOut *out)</td></tr> |
| 115 | <tr class="separator:aecb18b3a50a5ad95347415c651236df6"><td class="memSeparator" colspan="2"> </td></tr> |
| 116 | <tr class="memitem:a01a4063744a2a3facb06389427638d2a"><td class="memItemLeft" align="right" valign="top">static void </td><td class="memItemRight" valign="bottom"><a class="el" href="struct_transpose_interleave_common.xhtml#a01a4063744a2a3facb06389427638d2a">Transform</a> (TOut *out, const TIn *in, const int stride, const int x0, const int xmax, const int k0, const int kmax)</td></tr> |
| 117 | <tr class="separator:a01a4063744a2a3facb06389427638d2a"><td class="memSeparator" colspan="2"> </td></tr> |
| 118 | </table> |
| 119 | <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2> |
| 120 | <div class="textblock"><h3>template<unsigned int IntBy, typename TIn, typename TOut><br /> |
| 121 | struct TransposeInterleaveCommon< IntBy, TIn, TOut ></h3> |
| 122 | |
| 123 | |
| 124 | <p class="definition">Definition at line <a class="el" href="transpose__interleave__common_8hpp_source.xhtml#l00027">27</a> of file <a class="el" href="transpose__interleave__common_8hpp_source.xhtml">transpose_interleave_common.hpp</a>.</p> |
| 125 | </div><h2 class="groupheader">Member Function Documentation</h2> |
| 126 | <a id="ad40e856da5c9d8272b3370cf0e7a4ca6"></a> |
| 127 | <h2 class="memtitle"><span class="permalink"><a href="#ad40e856da5c9d8272b3370cf0e7a4ca6">◆ </a></span>moveblock_1x1()</h2> |
| 128 | |
| 129 | <div class="memitem"> |
| 130 | <div class="memproto"> |
| 131 | <table class="mlabels"> |
| 132 | <tr> |
| 133 | <td class="mlabels-left"> |
| 134 | <table class="memname"> |
| 135 | <tr> |
| 136 | <td class="memname">static void moveblock_1x1 </td> |
| 137 | <td>(</td> |
| 138 | <td class="paramtype">const TIn *& </td> |
| 139 | <td class="paramname"><em>in0</em>, </td> |
| 140 | </tr> |
| 141 | <tr> |
| 142 | <td class="paramkey"></td> |
| 143 | <td></td> |
| 144 | <td class="paramtype">TOut * </td> |
| 145 | <td class="paramname"><em>out</em> </td> |
| 146 | </tr> |
| 147 | <tr> |
| 148 | <td></td> |
| 149 | <td>)</td> |
| 150 | <td></td><td></td> |
| 151 | </tr> |
| 152 | </table> |
| 153 | </td> |
| 154 | <td class="mlabels-right"> |
| 155 | <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span> </td> |
| 156 | </tr> |
| 157 | </table> |
| 158 | </div><div class="memdoc"> |
| 159 | |
| 160 | <p class="definition">Definition at line <a class="el" href="transpose__interleave__common_8hpp_source.xhtml#l00029">29</a> of file <a class="el" href="transpose__interleave__common_8hpp_source.xhtml">transpose_interleave_common.hpp</a>.</p> |
Jenkins | 514be65 | 2019-02-28 12:25:18 +0000 | [diff] [blame] | 161 | <div class="fragment"><div class="line"><a name="l00029"></a><span class="lineno"> 29</span>  {</div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span>  <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> i = 0; i < IntBy; i++) {</div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span>  *out++ = static_cast<TOut>(*in0++);</div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span>  }</div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span>  }</div></div><!-- fragment --> |
Jenkins | b9abeae | 2018-11-22 11:58:08 +0000 | [diff] [blame] | 162 | </div> |
| 163 | </div> |
| 164 | <a id="a29fa7590a592651d46ac0f7fffe782a9"></a> |
| 165 | <h2 class="memtitle"><span class="permalink"><a href="#a29fa7590a592651d46ac0f7fffe782a9">◆ </a></span>moveblock_1x2()</h2> |
| 166 | |
| 167 | <div class="memitem"> |
| 168 | <div class="memproto"> |
| 169 | <table class="mlabels"> |
| 170 | <tr> |
| 171 | <td class="mlabels-left"> |
| 172 | <table class="memname"> |
| 173 | <tr> |
| 174 | <td class="memname">static void moveblock_1x2 </td> |
| 175 | <td>(</td> |
| 176 | <td class="paramtype">const TIn *& </td> |
| 177 | <td class="paramname"><em>in0</em>, </td> |
| 178 | </tr> |
| 179 | <tr> |
| 180 | <td class="paramkey"></td> |
| 181 | <td></td> |
| 182 | <td class="paramtype">const TIn *& </td> |
| 183 | <td class="paramname"><em>in1</em>, </td> |
| 184 | </tr> |
| 185 | <tr> |
| 186 | <td class="paramkey"></td> |
| 187 | <td></td> |
| 188 | <td class="paramtype">TOut * </td> |
| 189 | <td class="paramname"><em>out</em> </td> |
| 190 | </tr> |
| 191 | <tr> |
| 192 | <td></td> |
| 193 | <td>)</td> |
| 194 | <td></td><td></td> |
| 195 | </tr> |
| 196 | </table> |
| 197 | </td> |
| 198 | <td class="mlabels-right"> |
| 199 | <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span> </td> |
| 200 | </tr> |
| 201 | </table> |
| 202 | </div><div class="memdoc"> |
| 203 | |
| 204 | <p class="definition">Definition at line <a class="el" href="transpose__interleave__common_8hpp_source.xhtml#l00035">35</a> of file <a class="el" href="transpose__interleave__common_8hpp_source.xhtml">transpose_interleave_common.hpp</a>.</p> |
Jenkins | 514be65 | 2019-02-28 12:25:18 +0000 | [diff] [blame] | 205 | <div class="fragment"><div class="line"><a name="l00035"></a><span class="lineno"> 35</span>  {</div><div class="line"><a name="l00036"></a><span class="lineno"> 36</span>  <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> i = 0; i < IntBy; i++) {</div><div class="line"><a name="l00037"></a><span class="lineno"> 37</span>  *out++ = static_cast<TOut>(*in0++);</div><div class="line"><a name="l00038"></a><span class="lineno"> 38</span>  }</div><div class="line"><a name="l00039"></a><span class="lineno"> 39</span>  <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> i = 0; i < IntBy; i++) {</div><div class="line"><a name="l00040"></a><span class="lineno"> 40</span>  *out++ = static_cast<TOut>(*in1++);</div><div class="line"><a name="l00041"></a><span class="lineno"> 41</span>  }</div><div class="line"><a name="l00042"></a><span class="lineno"> 42</span>  }</div></div><!-- fragment --> |
Jenkins | b9abeae | 2018-11-22 11:58:08 +0000 | [diff] [blame] | 206 | </div> |
| 207 | </div> |
| 208 | <a id="aecb18b3a50a5ad95347415c651236df6"></a> |
| 209 | <h2 class="memtitle"><span class="permalink"><a href="#aecb18b3a50a5ad95347415c651236df6">◆ </a></span>moveblock_1x4()</h2> |
| 210 | |
| 211 | <div class="memitem"> |
| 212 | <div class="memproto"> |
| 213 | <table class="mlabels"> |
| 214 | <tr> |
| 215 | <td class="mlabels-left"> |
| 216 | <table class="memname"> |
| 217 | <tr> |
| 218 | <td class="memname">static void moveblock_1x4 </td> |
| 219 | <td>(</td> |
| 220 | <td class="paramtype">const TIn *& </td> |
| 221 | <td class="paramname"><em>in0</em>, </td> |
| 222 | </tr> |
| 223 | <tr> |
| 224 | <td class="paramkey"></td> |
| 225 | <td></td> |
| 226 | <td class="paramtype">const TIn *& </td> |
| 227 | <td class="paramname"><em>in1</em>, </td> |
| 228 | </tr> |
| 229 | <tr> |
| 230 | <td class="paramkey"></td> |
| 231 | <td></td> |
| 232 | <td class="paramtype">const TIn *& </td> |
| 233 | <td class="paramname"><em>in2</em>, </td> |
| 234 | </tr> |
| 235 | <tr> |
| 236 | <td class="paramkey"></td> |
| 237 | <td></td> |
| 238 | <td class="paramtype">const TIn *& </td> |
| 239 | <td class="paramname"><em>in3</em>, </td> |
| 240 | </tr> |
| 241 | <tr> |
| 242 | <td class="paramkey"></td> |
| 243 | <td></td> |
| 244 | <td class="paramtype">TOut * </td> |
| 245 | <td class="paramname"><em>out</em> </td> |
| 246 | </tr> |
| 247 | <tr> |
| 248 | <td></td> |
| 249 | <td>)</td> |
| 250 | <td></td><td></td> |
| 251 | </tr> |
| 252 | </table> |
| 253 | </td> |
| 254 | <td class="mlabels-right"> |
| 255 | <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span> </td> |
| 256 | </tr> |
| 257 | </table> |
| 258 | </div><div class="memdoc"> |
| 259 | |
| 260 | <p class="definition">Definition at line <a class="el" href="transpose__interleave__common_8hpp_source.xhtml#l00044">44</a> of file <a class="el" href="transpose__interleave__common_8hpp_source.xhtml">transpose_interleave_common.hpp</a>.</p> |
Jenkins | 514be65 | 2019-02-28 12:25:18 +0000 | [diff] [blame] | 261 | <div class="fragment"><div class="line"><a name="l00044"></a><span class="lineno"> 44</span>  {</div><div class="line"><a name="l00045"></a><span class="lineno"> 45</span>  <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> i = 0; i < IntBy; i++) {</div><div class="line"><a name="l00046"></a><span class="lineno"> 46</span>  *out++ = static_cast<TOut>(*in0++);</div><div class="line"><a name="l00047"></a><span class="lineno"> 47</span>  }</div><div class="line"><a name="l00048"></a><span class="lineno"> 48</span>  <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> i = 0; i < IntBy; i++) {</div><div class="line"><a name="l00049"></a><span class="lineno"> 49</span>  *out++ = static_cast<TOut>(*in1++);</div><div class="line"><a name="l00050"></a><span class="lineno"> 50</span>  }</div><div class="line"><a name="l00051"></a><span class="lineno"> 51</span>  <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> i = 0; i < IntBy; i++) {</div><div class="line"><a name="l00052"></a><span class="lineno"> 52</span>  *out++ = static_cast<TOut>(*in2++);</div><div class="line"><a name="l00053"></a><span class="lineno"> 53</span>  }</div><div class="line"><a name="l00054"></a><span class="lineno"> 54</span>  <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> i = 0; i < IntBy; i++) {</div><div class="line"><a name="l00055"></a><span class="lineno"> 55</span>  *out++ = static_cast<TOut>(*in3++);</div><div class="line"><a name="l00056"></a><span class="lineno"> 56</span>  }</div><div class="line"><a name="l00057"></a><span class="lineno"> 57</span>  }</div></div><!-- fragment --> |
Jenkins | b9abeae | 2018-11-22 11:58:08 +0000 | [diff] [blame] | 262 | </div> |
| 263 | </div> |
| 264 | <a id="a01a4063744a2a3facb06389427638d2a"></a> |
| 265 | <h2 class="memtitle"><span class="permalink"><a href="#a01a4063744a2a3facb06389427638d2a">◆ </a></span>Transform()</h2> |
| 266 | |
| 267 | <div class="memitem"> |
| 268 | <div class="memproto"> |
| 269 | <table class="mlabels"> |
| 270 | <tr> |
| 271 | <td class="mlabels-left"> |
| 272 | <table class="memname"> |
| 273 | <tr> |
| 274 | <td class="memname">static void Transform </td> |
| 275 | <td>(</td> |
| 276 | <td class="paramtype">TOut * </td> |
| 277 | <td class="paramname"><em>out</em>, </td> |
| 278 | </tr> |
| 279 | <tr> |
| 280 | <td class="paramkey"></td> |
| 281 | <td></td> |
| 282 | <td class="paramtype">const TIn * </td> |
| 283 | <td class="paramname"><em>in</em>, </td> |
| 284 | </tr> |
| 285 | <tr> |
| 286 | <td class="paramkey"></td> |
| 287 | <td></td> |
| 288 | <td class="paramtype">const int </td> |
| 289 | <td class="paramname"><em>stride</em>, </td> |
| 290 | </tr> |
| 291 | <tr> |
| 292 | <td class="paramkey"></td> |
| 293 | <td></td> |
| 294 | <td class="paramtype">const int </td> |
| 295 | <td class="paramname"><em>x0</em>, </td> |
| 296 | </tr> |
| 297 | <tr> |
| 298 | <td class="paramkey"></td> |
| 299 | <td></td> |
| 300 | <td class="paramtype">const int </td> |
| 301 | <td class="paramname"><em>xmax</em>, </td> |
| 302 | </tr> |
| 303 | <tr> |
| 304 | <td class="paramkey"></td> |
| 305 | <td></td> |
| 306 | <td class="paramtype">const int </td> |
| 307 | <td class="paramname"><em>k0</em>, </td> |
| 308 | </tr> |
| 309 | <tr> |
| 310 | <td class="paramkey"></td> |
| 311 | <td></td> |
| 312 | <td class="paramtype">const int </td> |
| 313 | <td class="paramname"><em>kmax</em> </td> |
| 314 | </tr> |
| 315 | <tr> |
| 316 | <td></td> |
| 317 | <td>)</td> |
| 318 | <td></td><td></td> |
| 319 | </tr> |
| 320 | </table> |
| 321 | </td> |
| 322 | <td class="mlabels-right"> |
| 323 | <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span> </td> |
| 324 | </tr> |
| 325 | </table> |
| 326 | </div><div class="memdoc"> |
| 327 | |
| 328 | <p class="definition">Definition at line <a class="el" href="transpose__interleave__common_8hpp_source.xhtml#l00059">59</a> of file <a class="el" href="transpose__interleave__common_8hpp_source.xhtml">transpose_interleave_common.hpp</a>.</p> |
Jenkins | 514be65 | 2019-02-28 12:25:18 +0000 | [diff] [blame] | 329 | <div class="fragment"><div class="line"><a name="l00059"></a><span class="lineno"> 59</span>  {</div><div class="line"><a name="l00060"></a><span class="lineno"> 60</span>  <span class="keyword">const</span> <span class="keyword">auto</span> ldin = stride;</div><div class="line"><a name="l00061"></a><span class="lineno"> 61</span> </div><div class="line"><a name="l00062"></a><span class="lineno"> 62</span>  TOut *outarray = out;</div><div class="line"><a name="l00063"></a><span class="lineno"> 63</span>  <span class="keyword">const</span> TIn *inarray = in;</div><div class="line"><a name="l00064"></a><span class="lineno"> 64</span>  TOut *outptr_base = outarray;</div><div class="line"><a name="l00065"></a><span class="lineno"> 65</span>  <span class="keyword">const</span> TIn *inptr_base = inarray + x0 + (k0 * ldin);</div><div class="line"><a name="l00066"></a><span class="lineno"> 66</span>  <span class="keywordtype">int</span> ldout = (kmax - k0) * IntBy;</div><div class="line"><a name="l00067"></a><span class="lineno"> 67</span> </div><div class="line"><a name="l00068"></a><span class="lineno"> 68</span>  <span class="keywordtype">int</span> k=(kmax-k0);</div><div class="line"><a name="l00069"></a><span class="lineno"> 69</span>  <span class="keywordflow">for</span> ( ; k>3; k-=4) {</div><div class="line"><a name="l00070"></a><span class="lineno"> 70</span>  TOut *outptr = outptr_base;</div><div class="line"><a name="l00071"></a><span class="lineno"> 71</span>  <span class="keyword">const</span> TIn *inptr = inptr_base;</div><div class="line"><a name="l00072"></a><span class="lineno"> 72</span>  <span class="keyword">const</span> TIn *inptr1 = inptr + ldin;</div><div class="line"><a name="l00073"></a><span class="lineno"> 73</span>  <span class="keyword">const</span> TIn *inptr2 = inptr1 + ldin;</div><div class="line"><a name="l00074"></a><span class="lineno"> 74</span>  <span class="keyword">const</span> TIn *inptr3 = inptr2 + ldin;</div><div class="line"><a name="l00075"></a><span class="lineno"> 75</span> </div><div class="line"><a name="l00076"></a><span class="lineno"> 76</span>  prefetch_3x(inptr);</div><div class="line"><a name="l00077"></a><span class="lineno"> 77</span>  prefetch_3x(inptr1);</div><div class="line"><a name="l00078"></a><span class="lineno"> 78</span>  prefetch_3x(inptr2);</div><div class="line"><a name="l00079"></a><span class="lineno"> 79</span>  prefetch_3x(inptr3);</div><div class="line"><a name="l00080"></a><span class="lineno"> 80</span> </div><div class="line"><a name="l00081"></a><span class="lineno"> 81</span>  outptr_base += IntBy * 4;</div><div class="line"><a name="l00082"></a><span class="lineno"> 82</span>  inptr_base += ldin * 4;</div><div class="line"><a name="l00083"></a><span class="lineno"> 83</span> </div><div class="line"><a name="l00084"></a><span class="lineno"> 84</span>  <span class="keywordflow">for</span> (<span class="keywordtype">int</span> x = (xmax-x0) / IntBy; x > 0 ; x--) {</div><div class="line"><a name="l00085"></a><span class="lineno"> 85</span>  <a class="code" href="struct_transpose_interleave_common.xhtml#aecb18b3a50a5ad95347415c651236df6">moveblock_1x4</a>(inptr, inptr1, inptr2, inptr3, outptr);</div><div class="line"><a name="l00086"></a><span class="lineno"> 86</span>  outptr += ldout;</div><div class="line"><a name="l00087"></a><span class="lineno"> 87</span>  }</div><div class="line"><a name="l00088"></a><span class="lineno"> 88</span>  }</div><div class="line"><a name="l00089"></a><span class="lineno"> 89</span> </div><div class="line"><a name="l00090"></a><span class="lineno"> 90</span>  <span class="keywordflow">if</span> (k) {</div><div class="line"><a name="l00091"></a><span class="lineno"> 91</span>  TOut *outptr = outptr_base;</div><div class="line"><a name="l00092"></a><span class="lineno"> 92</span>  <span class="keyword">const</span> TIn *inptr = inptr_base;</div><div class="line"><a name="l00093"></a><span class="lineno"> 93</span>  <span class="keyword">const</span> TIn *inptr1 = inptr + ldin;</div><div class="line"><a name="l00094"></a><span class="lineno"> 94</span>  <span class="keyword">const</span> TIn *inptr2 = inptr1 + ldin;</div><div class="line"><a name="l00095"></a><span class="lineno"> 95</span> </div><div class="line"><a name="l00096"></a><span class="lineno"> 96</span>  prefetch_3x(inptr);</div><div class="line"><a name="l00097"></a><span class="lineno"> 97</span>  prefetch_3x(inptr1);</div><div class="line"><a name="l00098"></a><span class="lineno"> 98</span>  prefetch_3x(inptr2);</div><div class="line"><a name="l00099"></a><span class="lineno"> 99</span> </div><div class="line"><a name="l00100"></a><span class="lineno"> 100</span>  <span class="keywordflow">for</span> (<span class="keywordtype">int</span> x = (xmax-x0) / IntBy; x > 0 ; x--) {</div><div class="line"><a name="l00101"></a><span class="lineno"> 101</span>  <span class="keywordflow">switch</span>(k) {</div><div class="line"><a name="l00102"></a><span class="lineno"> 102</span>  <span class="keywordflow">case</span> 3:</div><div class="line"><a name="l00103"></a><span class="lineno"> 103</span>  <a class="code" href="struct_transpose_interleave_common.xhtml#a29fa7590a592651d46ac0f7fffe782a9">moveblock_1x2</a>(inptr, inptr1, outptr);</div><div class="line"><a name="l00104"></a><span class="lineno"> 104</span>  <a class="code" href="struct_transpose_interleave_common.xhtml#ad40e856da5c9d8272b3370cf0e7a4ca6">moveblock_1x1</a>(inptr2, outptr + IntBy * 2);</div><div class="line"><a name="l00105"></a><span class="lineno"> 105</span>  <span class="keywordflow">break</span>;</div><div class="line"><a name="l00106"></a><span class="lineno"> 106</span> </div><div class="line"><a name="l00107"></a><span class="lineno"> 107</span>  <span class="keywordflow">case</span> 2:</div><div class="line"><a name="l00108"></a><span class="lineno"> 108</span>  <a class="code" href="struct_transpose_interleave_common.xhtml#a29fa7590a592651d46ac0f7fffe782a9">moveblock_1x2</a>(inptr, inptr1, outptr);</div><div class="line"><a name="l00109"></a><span class="lineno"> 109</span>  <span class="keywordflow">break</span>;</div><div class="line"><a name="l00110"></a><span class="lineno"> 110</span> </div><div class="line"><a name="l00111"></a><span class="lineno"> 111</span>  <span class="keywordflow">case</span> 1:</div><div class="line"><a name="l00112"></a><span class="lineno"> 112</span>  <a class="code" href="struct_transpose_interleave_common.xhtml#ad40e856da5c9d8272b3370cf0e7a4ca6">moveblock_1x1</a>(inptr, outptr);</div><div class="line"><a name="l00113"></a><span class="lineno"> 113</span>  <span class="keywordflow">break</span>;</div><div class="line"><a name="l00114"></a><span class="lineno"> 114</span> </div><div class="line"><a name="l00115"></a><span class="lineno"> 115</span>  <span class="keywordflow">default</span>:</div><div class="line"><a name="l00116"></a><span class="lineno"> 116</span>  <a class="code" href="utils_8hpp.xhtml#aa468b37bb9d2901433139d01b79036b0">UNREACHABLE</a>(<span class="stringliteral">"Impossible."</span>);</div><div class="line"><a name="l00117"></a><span class="lineno"> 117</span>  }</div><div class="line"><a name="l00118"></a><span class="lineno"> 118</span> </div><div class="line"><a name="l00119"></a><span class="lineno"> 119</span>  outptr += ldout;</div><div class="line"><a name="l00120"></a><span class="lineno"> 120</span>  }</div><div class="line"><a name="l00121"></a><span class="lineno"> 121</span>  }</div><div class="line"><a name="l00122"></a><span class="lineno"> 122</span> </div><div class="line"><a name="l00123"></a><span class="lineno"> 123</span>  <span class="comment">// Cope with ragged X cases</span></div><div class="line"><a name="l00124"></a><span class="lineno"> 124</span>  <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> overflow = (xmax - x0) % IntBy;</div><div class="line"><a name="l00125"></a><span class="lineno"> 125</span>  <span class="keywordflow">if</span> (overflow) {</div><div class="line"><a name="l00126"></a><span class="lineno"> 126</span>  <span class="keyword">const</span> TIn *inptr_base = inarray + (xmax - overflow) + (k0 * ldin);</div><div class="line"><a name="l00127"></a><span class="lineno"> 127</span>  TOut *outptr = outarray + ((xmax - x0) / IntBy) * ldout;</div><div class="line"><a name="l00128"></a><span class="lineno"> 128</span> </div><div class="line"><a name="l00129"></a><span class="lineno"> 129</span>  <span class="keywordflow">for</span> (<span class="keywordtype">int</span> k=(kmax-k0); k>0; k--) {</div><div class="line"><a name="l00130"></a><span class="lineno"> 130</span>  <span class="keyword">const</span> TIn *inptr = inptr_base;</div><div class="line"><a name="l00131"></a><span class="lineno"> 131</span>  inptr_base += ldin;</div><div class="line"><a name="l00132"></a><span class="lineno"> 132</span> </div><div class="line"><a name="l00133"></a><span class="lineno"> 133</span>  <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> x=0; x < IntBy; x++) {</div><div class="line"><a name="l00134"></a><span class="lineno"> 134</span>  TOut val = (x < overflow) ? static_cast<TOut>(*inptr++) : static_cast<TOut>(0);</div><div class="line"><a name="l00135"></a><span class="lineno"> 135</span>  *outptr++ = val;</div><div class="line"><a name="l00136"></a><span class="lineno"> 136</span>  }</div><div class="line"><a name="l00137"></a><span class="lineno"> 137</span>  }</div><div class="line"><a name="l00138"></a><span class="lineno"> 138</span>  }</div><div class="line"><a name="l00139"></a><span class="lineno"> 139</span> }</div><div class="ttc" id="struct_transpose_interleave_common_xhtml_a29fa7590a592651d46ac0f7fffe782a9"><div class="ttname"><a href="struct_transpose_interleave_common.xhtml#a29fa7590a592651d46ac0f7fffe782a9">TransposeInterleaveCommon::moveblock_1x2</a></div><div class="ttdeci">static void moveblock_1x2(const TIn *&in0, const TIn *&in1, TOut *out)</div><div class="ttdef"><b>Definition:</b> <a href="transpose__interleave__common_8hpp_source.xhtml#l00035">transpose_interleave_common.hpp:35</a></div></div> |
Jenkins | b9abeae | 2018-11-22 11:58:08 +0000 | [diff] [blame] | 330 | <div class="ttc" id="struct_transpose_interleave_common_xhtml_aecb18b3a50a5ad95347415c651236df6"><div class="ttname"><a href="struct_transpose_interleave_common.xhtml#aecb18b3a50a5ad95347415c651236df6">TransposeInterleaveCommon::moveblock_1x4</a></div><div class="ttdeci">static void moveblock_1x4(const TIn *&in0, const TIn *&in1, const TIn *&in2, const TIn *&in3, TOut *out)</div><div class="ttdef"><b>Definition:</b> <a href="transpose__interleave__common_8hpp_source.xhtml#l00044">transpose_interleave_common.hpp:44</a></div></div> |
Jenkins | 514be65 | 2019-02-28 12:25:18 +0000 | [diff] [blame] | 331 | <div class="ttc" id="utils_8hpp_xhtml_aa468b37bb9d2901433139d01b79036b0"><div class="ttname"><a href="utils_8hpp.xhtml#aa468b37bb9d2901433139d01b79036b0">UNREACHABLE</a></div><div class="ttdeci">#define UNREACHABLE(why)</div><div class="ttdef"><b>Definition:</b> <a href="utils_8hpp_source.xhtml#l00030">utils.hpp:30</a></div></div> |
Jenkins | b9abeae | 2018-11-22 11:58:08 +0000 | [diff] [blame] | 332 | <div class="ttc" id="struct_transpose_interleave_common_xhtml_ad40e856da5c9d8272b3370cf0e7a4ca6"><div class="ttname"><a href="struct_transpose_interleave_common.xhtml#ad40e856da5c9d8272b3370cf0e7a4ca6">TransposeInterleaveCommon::moveblock_1x1</a></div><div class="ttdeci">static void moveblock_1x1(const TIn *&in0, TOut *out)</div><div class="ttdef"><b>Definition:</b> <a href="transpose__interleave__common_8hpp_source.xhtml#l00029">transpose_interleave_common.hpp:29</a></div></div> |
| 333 | </div><!-- fragment --> |
| 334 | </div> |
| 335 | </div> |
| 336 | <hr/>The documentation for this struct was generated from the following file:<ul> |
| 337 | <li>src/core/NEON/kernels/arm_gemm/transforms/<a class="el" href="transpose__interleave__common_8hpp_source.xhtml">transpose_interleave_common.hpp</a></li> |
| 338 | </ul> |
| 339 | </div><!-- contents --> |
| 340 | </div><!-- doc-content --> |
| 341 | <!-- start footer part --> |
| 342 | <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> |
| 343 | <ul> |
| 344 | <li class="navelem"><a class="el" href="struct_transpose_interleave_common.xhtml">TransposeInterleaveCommon</a></li> |
Jenkins | 575c81f | 2020-03-05 16:07:35 +0000 | [diff] [blame^] | 345 | <li class="footer">Generated on Thu Mar 5 2020 16:07:08 for Compute Library by |
Jenkins | b9abeae | 2018-11-22 11:58:08 +0000 | [diff] [blame] | 346 | <a href="http://www.doxygen.org/index.html"> |
Jenkins | 514be65 | 2019-02-28 12:25:18 +0000 | [diff] [blame] | 347 | <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.15 </li> |
Jenkins | b9abeae | 2018-11-22 11:58:08 +0000 | [diff] [blame] | 348 | </ul> |
| 349 | </div> |
| 350 | </body> |
| 351 | </html> |