blob: 76bea971fa533c0e26e77085a72fa11abff629f8 [file] [log] [blame]
Kaizen8938bd32017-09-28 14:38:23 +01001<!-- HTML header for doxygen 1.8.9.1-->
2<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3<html xmlns="http://www.w3.org/1999/xhtml">
4<head>
5<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
6<meta http-equiv="X-UA-Compatible" content="IE=9"/>
7<meta name="generator" content="Doxygen 1.8.6"/>
8<meta name="robots" content="NOINDEX, NOFOLLOW" /> <!-- Prevent indexing by search engines -->
9<title>Compute Library: TransposeInterleaveCommon&lt; IntBy, TIn, TOut &gt; Struct Template Reference</title>
10<link href="tabs.css" rel="stylesheet" type="text/css"/>
11<script type="text/javascript" src="jquery.js"></script>
12<script type="text/javascript" src="dynsections.js"></script>
13<link href="navtree.css" rel="stylesheet" type="text/css"/>
14<script type="text/javascript" src="resize.js"></script>
15<script type="text/javascript" src="navtree.js"></script>
16<script type="text/javascript">
17 $(document).ready(initResizable);
18 $(window).load(resizeHeight);
19</script>
20<link href="search/search.css" rel="stylesheet" type="text/css"/>
21<script type="text/javascript" src="search/search.js"></script>
22<script type="text/javascript">
23 $(document).ready(function() { searchBox.OnSelectItem(0); });
24</script>
25<script type="text/x-mathjax-config">
26 MathJax.Hub.Config({
27 extensions: ["tex2jax.js"],
28 jax: ["input/TeX","output/HTML-CSS"],
29});
30</script><script src="http://cdn.mathjax.org/mathjax/latest/MathJax.js"></script>
31<link href="doxygen.css" rel="stylesheet" type="text/css" />
32</head>
33<body>
34<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
35<div id="titlearea">
36<table cellspacing="0" cellpadding="0">
37 <tbody>
38 <tr style="height: 56px;">
39 <td style="padding-left: 0.5em;">
40 <div id="projectname">Compute Library
41 &#160;<span id="projectnumber">17.09</span>
42 </div>
43 </td>
44 </tr>
45 </tbody>
46</table>
47</div>
48<!-- end header part -->
49<!-- Generated by Doxygen 1.8.6 -->
50<script type="text/javascript">
51var searchBox = new SearchBox("searchBox", "search",false,'Search');
52</script>
53 <div id="navrow1" class="tabs">
54 <ul class="tablist">
55 <li><a href="index.xhtml"><span>Main&#160;Page</span></a></li>
56 <li><a href="pages.xhtml"><span>Related&#160;Pages</span></a></li>
57 <li><a href="namespaces.xhtml"><span>Namespaces</span></a></li>
58 <li class="current"><a href="annotated.xhtml"><span>Data&#160;Structures</span></a></li>
59 <li><a href="files.xhtml"><span>Files</span></a></li>
60 <li>
61 <div id="MSearchBox" class="MSearchBoxInactive">
62 <span class="left">
63 <img id="MSearchSelect" src="search/mag_sel.png"
64 onmouseover="return searchBox.OnSearchSelectShow()"
65 onmouseout="return searchBox.OnSearchSelectHide()"
66 alt=""/>
67 <input type="text" id="MSearchField" value="Search" accesskey="S"
68 onfocus="searchBox.OnSearchFieldFocus(true)"
69 onblur="searchBox.OnSearchFieldFocus(false)"
70 onkeyup="searchBox.OnSearchFieldChange(event)"/>
71 </span><span class="right">
72 <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
73 </span>
74 </div>
75 </li>
76 </ul>
77 </div>
78 <div id="navrow2" class="tabs2">
79 <ul class="tablist">
80 <li><a href="annotated.xhtml"><span>Data&#160;Structures</span></a></li>
81 <li><a href="classes.xhtml"><span>Data&#160;Structure&#160;Index</span></a></li>
82 <li><a href="inherits.xhtml"><span>Class&#160;Hierarchy</span></a></li>
83 <li><a href="functions.xhtml"><span>Data&#160;Fields</span></a></li>
84 </ul>
85 </div>
86</div><!-- top -->
87<div id="side-nav" class="ui-resizable side-nav-resizable">
88 <div id="nav-tree">
89 <div id="nav-tree-contents">
90 <div id="nav-sync" class="sync"></div>
91 </div>
92 </div>
93 <div id="splitbar" style="-moz-user-select:none;"
94 class="ui-resizable-handle">
95 </div>
96</div>
97<script type="text/javascript">
98$(document).ready(function(){initNavTree('struct_transpose_interleave_common.xhtml','');});
99</script>
100<div id="doc-content">
101<!-- window showing the filter options -->
102<div id="MSearchSelectWindow"
103 onmouseover="return searchBox.OnSearchSelectShow()"
104 onmouseout="return searchBox.OnSearchSelectHide()"
105 onkeydown="return searchBox.OnSearchSelectKey(event)">
106<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(10)"><span class="SelectionMark">&#160;</span>Macros</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(11)"><span class="SelectionMark">&#160;</span>Pages</a></div>
107
108<!-- iframe showing the search results (closed by default) -->
109<div id="MSearchResultsWindow">
110<iframe src="javascript:void(0)" frameborder="0"
111 name="MSearchResults" id="MSearchResults">
112</iframe>
113</div>
114
115<div class="header">
116 <div class="summary">
117<a href="#pub-static-methods">Static Public Member Functions</a> </div>
118 <div class="headertitle">
119<div class="title">TransposeInterleaveCommon&lt; IntBy, TIn, TOut &gt; Struct Template Reference</div> </div>
120</div><!--header-->
121<div class="contents">
122
123<p><code>#include &lt;<a class="el" href="transpose__interleave__common_8hpp_source.xhtml">transpose_interleave_common.hpp</a>&gt;</code></p>
124<table class="memberdecls">
125<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
126Static Public Member Functions</h2></td></tr>
127<tr class="memitem:ad40e856da5c9d8272b3370cf0e7a4ca6"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_transpose_interleave_common.xhtml#ad40e856da5c9d8272b3370cf0e7a4ca6">moveblock_1x1</a> (const TIn *&amp;in0, TOut *out)</td></tr>
128<tr class="separator:ad40e856da5c9d8272b3370cf0e7a4ca6"><td class="memSeparator" colspan="2">&#160;</td></tr>
129<tr class="memitem:a29fa7590a592651d46ac0f7fffe782a9"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_transpose_interleave_common.xhtml#a29fa7590a592651d46ac0f7fffe782a9">moveblock_1x2</a> (const TIn *&amp;in0, const TIn *&amp;in1, TOut *out)</td></tr>
130<tr class="separator:a29fa7590a592651d46ac0f7fffe782a9"><td class="memSeparator" colspan="2">&#160;</td></tr>
131<tr class="memitem:aecb18b3a50a5ad95347415c651236df6"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_transpose_interleave_common.xhtml#aecb18b3a50a5ad95347415c651236df6">moveblock_1x4</a> (const TIn *&amp;in0, const TIn *&amp;in1, const TIn *&amp;in2, const TIn *&amp;in3, TOut *out)</td></tr>
132<tr class="separator:aecb18b3a50a5ad95347415c651236df6"><td class="memSeparator" colspan="2">&#160;</td></tr>
133<tr class="memitem:a01a4063744a2a3facb06389427638d2a"><td class="memItemLeft" align="right" valign="top">static void&#160;</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>
134<tr class="separator:a01a4063744a2a3facb06389427638d2a"><td class="memSeparator" colspan="2">&#160;</td></tr>
135</table>
136<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
137<div class="textblock"><h3>template&lt;unsigned int IntBy, typename TIn, typename TOut&gt;<br/>
138struct TransposeInterleaveCommon&lt; IntBy, TIn, TOut &gt;</h3>
139
140
141<p>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>
142</div><h2 class="groupheader">Member Function Documentation</h2>
143<a class="anchor" id="ad40e856da5c9d8272b3370cf0e7a4ca6"></a>
144<div class="memitem">
145<div class="memproto">
146<table class="mlabels">
147 <tr>
148 <td class="mlabels-left">
149 <table class="memname">
150 <tr>
151 <td class="memname">static void moveblock_1x1 </td>
152 <td>(</td>
153 <td class="paramtype">const TIn *&amp;&#160;</td>
154 <td class="paramname"><em>in0</em>, </td>
155 </tr>
156 <tr>
157 <td class="paramkey"></td>
158 <td></td>
159 <td class="paramtype">TOut *&#160;</td>
160 <td class="paramname"><em>out</em>&#160;</td>
161 </tr>
162 <tr>
163 <td></td>
164 <td>)</td>
165 <td></td><td></td>
166 </tr>
167 </table>
168 </td>
169 <td class="mlabels-right">
170<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span> </td>
171 </tr>
172</table>
173</div><div class="memdoc">
174
175<p>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>
176
177<p>Referenced by <a class="el" href="transpose__interleave__common_8hpp_source.xhtml#l00059">TransposeInterleaveCommon&lt; IntBy, TIn, TOut &gt;::Transform()</a>.</p>
178<div class="fragment"><div class="line"><a name="l00029"></a><span class="lineno"> 29</span>&#160; {</div>
179<div class="line"><a name="l00030"></a><span class="lineno"> 30</span>&#160; <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> i = 0; i &lt; IntBy; i++) {</div>
180<div class="line"><a name="l00031"></a><span class="lineno"> 31</span>&#160; *out++ = <span class="keyword">static_cast&lt;</span>TOut<span class="keyword">&gt;</span>(*in0++);</div>
181<div class="line"><a name="l00032"></a><span class="lineno"> 32</span>&#160; }</div>
182<div class="line"><a name="l00033"></a><span class="lineno"> 33</span>&#160; }</div>
183</div><!-- fragment -->
184</div>
185</div>
186<a class="anchor" id="a29fa7590a592651d46ac0f7fffe782a9"></a>
187<div class="memitem">
188<div class="memproto">
189<table class="mlabels">
190 <tr>
191 <td class="mlabels-left">
192 <table class="memname">
193 <tr>
194 <td class="memname">static void moveblock_1x2 </td>
195 <td>(</td>
196 <td class="paramtype">const TIn *&amp;&#160;</td>
197 <td class="paramname"><em>in0</em>, </td>
198 </tr>
199 <tr>
200 <td class="paramkey"></td>
201 <td></td>
202 <td class="paramtype">const TIn *&amp;&#160;</td>
203 <td class="paramname"><em>in1</em>, </td>
204 </tr>
205 <tr>
206 <td class="paramkey"></td>
207 <td></td>
208 <td class="paramtype">TOut *&#160;</td>
209 <td class="paramname"><em>out</em>&#160;</td>
210 </tr>
211 <tr>
212 <td></td>
213 <td>)</td>
214 <td></td><td></td>
215 </tr>
216 </table>
217 </td>
218 <td class="mlabels-right">
219<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span> </td>
220 </tr>
221</table>
222</div><div class="memdoc">
223
224<p>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>
225
226<p>Referenced by <a class="el" href="transpose__interleave__common_8hpp_source.xhtml#l00059">TransposeInterleaveCommon&lt; IntBy, TIn, TOut &gt;::Transform()</a>.</p>
227<div class="fragment"><div class="line"><a name="l00035"></a><span class="lineno"> 35</span>&#160; {</div>
228<div class="line"><a name="l00036"></a><span class="lineno"> 36</span>&#160; <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> i = 0; i &lt; IntBy; i++) {</div>
229<div class="line"><a name="l00037"></a><span class="lineno"> 37</span>&#160; *out++ = <span class="keyword">static_cast&lt;</span>TOut<span class="keyword">&gt;</span>(*in0++);</div>
230<div class="line"><a name="l00038"></a><span class="lineno"> 38</span>&#160; }</div>
231<div class="line"><a name="l00039"></a><span class="lineno"> 39</span>&#160; <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> i = 0; i &lt; IntBy; i++) {</div>
232<div class="line"><a name="l00040"></a><span class="lineno"> 40</span>&#160; *out++ = <span class="keyword">static_cast&lt;</span>TOut<span class="keyword">&gt;</span>(*in1++);</div>
233<div class="line"><a name="l00041"></a><span class="lineno"> 41</span>&#160; }</div>
234<div class="line"><a name="l00042"></a><span class="lineno"> 42</span>&#160; }</div>
235</div><!-- fragment -->
236</div>
237</div>
238<a class="anchor" id="aecb18b3a50a5ad95347415c651236df6"></a>
239<div class="memitem">
240<div class="memproto">
241<table class="mlabels">
242 <tr>
243 <td class="mlabels-left">
244 <table class="memname">
245 <tr>
246 <td class="memname">static void moveblock_1x4 </td>
247 <td>(</td>
248 <td class="paramtype">const TIn *&amp;&#160;</td>
249 <td class="paramname"><em>in0</em>, </td>
250 </tr>
251 <tr>
252 <td class="paramkey"></td>
253 <td></td>
254 <td class="paramtype">const TIn *&amp;&#160;</td>
255 <td class="paramname"><em>in1</em>, </td>
256 </tr>
257 <tr>
258 <td class="paramkey"></td>
259 <td></td>
260 <td class="paramtype">const TIn *&amp;&#160;</td>
261 <td class="paramname"><em>in2</em>, </td>
262 </tr>
263 <tr>
264 <td class="paramkey"></td>
265 <td></td>
266 <td class="paramtype">const TIn *&amp;&#160;</td>
267 <td class="paramname"><em>in3</em>, </td>
268 </tr>
269 <tr>
270 <td class="paramkey"></td>
271 <td></td>
272 <td class="paramtype">TOut *&#160;</td>
273 <td class="paramname"><em>out</em>&#160;</td>
274 </tr>
275 <tr>
276 <td></td>
277 <td>)</td>
278 <td></td><td></td>
279 </tr>
280 </table>
281 </td>
282 <td class="mlabels-right">
283<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span> </td>
284 </tr>
285</table>
286</div><div class="memdoc">
287
288<p>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>
289
290<p>Referenced by <a class="el" href="transpose__interleave__common_8hpp_source.xhtml#l00059">TransposeInterleaveCommon&lt; IntBy, TIn, TOut &gt;::Transform()</a>.</p>
291<div class="fragment"><div class="line"><a name="l00044"></a><span class="lineno"> 44</span>&#160; {</div>
292<div class="line"><a name="l00045"></a><span class="lineno"> 45</span>&#160; <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> i = 0; i &lt; IntBy; i++) {</div>
293<div class="line"><a name="l00046"></a><span class="lineno"> 46</span>&#160; *out++ = <span class="keyword">static_cast&lt;</span>TOut<span class="keyword">&gt;</span>(*in0++);</div>
294<div class="line"><a name="l00047"></a><span class="lineno"> 47</span>&#160; }</div>
295<div class="line"><a name="l00048"></a><span class="lineno"> 48</span>&#160; <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> i = 0; i &lt; IntBy; i++) {</div>
296<div class="line"><a name="l00049"></a><span class="lineno"> 49</span>&#160; *out++ = <span class="keyword">static_cast&lt;</span>TOut<span class="keyword">&gt;</span>(*in1++);</div>
297<div class="line"><a name="l00050"></a><span class="lineno"> 50</span>&#160; }</div>
298<div class="line"><a name="l00051"></a><span class="lineno"> 51</span>&#160; <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> i = 0; i &lt; IntBy; i++) {</div>
299<div class="line"><a name="l00052"></a><span class="lineno"> 52</span>&#160; *out++ = <span class="keyword">static_cast&lt;</span>TOut<span class="keyword">&gt;</span>(*in2++);</div>
300<div class="line"><a name="l00053"></a><span class="lineno"> 53</span>&#160; }</div>
301<div class="line"><a name="l00054"></a><span class="lineno"> 54</span>&#160; <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> i = 0; i &lt; IntBy; i++) {</div>
302<div class="line"><a name="l00055"></a><span class="lineno"> 55</span>&#160; *out++ = <span class="keyword">static_cast&lt;</span>TOut<span class="keyword">&gt;</span>(*in3++);</div>
303<div class="line"><a name="l00056"></a><span class="lineno"> 56</span>&#160; }</div>
304<div class="line"><a name="l00057"></a><span class="lineno"> 57</span>&#160; }</div>
305</div><!-- fragment -->
306</div>
307</div>
308<a class="anchor" id="a01a4063744a2a3facb06389427638d2a"></a>
309<div class="memitem">
310<div class="memproto">
311<table class="mlabels">
312 <tr>
313 <td class="mlabels-left">
314 <table class="memname">
315 <tr>
316 <td class="memname">static void Transform </td>
317 <td>(</td>
318 <td class="paramtype">TOut *&#160;</td>
319 <td class="paramname"><em>out</em>, </td>
320 </tr>
321 <tr>
322 <td class="paramkey"></td>
323 <td></td>
324 <td class="paramtype">const TIn *&#160;</td>
325 <td class="paramname"><em>in</em>, </td>
326 </tr>
327 <tr>
328 <td class="paramkey"></td>
329 <td></td>
330 <td class="paramtype">const int&#160;</td>
331 <td class="paramname"><em>stride</em>, </td>
332 </tr>
333 <tr>
334 <td class="paramkey"></td>
335 <td></td>
336 <td class="paramtype">const int&#160;</td>
337 <td class="paramname"><em>x0</em>, </td>
338 </tr>
339 <tr>
340 <td class="paramkey"></td>
341 <td></td>
342 <td class="paramtype">const int&#160;</td>
343 <td class="paramname"><em>xmax</em>, </td>
344 </tr>
345 <tr>
346 <td class="paramkey"></td>
347 <td></td>
348 <td class="paramtype">const int&#160;</td>
349 <td class="paramname"><em>k0</em>, </td>
350 </tr>
351 <tr>
352 <td class="paramkey"></td>
353 <td></td>
354 <td class="paramtype">const int&#160;</td>
355 <td class="paramname"><em>kmax</em>&#160;</td>
356 </tr>
357 <tr>
358 <td></td>
359 <td>)</td>
360 <td></td><td></td>
361 </tr>
362 </table>
363 </td>
364 <td class="mlabels-right">
365<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span> </td>
366 </tr>
367</table>
368</div><div class="memdoc">
369
370<p>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>
371
372<p>References <a class="el" href="transpose__interleave__common_8hpp_source.xhtml#l00029">TransposeInterleaveCommon&lt; IntBy, TIn, TOut &gt;::moveblock_1x1()</a>, <a class="el" href="transpose__interleave__common_8hpp_source.xhtml#l00035">TransposeInterleaveCommon&lt; IntBy, TIn, TOut &gt;::moveblock_1x2()</a>, and <a class="el" href="transpose__interleave__common_8hpp_source.xhtml#l00044">TransposeInterleaveCommon&lt; IntBy, TIn, TOut &gt;::moveblock_1x4()</a>.</p>
373<div class="fragment"><div class="line"><a name="l00059"></a><span class="lineno"> 59</span>&#160; {</div>
374<div class="line"><a name="l00060"></a><span class="lineno"> 60</span>&#160; <span class="keyword">const</span> <span class="keyword">auto</span> ldin = stride;</div>
375<div class="line"><a name="l00061"></a><span class="lineno"> 61</span>&#160;</div>
376<div class="line"><a name="l00062"></a><span class="lineno"> 62</span>&#160; TOut *outarray = out;</div>
377<div class="line"><a name="l00063"></a><span class="lineno"> 63</span>&#160; <span class="keyword">const</span> TIn *inarray = in;</div>
378<div class="line"><a name="l00064"></a><span class="lineno"> 64</span>&#160; TOut *outptr_base = outarray;</div>
379<div class="line"><a name="l00065"></a><span class="lineno"> 65</span>&#160; <span class="keyword">const</span> TIn *inptr_base = inarray + x0 + (k0 * ldin);</div>
380<div class="line"><a name="l00066"></a><span class="lineno"> 66</span>&#160; <span class="keywordtype">int</span> ldout = (kmax - k0) * IntBy;</div>
381<div class="line"><a name="l00067"></a><span class="lineno"> 67</span>&#160;</div>
382<div class="line"><a name="l00068"></a><span class="lineno"> 68</span>&#160; <span class="keywordtype">int</span> k=(kmax-k0);</div>
383<div class="line"><a name="l00069"></a><span class="lineno"> 69</span>&#160; <span class="keywordflow">for</span> ( ; k&gt;3; k-=4) {</div>
384<div class="line"><a name="l00070"></a><span class="lineno"> 70</span>&#160; TOut *outptr = outptr_base;</div>
385<div class="line"><a name="l00071"></a><span class="lineno"> 71</span>&#160; <span class="keyword">const</span> TIn *inptr = inptr_base;</div>
386<div class="line"><a name="l00072"></a><span class="lineno"> 72</span>&#160; <span class="keyword">const</span> TIn *inptr1 = inptr + ldin;</div>
387<div class="line"><a name="l00073"></a><span class="lineno"> 73</span>&#160; <span class="keyword">const</span> TIn *inptr2 = inptr1 + ldin;</div>
388<div class="line"><a name="l00074"></a><span class="lineno"> 74</span>&#160; <span class="keyword">const</span> TIn *inptr3 = inptr2 + ldin;</div>
389<div class="line"><a name="l00075"></a><span class="lineno"> 75</span>&#160;</div>
390<div class="line"><a name="l00076"></a><span class="lineno"> 76</span>&#160; prefetch_3x(inptr);</div>
391<div class="line"><a name="l00077"></a><span class="lineno"> 77</span>&#160; prefetch_3x(inptr1);</div>
392<div class="line"><a name="l00078"></a><span class="lineno"> 78</span>&#160; prefetch_3x(inptr2);</div>
393<div class="line"><a name="l00079"></a><span class="lineno"> 79</span>&#160; prefetch_3x(inptr3);</div>
394<div class="line"><a name="l00080"></a><span class="lineno"> 80</span>&#160;</div>
395<div class="line"><a name="l00081"></a><span class="lineno"> 81</span>&#160; outptr_base += IntBy * 4;</div>
396<div class="line"><a name="l00082"></a><span class="lineno"> 82</span>&#160; inptr_base += ldin * 4;</div>
397<div class="line"><a name="l00083"></a><span class="lineno"> 83</span>&#160;</div>
398<div class="line"><a name="l00084"></a><span class="lineno"> 84</span>&#160; <span class="keywordflow">for</span> (<span class="keywordtype">int</span> x = (xmax-x0) / IntBy; x &gt; 0 ; x--) {</div>
399<div class="line"><a name="l00085"></a><span class="lineno"> 85</span>&#160; <a class="code" href="struct_transpose_interleave_common.xhtml#aecb18b3a50a5ad95347415c651236df6">moveblock_1x4</a>(inptr, inptr1, inptr2, inptr3, outptr);</div>
400<div class="line"><a name="l00086"></a><span class="lineno"> 86</span>&#160; outptr += ldout;</div>
401<div class="line"><a name="l00087"></a><span class="lineno"> 87</span>&#160; }</div>
402<div class="line"><a name="l00088"></a><span class="lineno"> 88</span>&#160; }</div>
403<div class="line"><a name="l00089"></a><span class="lineno"> 89</span>&#160;</div>
404<div class="line"><a name="l00090"></a><span class="lineno"> 90</span>&#160; <span class="keywordflow">if</span> (k) {</div>
405<div class="line"><a name="l00091"></a><span class="lineno"> 91</span>&#160; TOut *outptr = outptr_base;</div>
406<div class="line"><a name="l00092"></a><span class="lineno"> 92</span>&#160; <span class="keyword">const</span> TIn *inptr = inptr_base;</div>
407<div class="line"><a name="l00093"></a><span class="lineno"> 93</span>&#160; <span class="keyword">const</span> TIn *inptr1 = inptr + ldin;</div>
408<div class="line"><a name="l00094"></a><span class="lineno"> 94</span>&#160; <span class="keyword">const</span> TIn *inptr2 = inptr1 + ldin;</div>
409<div class="line"><a name="l00095"></a><span class="lineno"> 95</span>&#160;</div>
410<div class="line"><a name="l00096"></a><span class="lineno"> 96</span>&#160; prefetch_3x(inptr);</div>
411<div class="line"><a name="l00097"></a><span class="lineno"> 97</span>&#160; prefetch_3x(inptr1);</div>
412<div class="line"><a name="l00098"></a><span class="lineno"> 98</span>&#160; prefetch_3x(inptr2);</div>
413<div class="line"><a name="l00099"></a><span class="lineno"> 99</span>&#160;</div>
414<div class="line"><a name="l00100"></a><span class="lineno"> 100</span>&#160; <span class="keywordflow">for</span> (<span class="keywordtype">int</span> x = (xmax-x0) / IntBy; x &gt; 0 ; x--) {</div>
415<div class="line"><a name="l00101"></a><span class="lineno"> 101</span>&#160; <span class="keywordflow">switch</span>(k) {</div>
416<div class="line"><a name="l00102"></a><span class="lineno"> 102</span>&#160; <span class="keywordflow">case</span> 3:</div>
417<div class="line"><a name="l00103"></a><span class="lineno"> 103</span>&#160; <a class="code" href="struct_transpose_interleave_common.xhtml#a29fa7590a592651d46ac0f7fffe782a9">moveblock_1x2</a>(inptr, inptr1, outptr);</div>
418<div class="line"><a name="l00104"></a><span class="lineno"> 104</span>&#160; <a class="code" href="struct_transpose_interleave_common.xhtml#ad40e856da5c9d8272b3370cf0e7a4ca6">moveblock_1x1</a>(inptr2, outptr + IntBy * 2);</div>
419<div class="line"><a name="l00105"></a><span class="lineno"> 105</span>&#160; <span class="keywordflow">break</span>;</div>
420<div class="line"><a name="l00106"></a><span class="lineno"> 106</span>&#160;</div>
421<div class="line"><a name="l00107"></a><span class="lineno"> 107</span>&#160; <span class="keywordflow">case</span> 2:</div>
422<div class="line"><a name="l00108"></a><span class="lineno"> 108</span>&#160; <a class="code" href="struct_transpose_interleave_common.xhtml#a29fa7590a592651d46ac0f7fffe782a9">moveblock_1x2</a>(inptr, inptr1, outptr);</div>
423<div class="line"><a name="l00109"></a><span class="lineno"> 109</span>&#160; <span class="keywordflow">break</span>;</div>
424<div class="line"><a name="l00110"></a><span class="lineno"> 110</span>&#160;</div>
425<div class="line"><a name="l00111"></a><span class="lineno"> 111</span>&#160; <span class="keywordflow">case</span> 1:</div>
426<div class="line"><a name="l00112"></a><span class="lineno"> 112</span>&#160; <a class="code" href="struct_transpose_interleave_common.xhtml#ad40e856da5c9d8272b3370cf0e7a4ca6">moveblock_1x1</a>(inptr, outptr);</div>
427<div class="line"><a name="l00113"></a><span class="lineno"> 113</span>&#160; <span class="keywordflow">break</span>;</div>
428<div class="line"><a name="l00114"></a><span class="lineno"> 114</span>&#160; <span class="keywordflow">default</span>:</div>
429<div class="line"><a name="l00115"></a><span class="lineno"> 115</span>&#160; <span class="keywordflow">break</span>;</div>
430<div class="line"><a name="l00116"></a><span class="lineno"> 116</span>&#160; }</div>
431<div class="line"><a name="l00117"></a><span class="lineno"> 117</span>&#160;</div>
432<div class="line"><a name="l00118"></a><span class="lineno"> 118</span>&#160; outptr += ldout;</div>
433<div class="line"><a name="l00119"></a><span class="lineno"> 119</span>&#160; }</div>
434<div class="line"><a name="l00120"></a><span class="lineno"> 120</span>&#160; }</div>
435<div class="line"><a name="l00121"></a><span class="lineno"> 121</span>&#160;</div>
436<div class="line"><a name="l00122"></a><span class="lineno"> 122</span>&#160; <span class="comment">// Cope with ragged X cases</span></div>
437<div class="line"><a name="l00123"></a><span class="lineno"> 123</span>&#160; <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> overflow = (xmax - x0) % IntBy;</div>
438<div class="line"><a name="l00124"></a><span class="lineno"> 124</span>&#160; <span class="keywordflow">if</span> (overflow) {</div>
439<div class="line"><a name="l00125"></a><span class="lineno"> 125</span>&#160; <span class="keyword">const</span> TIn *inptr_base = inarray + (xmax - overflow) + (k0 * ldin);</div>
440<div class="line"><a name="l00126"></a><span class="lineno"> 126</span>&#160; TOut *outptr = outarray + ((xmax - x0) / IntBy) * ldout;</div>
441<div class="line"><a name="l00127"></a><span class="lineno"> 127</span>&#160;</div>
442<div class="line"><a name="l00128"></a><span class="lineno"> 128</span>&#160; <span class="keywordflow">for</span> (<span class="keywordtype">int</span> k=(kmax-k0); k&gt;0; k--) {</div>
443<div class="line"><a name="l00129"></a><span class="lineno"> 129</span>&#160; <span class="keyword">const</span> TIn *inptr = inptr_base;</div>
444<div class="line"><a name="l00130"></a><span class="lineno"> 130</span>&#160; inptr_base += ldin;</div>
445<div class="line"><a name="l00131"></a><span class="lineno"> 131</span>&#160;</div>
446<div class="line"><a name="l00132"></a><span class="lineno"> 132</span>&#160; <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> x=0; x &lt; IntBy; x++) {</div>
447<div class="line"><a name="l00133"></a><span class="lineno"> 133</span>&#160; TOut val = (x &lt; overflow) ? static_cast&lt;TOut&gt;(*inptr++) : static_cast&lt;TOut&gt;(0);</div>
448<div class="line"><a name="l00134"></a><span class="lineno"> 134</span>&#160; *outptr++ = val;</div>
449<div class="line"><a name="l00135"></a><span class="lineno"> 135</span>&#160; }</div>
450<div class="line"><a name="l00136"></a><span class="lineno"> 136</span>&#160; }</div>
451<div class="line"><a name="l00137"></a><span class="lineno"> 137</span>&#160; }</div>
452<div class="line"><a name="l00138"></a><span class="lineno"> 138</span>&#160;}</div>
453<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 *&amp;in0, const TIn *&amp;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>
454<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 *&amp;in0, const TIn *&amp;in1, const TIn *&amp;in2, const TIn *&amp;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>
455<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 *&amp;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>
456</div><!-- fragment -->
457</div>
458</div>
459<hr/>The documentation for this struct was generated from the following file:<ul>
460<li>arm_compute/core/NEON/kernels/assembly/transforms/<a class="el" href="transpose__interleave__common_8hpp_source.xhtml">transpose_interleave_common.hpp</a></li>
461</ul>
462</div><!-- contents -->
463</div><!-- doc-content -->
464<!-- start footer part -->
465<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
466 <ul>
467 <li class="navelem"><a class="el" href="struct_transpose_interleave_common.xhtml">TransposeInterleaveCommon</a></li>
468 <li class="footer">Generated on Thu Sep 28 2017 14:37:54 for Compute Library by
469 <a href="http://www.doxygen.org/index.html">
470 <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.6 </li>
471 </ul>
472</div>
473</body>
474</html>