blob: 86edc4b8a457dfd748fe215a70f052e8f4b22a08 [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: arm_compute/core/NEON/kernels/assembly/mergeresults.hpp File 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
Kaizenbf8b01d2017-10-12 14:26:51 +010041 &#160;<span id="projectnumber">17.10</span>
Kaizen8938bd32017-09-28 14:38:23 +010042 </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><a href="annotated.xhtml"><span>Data&#160;Structures</span></a></li>
59 <li class="current"><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="files.xhtml"><span>File&#160;List</span></a></li>
81 <li><a href="globals.xhtml"><span>Globals</span></a></li>
82 </ul>
83 </div>
84</div><!-- top -->
85<div id="side-nav" class="ui-resizable side-nav-resizable">
86 <div id="nav-tree">
87 <div id="nav-tree-contents">
88 <div id="nav-sync" class="sync"></div>
89 </div>
90 </div>
91 <div id="splitbar" style="-moz-user-select:none;"
92 class="ui-resizable-handle">
93 </div>
94</div>
95<script type="text/javascript">
96$(document).ready(function(){initNavTree('mergeresults_8hpp.xhtml','');});
97</script>
98<div id="doc-content">
99<!-- window showing the filter options -->
100<div id="MSearchSelectWindow"
101 onmouseover="return searchBox.OnSearchSelectShow()"
102 onmouseout="return searchBox.OnSearchSelectHide()"
103 onkeydown="return searchBox.OnSearchSelectKey(event)">
104<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>
105
106<!-- iframe showing the search results (closed by default) -->
107<div id="MSearchResultsWindow">
108<iframe src="javascript:void(0)" frameborder="0"
109 name="MSearchResults" id="MSearchResults">
110</iframe>
111</div>
112
113<div class="header">
114 <div class="summary">
115<a href="#func-members">Functions</a> </div>
116 <div class="headertitle">
117<div class="title">mergeresults.hpp File Reference</div> </div>
118</div><!--header-->
119<div class="contents">
120<div class="textblock"><code>#include &quot;<a class="el" href="merges_2list_8hpp_source.xhtml">merges/list.hpp</a>&quot;</code><br/>
121</div>
122<p><a href="mergeresults_8hpp_source.xhtml">Go to the source code of this file.</a></p>
123<table class="memberdecls">
124<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
125Functions</h2></td></tr>
126<tr class="memitem:a2531e23079ff3579f5cada1e1b4c4c57"><td class="memTemplParams" colspan="2">template&lt;unsigned int width, unsigned int height, typename Tin , typename Tout &gt; </td></tr>
127<tr class="memitem:a2531e23079ff3579f5cada1e1b4c4c57"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="mergeresults_8hpp.xhtml#a2531e23079ff3579f5cada1e1b4c4c57">MergeResults</a> (Tout *out, const Tin *in, int ldc, int y0, int ymax, int x0, int xmax, const Tout alpha, const Tout beta)</td></tr>
128<tr class="separator:a2531e23079ff3579f5cada1e1b4c4c57"><td class="memSeparator" colspan="2">&#160;</td></tr>
129</table>
130<h2 class="groupheader">Function Documentation</h2>
131<a class="anchor" id="a2531e23079ff3579f5cada1e1b4c4c57"></a>
132<div class="memitem">
133<div class="memproto">
134 <table class="memname">
135 <tr>
136 <td class="memname">void MergeResults </td>
137 <td>(</td>
138 <td class="paramtype">Tout *&#160;</td>
139 <td class="paramname"><em>out</em>, </td>
140 </tr>
141 <tr>
142 <td class="paramkey"></td>
143 <td></td>
144 <td class="paramtype">const Tin *&#160;</td>
145 <td class="paramname"><em>in</em>, </td>
146 </tr>
147 <tr>
148 <td class="paramkey"></td>
149 <td></td>
150 <td class="paramtype">int&#160;</td>
151 <td class="paramname"><em>ldc</em>, </td>
152 </tr>
153 <tr>
154 <td class="paramkey"></td>
155 <td></td>
156 <td class="paramtype">int&#160;</td>
157 <td class="paramname"><em>y0</em>, </td>
158 </tr>
159 <tr>
160 <td class="paramkey"></td>
161 <td></td>
162 <td class="paramtype">int&#160;</td>
163 <td class="paramname"><em>ymax</em>, </td>
164 </tr>
165 <tr>
166 <td class="paramkey"></td>
167 <td></td>
168 <td class="paramtype">int&#160;</td>
169 <td class="paramname"><em>x0</em>, </td>
170 </tr>
171 <tr>
172 <td class="paramkey"></td>
173 <td></td>
174 <td class="paramtype">int&#160;</td>
175 <td class="paramname"><em>xmax</em>, </td>
176 </tr>
177 <tr>
178 <td class="paramkey"></td>
179 <td></td>
180 <td class="paramtype">const Tout&#160;</td>
181 <td class="paramname"><em>alpha</em>, </td>
182 </tr>
183 <tr>
184 <td class="paramkey"></td>
185 <td></td>
186 <td class="paramtype">const Tout&#160;</td>
187 <td class="paramname"><em>beta</em>&#160;</td>
188 </tr>
189 <tr>
190 <td></td>
191 <td>)</td>
192 <td></td><td></td>
193 </tr>
194 </table>
195</div><div class="memdoc">
196
197<p>Definition at line <a class="el" href="mergeresults_8hpp_source.xhtml#l00027">27</a> of file <a class="el" href="mergeresults_8hpp_source.xhtml">mergeresults.hpp</a>.</p>
198<div class="fragment"><div class="line"><a name="l00027"></a><span class="lineno"> 27</span>&#160; {</div>
199<div class="line"><a name="l00028"></a><span class="lineno"> 28</span>&#160; <span class="keywordtype">int</span> full_y_blocks = (ymax - y0) / height;</div>
200<div class="line"><a name="l00029"></a><span class="lineno"> 29</span>&#160; <span class="keywordtype">int</span> y_remainder = (ymax - y0) % height;</div>
201<div class="line"><a name="l00030"></a><span class="lineno"> 30</span>&#160; <span class="keywordtype">int</span> y_blocks = full_y_blocks + (y_remainder ? 1 : 0);</div>
202<div class="line"><a name="l00031"></a><span class="lineno"> 31</span>&#160;</div>
203<div class="line"><a name="l00032"></a><span class="lineno"> 32</span>&#160; <span class="keywordtype">int</span> full_x_blocks = (xmax - x0) / width;</div>
204<div class="line"><a name="l00033"></a><span class="lineno"> 33</span>&#160; <span class="keywordtype">int</span> x_remainder = (xmax - x0) % width;</div>
205<div class="line"><a name="l00034"></a><span class="lineno"> 34</span>&#160; <span class="keywordtype">int</span> x_blocks = full_x_blocks + (x_remainder ? 1 : 0);</div>
206<div class="line"><a name="l00035"></a><span class="lineno"> 35</span>&#160;</div>
207<div class="line"><a name="l00036"></a><span class="lineno"> 36</span>&#160; <span class="keywordflow">for</span> (<span class="keywordtype">int</span> y_block = 0; y_block &lt; y_blocks; y_block++) {</div>
208<div class="line"><a name="l00037"></a><span class="lineno"> 37</span>&#160; <span class="keywordtype">int</span> ybase = y0 + (y_block * height);</div>
209<div class="line"><a name="l00038"></a><span class="lineno"> 38</span>&#160;</div>
210<div class="line"><a name="l00039"></a><span class="lineno"> 39</span>&#160; <span class="keywordtype">int</span> fill_rows = (y_block &lt; full_y_blocks) ? height : y_remainder;</div>
211<div class="line"><a name="l00040"></a><span class="lineno"> 40</span>&#160;</div>
212<div class="line"><a name="l00041"></a><span class="lineno"> 41</span>&#160; <span class="keywordflow">for</span> (<span class="keywordtype">int</span> x_block = 0; x_block &lt; x_blocks; x_block++) {</div>
213<div class="line"><a name="l00042"></a><span class="lineno"> 42</span>&#160; <span class="keywordtype">int</span> xbase = x0 + (x_block * width);</div>
214<div class="line"><a name="l00043"></a><span class="lineno"> 43</span>&#160;</div>
215<div class="line"><a name="l00044"></a><span class="lineno"> 44</span>&#160; <span class="keywordtype">int</span> fill_cols = (x_block &lt; full_x_blocks) ? width : x_remainder;</div>
216<div class="line"><a name="l00045"></a><span class="lineno"> 45</span>&#160;</div>
217<div class="line"><a name="l00046"></a><span class="lineno"> 46</span>&#160; <span class="keywordflow">for</span> (<span class="keywordtype">int</span> row=0; row &lt; fill_rows; row++) {</div>
218<div class="line"><a name="l00047"></a><span class="lineno"> 47</span>&#160; <span class="keywordflow">for</span> (<span class="keywordtype">int</span> col=0; col &lt; fill_cols; col++) {</div>
219<div class="line"><a name="l00048"></a><span class="lineno"> 48</span>&#160; Tout &amp;p = out[(ybase + row) * ldc + xbase + col];</div>
220<div class="line"><a name="l00049"></a><span class="lineno"> 49</span>&#160;</div>
221<div class="line"><a name="l00050"></a><span class="lineno"> 50</span>&#160; p = (p * alpha) + (beta * in[row * width + col]);</div>
222<div class="line"><a name="l00051"></a><span class="lineno"> 51</span>&#160; }</div>
223<div class="line"><a name="l00052"></a><span class="lineno"> 52</span>&#160; }</div>
224<div class="line"><a name="l00053"></a><span class="lineno"> 53</span>&#160;</div>
225<div class="line"><a name="l00054"></a><span class="lineno"> 54</span>&#160; in += (width * height);</div>
226<div class="line"><a name="l00055"></a><span class="lineno"> 55</span>&#160; }</div>
227<div class="line"><a name="l00056"></a><span class="lineno"> 56</span>&#160; }</div>
228<div class="line"><a name="l00057"></a><span class="lineno"> 57</span>&#160;}</div>
229</div><!-- fragment -->
230</div>
231</div>
232</div><!-- contents -->
233</div><!-- doc-content -->
234<!-- start footer part -->
235<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
236 <ul>
237 <li class="navelem"><a class="el" href="dir_d4d363c0979c7ffda4833df3f93b5668.xhtml">arm_compute</a></li><li class="navelem"><a class="el" href="dir_62e76289bb143101bef0ade0babfd908.xhtml">core</a></li><li class="navelem"><a class="el" href="dir_d8c3c94d7afca7dbbf0a57378fc2eb81.xhtml">NEON</a></li><li class="navelem"><a class="el" href="dir_fe359af270243e26066d9edb7147ece2.xhtml">kernels</a></li><li class="navelem"><a class="el" href="dir_de5c25a0a26af4ac1cdfe0fae1db6671.xhtml">assembly</a></li><li class="navelem"><a class="el" href="mergeresults_8hpp.xhtml">mergeresults.hpp</a></li>
Kaizenbf8b01d2017-10-12 14:26:51 +0100238 <li class="footer">Generated on Thu Oct 12 2017 14:26:34 for Compute Library by
Kaizen8938bd32017-09-28 14:38:23 +0100239 <a href="http://www.doxygen.org/index.html">
240 <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.6 </li>
241 </ul>
242</div>
243</body>
244</html>