<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Hi! in Intel® Integrated Performance Primitives</title>
    <link>https://community.intel.com/t5/Intel-Integrated-Performance/ippsMalloc-int-len/m-p/1108309#M25367</link>
    <description>&lt;P&gt;Hi!&lt;/P&gt;

&lt;P&gt;Agree. The example on pg. 35 is not clear. The "sizeof" there is very confusing. The "ippsMalloc_*" functions as a parameter take the number of elements. This is why ippsMalloc function has clones with data type suffixes - 8u, 16s, etc.&lt;/P&gt;

&lt;P&gt;You may treat, for example, ippsMalloc_32f(n) as ippsMalloc_8u(n * sizeof(Ipp32f)). It's the same.&lt;/P&gt;</description>
    <pubDate>Thu, 17 Dec 2015 05:43:04 GMT</pubDate>
    <dc:creator>Sergey_K_Intel</dc:creator>
    <dc:date>2015-12-17T05:43:04Z</dc:date>
    <item>
      <title>ippsMalloc_...(int len)</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/ippsMalloc-int-len/m-p/1108308#M25366</link>
      <description>&lt;DIV class="field field-name-comment-body field-type-text-long field-label-hidden"&gt;
	&lt;DIV class="field-items"&gt;
		&lt;DIV class="field-item even"&gt;
			&lt;P&gt;what is the parameter 'len' referring to in ippsMalloc_XYZ(int len) function?&lt;/P&gt;

			&lt;P&gt;does it refer to "number of bytes", or "number" of elements"?&lt;/P&gt;

			&lt;P&gt;using examples on the reference:&amp;nbsp; &lt;A href="https://software.intel.com/en-us/ipp-9.0-ipps-manual-pdf"&gt;https://software.intel.com/en-us/ipp-9.0-ipps-manual-pdf&lt;/A&gt;&lt;/P&gt;

			&lt;P&gt;page 35:&lt;/P&gt;

			&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Ipp8u* pBuf = ippsMalloc_8u(8*&lt;STRONG&gt;sizeof(Ipp8u)&lt;/STRONG&gt;);&lt;/EM&gt;&lt;/P&gt;

			&lt;P&gt;seems referring to "number of bytes"&lt;/P&gt;

			&lt;P&gt;but the example on page 168: &amp;nbsp;&lt;/P&gt;

			&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;EM&gt;Ipp32f *x = ippsMalloc_32f(&lt;STRONG&gt;1000&lt;/STRONG&gt;), mean;&lt;BR /&gt;
				&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; int i;&lt;BR /&gt;
				&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for(i = 0; i&amp;lt;&lt;STRONG&gt;1000&lt;/STRONG&gt;; ++i) x&lt;I&gt; = (float)rand() / RAND_MAX;&lt;/I&gt;&lt;/EM&gt;&lt;I&gt;&lt;/I&gt;&lt;/P&gt;

			&lt;P&gt;seemly referring to&amp;nbsp; "number of elements": here 'array' x has 1000 'elements', and will take 1000*sizeof(Ipp32f), or 4000 bytes!&lt;/P&gt;
		&lt;/DIV&gt;
	&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Mon, 14 Dec 2015 20:38:57 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/ippsMalloc-int-len/m-p/1108308#M25366</guid>
      <dc:creator>jinming_g_</dc:creator>
      <dc:date>2015-12-14T20:38:57Z</dc:date>
    </item>
    <item>
      <title>Hi!</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/ippsMalloc-int-len/m-p/1108309#M25367</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;

&lt;P&gt;Agree. The example on pg. 35 is not clear. The "sizeof" there is very confusing. The "ippsMalloc_*" functions as a parameter take the number of elements. This is why ippsMalloc function has clones with data type suffixes - 8u, 16s, etc.&lt;/P&gt;

&lt;P&gt;You may treat, for example, ippsMalloc_32f(n) as ippsMalloc_8u(n * sizeof(Ipp32f)). It's the same.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Dec 2015 05:43:04 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/ippsMalloc-int-len/m-p/1108309#M25367</guid>
      <dc:creator>Sergey_K_Intel</dc:creator>
      <dc:date>2015-12-17T05:43:04Z</dc:date>
    </item>
  </channel>
</rss>

