arm_compute v17.03.1
[platform/upstream/armcl.git] / documentation / pixelwise__mul__float_8cl.xhtml
1 <!-- 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.11"/>
8 <meta name="robots" content="NOINDEX, NOFOLLOW" /> <!-- Prevent indexing by search engines -->
9 <title>ARM Compute Library: src/core/CL/cl_kernels/pixelwise_mul_float.cl 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="navtreedata.js"></script>
16 <script type="text/javascript" src="navtree.js"></script>
17 <script type="text/javascript">
18   $(document).ready(initResizable);
19   $(window).load(resizeHeight);
20 </script>
21 <link href="search/search.css" rel="stylesheet" type="text/css"/>
22 <script type="text/javascript" src="search/searchdata.js"></script>
23 <script type="text/javascript" src="search/search.js"></script>
24 <script type="text/javascript">
25   $(document).ready(function() { init_search(); });
26 </script>
27 <script type="text/x-mathjax-config">
28   MathJax.Hub.Config({
29     extensions: ["tex2jax.js"],
30     jax: ["input/TeX","output/HTML-CSS"],
31 });
32 </script><script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js"></script>
33 <link href="doxygen.css" rel="stylesheet" type="text/css" />
34 </head>
35 <body>
36 <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
37 <div id="titlearea">
38 <table cellspacing="0" cellpadding="0">
39  <tbody>
40  <tr style="height: 56px;">
41   <td style="padding-left: 0.5em;">
42    <div id="projectname">ARM Compute Library
43    &#160;<span id="projectnumber">17.03.1</span>
44    </div>
45   </td>
46  </tr>
47  </tbody>
48 </table>
49 </div>
50 <!-- end header part -->
51 <!-- Generated by Doxygen 1.8.11 -->
52 <script type="text/javascript">
53 var searchBox = new SearchBox("searchBox", "search",false,'Search');
54 </script>
55   <div id="navrow1" class="tabs">
56     <ul class="tablist">
57       <li><a href="index.xhtml"><span>Main&#160;Page</span></a></li>
58       <li><a href="namespaces.xhtml"><span>Namespaces</span></a></li>
59       <li><a href="annotated.xhtml"><span>Data&#160;Structures</span></a></li>
60       <li class="current"><a href="files.xhtml"><span>Files</span></a></li>
61       <li>
62         <div id="MSearchBox" class="MSearchBoxInactive">
63         <span class="left">
64           <img id="MSearchSelect" src="search/mag_sel.png"
65                onmouseover="return searchBox.OnSearchSelectShow()"
66                onmouseout="return searchBox.OnSearchSelectHide()"
67                alt=""/>
68           <input type="text" id="MSearchField" value="Search" accesskey="S"
69                onfocus="searchBox.OnSearchFieldFocus(true)" 
70                onblur="searchBox.OnSearchFieldFocus(false)" 
71                onkeyup="searchBox.OnSearchFieldChange(event)"/>
72           </span><span class="right">
73             <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
74           </span>
75         </div>
76       </li>
77     </ul>
78   </div>
79   <div id="navrow2" class="tabs2">
80     <ul class="tablist">
81       <li><a href="files.xhtml"><span>File&#160;List</span></a></li>
82       <li><a href="globals.xhtml"><span>Globals</span></a></li>
83     </ul>
84   </div>
85 </div><!-- top -->
86 <div id="side-nav" class="ui-resizable side-nav-resizable">
87   <div id="nav-tree">
88     <div id="nav-tree-contents">
89       <div id="nav-sync" class="sync"></div>
90     </div>
91   </div>
92   <div id="splitbar" style="-moz-user-select:none;" 
93        class="ui-resizable-handle">
94   </div>
95 </div>
96 <script type="text/javascript">
97 $(document).ready(function(){initNavTree('pixelwise__mul__float_8cl.xhtml','');});
98 </script>
99 <div id="doc-content">
100 <!-- window showing the filter options -->
101 <div id="MSearchSelectWindow"
102      onmouseover="return searchBox.OnSearchSelectShow()"
103      onmouseout="return searchBox.OnSearchSelectHide()"
104      onkeydown="return searchBox.OnSearchSelectKey(event)">
105 </div>
106
107 <!-- iframe showing the search results (closed by default) -->
108 <div id="MSearchResultsWindow">
109 <iframe src="javascript:void(0)" frameborder="0" 
110         name="MSearchResults" id="MSearchResults">
111 </iframe>
112 </div>
113
114 <div class="header">
115   <div class="summary">
116 <a href="#define-members">Macros</a> &#124;
117 <a href="#func-members">Functions</a>  </div>
118   <div class="headertitle">
119 <div class="title">pixelwise_mul_float.cl File Reference</div>  </div>
120 </div><!--header-->
121 <div class="contents">
122 <div class="textblock"><code>#include &quot;<a class="el" href="helpers_8h_source.xhtml">helpers.h</a>&quot;</code><br />
123 </div>
124 <p><a href="pixelwise__mul__float_8cl_source.xhtml">Go to the source code of this file.</a></p>
125 <table class="memberdecls">
126 <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
127 Macros</h2></td></tr>
128 <tr class="memitem:aa79b968718a9e073dd6f14a15a6f3e8b"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="pixelwise__mul__float_8cl.xhtml#aa79b968718a9e073dd6f14a15a6f3e8b">CONVERT_OP_FLOAT_STR</a>(x,  type,  round)&#160;&#160;&#160;(convert_##type##round(x))</td></tr>
129 <tr class="separator:aa79b968718a9e073dd6f14a15a6f3e8b"><td class="memSeparator" colspan="2">&#160;</td></tr>
130 <tr class="memitem:ae564a6abd6049a086c7933daa40c8eb8"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="pixelwise__mul__float_8cl.xhtml#ae564a6abd6049a086c7933daa40c8eb8">CONVERT_OP_FLOAT</a>(x,  type,  round)&#160;&#160;&#160;<a class="el" href="pixelwise__mul__float_8cl.xhtml#aa79b968718a9e073dd6f14a15a6f3e8b">CONVERT_OP_FLOAT_STR</a>(x, type, round)</td></tr>
131 <tr class="separator:ae564a6abd6049a086c7933daa40c8eb8"><td class="memSeparator" colspan="2">&#160;</td></tr>
132 </table><table class="memberdecls">
133 <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
134 Functions</h2></td></tr>
135 <tr class="memitem:a48e1db2c44cf575cfb7c59b97e83c08d"><td class="memItemLeft" align="right" valign="top">__kernel void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="pixelwise__mul__float_8cl.xhtml#a48e1db2c44cf575cfb7c59b97e83c08d">pixelwise_mul_float</a> (__global uchar *in1_ptr, uint in1_stride_x, uint in1_step_x, uint in1_stride_y, uint in1_step_y, uint in1_offset_first_element_in_bytes, __global uchar *in2_ptr, uint in2_stride_x, uint in2_step_x, uint in2_stride_y, uint in2_step_y, uint in2_offset_first_element_in_bytes, __global uchar *out_ptr, uint out_stride_x, uint out_step_x, uint out_stride_y, uint out_step_y, uint out_offset_first_element_in_bytes, const float scale)</td></tr>
136 <tr class="memdesc:a48e1db2c44cf575cfb7c59b97e83c08d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Performs a pixelwise multiplication with float scale of either integer or float inputs.  <a href="#a48e1db2c44cf575cfb7c59b97e83c08d">More...</a><br /></td></tr>
137 <tr class="separator:a48e1db2c44cf575cfb7c59b97e83c08d"><td class="memSeparator" colspan="2">&#160;</td></tr>
138 </table>
139 <h2 class="groupheader">Macro Definition Documentation</h2>
140 <a class="anchor" id="ae564a6abd6049a086c7933daa40c8eb8"></a>
141 <div class="memitem">
142 <div class="memproto">
143       <table class="memname">
144         <tr>
145           <td class="memname">#define CONVERT_OP_FLOAT</td>
146           <td>(</td>
147           <td class="paramtype">&#160;</td>
148           <td class="paramname">x, </td>
149         </tr>
150         <tr>
151           <td class="paramkey"></td>
152           <td></td>
153           <td class="paramtype">&#160;</td>
154           <td class="paramname">type, </td>
155         </tr>
156         <tr>
157           <td class="paramkey"></td>
158           <td></td>
159           <td class="paramtype">&#160;</td>
160           <td class="paramname">round&#160;</td>
161         </tr>
162         <tr>
163           <td></td>
164           <td>)</td>
165           <td></td><td>&#160;&#160;&#160;<a class="el" href="pixelwise__mul__float_8cl.xhtml#aa79b968718a9e073dd6f14a15a6f3e8b">CONVERT_OP_FLOAT_STR</a>(x, type, round)</td>
166         </tr>
167       </table>
168 </div><div class="memdoc">
169
170 <p>Definition at line <a class="el" href="pixelwise__mul__float_8cl_source.xhtml#l00031">31</a> of file <a class="el" href="pixelwise__mul__float_8cl_source.xhtml">pixelwise_mul_float.cl</a>.</p>
171
172 <p>Referenced by <a class="el" href="pixelwise__mul__float_8cl_source.xhtml#l00061">pixelwise_mul_float()</a>.</p>
173
174 </div>
175 </div>
176 <a class="anchor" id="aa79b968718a9e073dd6f14a15a6f3e8b"></a>
177 <div class="memitem">
178 <div class="memproto">
179       <table class="memname">
180         <tr>
181           <td class="memname">#define CONVERT_OP_FLOAT_STR</td>
182           <td>(</td>
183           <td class="paramtype">&#160;</td>
184           <td class="paramname">x, </td>
185         </tr>
186         <tr>
187           <td class="paramkey"></td>
188           <td></td>
189           <td class="paramtype">&#160;</td>
190           <td class="paramname">type, </td>
191         </tr>
192         <tr>
193           <td class="paramkey"></td>
194           <td></td>
195           <td class="paramtype">&#160;</td>
196           <td class="paramname">round&#160;</td>
197         </tr>
198         <tr>
199           <td></td>
200           <td>)</td>
201           <td></td><td>&#160;&#160;&#160;(convert_##type##round(x))</td>
202         </tr>
203       </table>
204 </div><div class="memdoc">
205
206 <p>Definition at line <a class="el" href="pixelwise__mul__float_8cl_source.xhtml#l00029">29</a> of file <a class="el" href="pixelwise__mul__float_8cl_source.xhtml">pixelwise_mul_float.cl</a>.</p>
207
208 </div>
209 </div>
210 <h2 class="groupheader">Function Documentation</h2>
211 <a class="anchor" id="a48e1db2c44cf575cfb7c59b97e83c08d"></a>
212 <div class="memitem">
213 <div class="memproto">
214       <table class="memname">
215         <tr>
216           <td class="memname">__kernel void pixelwise_mul_float </td>
217           <td>(</td>
218           <td class="paramtype">__global uchar *&#160;</td>
219           <td class="paramname"><em>in1_ptr</em>, </td>
220         </tr>
221         <tr>
222           <td class="paramkey"></td>
223           <td></td>
224           <td class="paramtype">uint&#160;</td>
225           <td class="paramname"><em>in1_stride_x</em>, </td>
226         </tr>
227         <tr>
228           <td class="paramkey"></td>
229           <td></td>
230           <td class="paramtype">uint&#160;</td>
231           <td class="paramname"><em>in1_step_x</em>, </td>
232         </tr>
233         <tr>
234           <td class="paramkey"></td>
235           <td></td>
236           <td class="paramtype">uint&#160;</td>
237           <td class="paramname"><em>in1_stride_y</em>, </td>
238         </tr>
239         <tr>
240           <td class="paramkey"></td>
241           <td></td>
242           <td class="paramtype">uint&#160;</td>
243           <td class="paramname"><em>in1_step_y</em>, </td>
244         </tr>
245         <tr>
246           <td class="paramkey"></td>
247           <td></td>
248           <td class="paramtype">uint&#160;</td>
249           <td class="paramname"><em>in1_offset_first_element_in_bytes</em>, </td>
250         </tr>
251         <tr>
252           <td class="paramkey"></td>
253           <td></td>
254           <td class="paramtype">__global uchar *&#160;</td>
255           <td class="paramname"><em>in2_ptr</em>, </td>
256         </tr>
257         <tr>
258           <td class="paramkey"></td>
259           <td></td>
260           <td class="paramtype">uint&#160;</td>
261           <td class="paramname"><em>in2_stride_x</em>, </td>
262         </tr>
263         <tr>
264           <td class="paramkey"></td>
265           <td></td>
266           <td class="paramtype">uint&#160;</td>
267           <td class="paramname"><em>in2_step_x</em>, </td>
268         </tr>
269         <tr>
270           <td class="paramkey"></td>
271           <td></td>
272           <td class="paramtype">uint&#160;</td>
273           <td class="paramname"><em>in2_stride_y</em>, </td>
274         </tr>
275         <tr>
276           <td class="paramkey"></td>
277           <td></td>
278           <td class="paramtype">uint&#160;</td>
279           <td class="paramname"><em>in2_step_y</em>, </td>
280         </tr>
281         <tr>
282           <td class="paramkey"></td>
283           <td></td>
284           <td class="paramtype">uint&#160;</td>
285           <td class="paramname"><em>in2_offset_first_element_in_bytes</em>, </td>
286         </tr>
287         <tr>
288           <td class="paramkey"></td>
289           <td></td>
290           <td class="paramtype">__global uchar *&#160;</td>
291           <td class="paramname"><em>out_ptr</em>, </td>
292         </tr>
293         <tr>
294           <td class="paramkey"></td>
295           <td></td>
296           <td class="paramtype">uint&#160;</td>
297           <td class="paramname"><em>out_stride_x</em>, </td>
298         </tr>
299         <tr>
300           <td class="paramkey"></td>
301           <td></td>
302           <td class="paramtype">uint&#160;</td>
303           <td class="paramname"><em>out_step_x</em>, </td>
304         </tr>
305         <tr>
306           <td class="paramkey"></td>
307           <td></td>
308           <td class="paramtype">uint&#160;</td>
309           <td class="paramname"><em>out_stride_y</em>, </td>
310         </tr>
311         <tr>
312           <td class="paramkey"></td>
313           <td></td>
314           <td class="paramtype">uint&#160;</td>
315           <td class="paramname"><em>out_step_y</em>, </td>
316         </tr>
317         <tr>
318           <td class="paramkey"></td>
319           <td></td>
320           <td class="paramtype">uint&#160;</td>
321           <td class="paramname"><em>out_offset_first_element_in_bytes</em>, </td>
322         </tr>
323         <tr>
324           <td class="paramkey"></td>
325           <td></td>
326           <td class="paramtype">const float&#160;</td>
327           <td class="paramname"><em>scale</em>&#160;</td>
328         </tr>
329         <tr>
330           <td></td>
331           <td>)</td>
332           <td></td><td></td>
333         </tr>
334       </table>
335 </div><div class="memdoc">
336
337 <p>Performs a pixelwise multiplication with float scale of either integer or float inputs. </p>
338 <dl class="section attention"><dt>Attention</dt><dd>The inputs and output data types need to be passed at compile time using -DDATA_TYPE_IN1, -DDATA_TYPE_IN2 and -DDATA_TYPE_OUT: e.g. -DDATA_TYPE_IN1=uchar -DDATA_TYPE_IN2=ushort -DDATA_TYPE_OUT=short </dd>
339 <dd>
340 The data type of the intermediate result of the multiplication should passed as well using -DDATA_TYPE_RES. e.g. If one of inputs is S16 -DDATA_TYPE_RES=int should be passed else -DDATA_TYPE_RES=short. </dd>
341 <dd>
342 -DDATA_TYPE_FLOAT must be passed if floating point inputs are provided.</dd></dl>
343 <dl class="params"><dt>Parameters</dt><dd>
344   <table class="params">
345     <tr><td class="paramdir">[in]</td><td class="paramname">in1_ptr</td><td>Pointer to the source image. Supported data types: U8, S16, F16, F32 </td></tr>
346     <tr><td class="paramdir">[in]</td><td class="paramname">in1_stride_x</td><td>Stride of the source image in X dimension (in bytes) </td></tr>
347     <tr><td class="paramdir">[in]</td><td class="paramname">in1_step_x</td><td>in1_stride_x * number of elements along X processed per workitem(in bytes) </td></tr>
348     <tr><td class="paramdir">[in]</td><td class="paramname">in1_stride_y</td><td>Stride of the source image in Y dimension (in bytes) </td></tr>
349     <tr><td class="paramdir">[in]</td><td class="paramname">in1_step_y</td><td>in1_stride_y * number of elements along Y processed per workitem(in bytes) </td></tr>
350     <tr><td class="paramdir">[in]</td><td class="paramname">in1_offset_first_element_in_bytes</td><td>The offset of the first element in the source image </td></tr>
351     <tr><td class="paramdir">[in]</td><td class="paramname">in2_ptr</td><td>Pointer to the source image. Supported data types: U8, S16, F16, F32 </td></tr>
352     <tr><td class="paramdir">[in]</td><td class="paramname">in2_stride_x</td><td>Stride of the source image in X dimension (in bytes) </td></tr>
353     <tr><td class="paramdir">[in]</td><td class="paramname">in2_step_x</td><td>in2_stride_x * number of elements along X processed per workitem(in bytes) </td></tr>
354     <tr><td class="paramdir">[in]</td><td class="paramname">in2_stride_y</td><td>Stride of the source image in Y dimension (in bytes) </td></tr>
355     <tr><td class="paramdir">[in]</td><td class="paramname">in2_step_y</td><td>in2_stride_y * number of elements along Y processed per workitem(in bytes) </td></tr>
356     <tr><td class="paramdir">[in]</td><td class="paramname">in2_offset_first_element_in_bytes</td><td>The offset of the first element in the source image </td></tr>
357     <tr><td class="paramdir">[out]</td><td class="paramname">out_ptr</td><td>Pointer to the destination image. Supported data types: U8, S16, F16, F32 </td></tr>
358     <tr><td class="paramdir">[in]</td><td class="paramname">out_stride_x</td><td>Stride of the destination image in X dimension (in bytes) </td></tr>
359     <tr><td class="paramdir">[in]</td><td class="paramname">out_step_x</td><td>out_stride_x * number of elements along X processed per workitem(in bytes) </td></tr>
360     <tr><td class="paramdir">[in]</td><td class="paramname">out_stride_y</td><td>Stride of the destination image in Y dimension (in bytes) </td></tr>
361     <tr><td class="paramdir">[in]</td><td class="paramname">out_step_y</td><td>out_stride_y * number of elements along Y processed per workitem(in bytes) </td></tr>
362     <tr><td class="paramdir">[in]</td><td class="paramname">out_offset_first_element_in_bytes</td><td>The offset of the first element in the destination image </td></tr>
363     <tr><td class="paramdir">[in]</td><td class="paramname">scale</td><td>Float scaling factor. Supported data types: F32 </td></tr>
364   </table>
365   </dd>
366 </dl>
367
368 <p>Definition at line <a class="el" href="pixelwise__mul__float_8cl_source.xhtml#l00061">61</a> of file <a class="el" href="pixelwise__mul__float_8cl_source.xhtml">pixelwise_mul_float.cl</a>.</p>
369
370 <p>References <a class="el" href="helpers_8h_source.xhtml#l00035">CONVERT</a>, <a class="el" href="pixelwise__mul__float_8cl_source.xhtml#l00031">CONVERT_OP_FLOAT</a>, <a class="el" href="helpers_8h_source.xhtml#l00073">CONVERT_TO_IMAGE_STRUCT</a>, <a class="el" href="convolution3x3_8cl_source.xhtml#l00031">DATA_TYPE_OUT</a>, <a class="el" href="helpers_8h_source.xhtml#l00097">Image::ptr</a>, and <a class="el" href="helpers_8h_source.xhtml#l00032">VEC_DATA_TYPE</a>.</p>
371 <div class="fragment"><div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;{</div><div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;    <span class="comment">// Get pixels pointer</span></div><div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;    <a class="code" href="struct_image.xhtml">Image</a> in1 = <a class="code" href="helpers_8h.xhtml#aebe814363556c244be043b13e7969197">CONVERT_TO_IMAGE_STRUCT</a>(in1);</div><div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;    <a class="code" href="struct_image.xhtml">Image</a> in2 = <a class="code" href="helpers_8h.xhtml#aebe814363556c244be043b13e7969197">CONVERT_TO_IMAGE_STRUCT</a>(in2);</div><div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;    <a class="code" href="struct_image.xhtml">Image</a> out = <a class="code" href="helpers_8h.xhtml#aebe814363556c244be043b13e7969197">CONVERT_TO_IMAGE_STRUCT</a>(out);</div><div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;</div><div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;    <span class="comment">// Load data</span></div><div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;    <a class="code" href="helpers_8h.xhtml#a36f754c05b6fddf6df0d8d0a74f8159f">VEC_DATA_TYPE</a>(DATA_TYPE_RES, 16)</div><div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;    in1_data = <a class="code" href="helpers_8h.xhtml#aa8d95ba04fc73845abc6045952cae5be">CONVERT</a>(vload16(0, (__global DATA_TYPE_IN1 *)in1.ptr), <a class="code" href="helpers_8h.xhtml#a36f754c05b6fddf6df0d8d0a74f8159f">VEC_DATA_TYPE</a>(DATA_TYPE_RES, 16));</div><div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;    <a class="code" href="helpers_8h.xhtml#a36f754c05b6fddf6df0d8d0a74f8159f">VEC_DATA_TYPE</a>(DATA_TYPE_RES, 16)</div><div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;    in2_data = <a class="code" href="helpers_8h.xhtml#aa8d95ba04fc73845abc6045952cae5be">CONVERT</a>(vload16(0, (__global DATA_TYPE_IN2 *)in2.ptr), <a class="code" href="helpers_8h.xhtml#a36f754c05b6fddf6df0d8d0a74f8159f">VEC_DATA_TYPE</a>(DATA_TYPE_RES, 16));</div><div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;</div><div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;    <span class="comment">// Perform multiplication</span></div><div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;<span class="preprocessor">#if defined DATA_TYPE_FLOAT</span></div><div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;    <a class="code" href="helpers_8h.xhtml#a36f754c05b6fddf6df0d8d0a74f8159f">VEC_DATA_TYPE</a>(<a class="code" href="convolution3x3_8cl.xhtml#ac06f3e24d3fffd3c465d8b2a6e7c985e">DATA_TYPE_OUT</a>, 16)</div><div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;    res = <a class="code" href="helpers_8h.xhtml#aa8d95ba04fc73845abc6045952cae5be">CONVERT</a>(in1_data * in2_data * scale, <a class="code" href="helpers_8h.xhtml#a36f754c05b6fddf6df0d8d0a74f8159f">VEC_DATA_TYPE</a>(<a class="code" href="convolution3x3_8cl.xhtml#ac06f3e24d3fffd3c465d8b2a6e7c985e">DATA_TYPE_OUT</a>, 16));</div><div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;<span class="preprocessor">#else</span></div><div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;    <a class="code" href="helpers_8h.xhtml#a36f754c05b6fddf6df0d8d0a74f8159f">VEC_DATA_TYPE</a>(DATA_TYPE_OUT, 16)</div><div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;    res = <a class="code" href="pixelwise__mul__float_8cl.xhtml#ae564a6abd6049a086c7933daa40c8eb8">CONVERT_OP_FLOAT</a>(<a class="code" href="pixelwise__mul__float_8cl.xhtml#ae564a6abd6049a086c7933daa40c8eb8">CONVERT_OP_FLOAT</a>((convert_float16(in1_data * in2_data) * scale), <a class="code" href="helpers_8h.xhtml#a36f754c05b6fddf6df0d8d0a74f8159f">VEC_DATA_TYPE</a>(DATA_TYPE_RES, 16), ROUND), <a class="code" href="helpers_8h.xhtml#a36f754c05b6fddf6df0d8d0a74f8159f">VEC_DATA_TYPE</a>(DATA_TYPE_OUT, 16), ROUND);</div><div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;</div><div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;    <span class="comment">// Store result</span></div><div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;    vstore16(res, 0, (__global DATA_TYPE_OUT *)out.<a class="code" href="struct_image.xhtml#acf52c23cbd7424606c10a606524e3e32">ptr</a>);</div><div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;}</div><div class="ttc" id="helpers_8h_xhtml_aebe814363556c244be043b13e7969197"><div class="ttname"><a href="helpers_8h.xhtml#aebe814363556c244be043b13e7969197">CONVERT_TO_IMAGE_STRUCT</a></div><div class="ttdeci">#define CONVERT_TO_IMAGE_STRUCT(name)</div><div class="ttdef"><b>Definition:</b> <a href="helpers_8h_source.xhtml#l00073">helpers.h:73</a></div></div>
372 <div class="ttc" id="helpers_8h_xhtml_a36f754c05b6fddf6df0d8d0a74f8159f"><div class="ttname"><a href="helpers_8h.xhtml#a36f754c05b6fddf6df0d8d0a74f8159f">VEC_DATA_TYPE</a></div><div class="ttdeci">#define VEC_DATA_TYPE(type, size)</div><div class="ttdef"><b>Definition:</b> <a href="helpers_8h_source.xhtml#l00032">helpers.h:32</a></div></div>
373 <div class="ttc" id="pixelwise__mul__float_8cl_xhtml_ae564a6abd6049a086c7933daa40c8eb8"><div class="ttname"><a href="pixelwise__mul__float_8cl.xhtml#ae564a6abd6049a086c7933daa40c8eb8">CONVERT_OP_FLOAT</a></div><div class="ttdeci">#define CONVERT_OP_FLOAT(x, type, round)</div><div class="ttdef"><b>Definition:</b> <a href="pixelwise__mul__float_8cl_source.xhtml#l00031">pixelwise_mul_float.cl:31</a></div></div>
374 <div class="ttc" id="struct_image_xhtml"><div class="ttname"><a href="struct_image.xhtml">Image</a></div><div class="ttdoc">Structure to hold Image information. </div><div class="ttdef"><b>Definition:</b> <a href="helpers_8h_source.xhtml#l00095">helpers.h:95</a></div></div>
375 <div class="ttc" id="struct_image_xhtml_acf52c23cbd7424606c10a606524e3e32"><div class="ttname"><a href="struct_image.xhtml#acf52c23cbd7424606c10a606524e3e32">Image::ptr</a></div><div class="ttdeci">__global uchar * ptr</div><div class="ttdoc">Pointer to the starting postion of the buffer. </div><div class="ttdef"><b>Definition:</b> <a href="helpers_8h_source.xhtml#l00097">helpers.h:97</a></div></div>
376 <div class="ttc" id="convolution3x3_8cl_xhtml_ac06f3e24d3fffd3c465d8b2a6e7c985e"><div class="ttname"><a href="convolution3x3_8cl.xhtml#ac06f3e24d3fffd3c465d8b2a6e7c985e">DATA_TYPE_OUT</a></div><div class="ttdeci">#define DATA_TYPE_OUT</div><div class="ttdef"><b>Definition:</b> <a href="convolution3x3_8cl_source.xhtml#l00031">convolution3x3.cl:31</a></div></div>
377 <div class="ttc" id="helpers_8h_xhtml_aa8d95ba04fc73845abc6045952cae5be"><div class="ttname"><a href="helpers_8h.xhtml#aa8d95ba04fc73845abc6045952cae5be">CONVERT</a></div><div class="ttdeci">#define CONVERT(x, type)</div><div class="ttdef"><b>Definition:</b> <a href="helpers_8h_source.xhtml#l00035">helpers.h:35</a></div></div>
378 </div><!-- fragment -->
379 </div>
380 </div>
381 </div><!-- contents -->
382 </div><!-- doc-content -->
383 <!-- start footer part -->
384 <div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
385   <ul>
386     <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="pixelwise__mul__float_8cl.xhtml">pixelwise_mul_float.cl</a></li>
387     <li class="footer">Generated on Fri Mar 24 2017 17:23:50 for ARM Compute Library by
388     <a href="http://www.doxygen.org/index.html">
389     <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.11 </li>
390   </ul>
391 </div>
392 </body>
393 </html>