<?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 KD tree node question in Intel® Integrated Performance Primitives</title>
    <link>https://community.intel.com/t5/Intel-Integrated-Performance/KD-tree-node-question/m-p/882349#M10341</link>
    <description>&lt;P&gt;Hi! My questionis about how to extract leaf information from theIpprKDTreeNode class. I try to do it in the manner that for example PBRT does, but the results are odd and incorrect. I get some negative values which I, honestly, fail to decipher.&lt;/P&gt;
&lt;P&gt;&lt;CODE&gt;&lt;/CODE&gt;
&lt;/P&gt;&lt;P&gt;&lt;/P&gt;
&lt;P&gt;I appreciate any help!&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;void dumpIPPtree( IpprKDTreeNode *pRoot, IpprKDTreeNode *pNode ) {&lt;/P&gt;
&lt;P&gt;printf( "FLAG &amp;amp; 0x3 %d FLAG &amp;amp; ~0x3 = %u\n", pNode-&amp;gt;flag_k_ofs &amp;amp; 0x3, pNode-&amp;gt;flag_k_ofs &amp;amp; ~0x3 );&lt;/P&gt;
&lt;P&gt;if( pNode-&amp;gt;flag_k_ofs &amp;lt; 0 || (pNode-&amp;gt;flag_k_ofs &amp;amp; 0x3)==3 ) {&lt;/P&gt;
&lt;P&gt; printf( "COUNT = %u\n", pNode-&amp;gt;tree_data.items ); return;&lt;/P&gt;
&lt;P&gt;}&lt;/P&gt;
&lt;P&gt;printf( "SPLIT = %f\n", pNode-&amp;gt;tree_data.split );&lt;/P&gt;
&lt;P&gt;dumpIPPtree( pRoot, (IpprKDTreeNode*)((Ipp8u*)pNode + (pNode-&amp;gt;flag_k_ofs &amp;amp; ~0x3) + 0) );&lt;/P&gt;
&lt;P&gt;dumpIPPtree( pRoot, (IpprKDTreeNode*)((Ipp8u*)pNode + (pNode-&amp;gt;flag_k_ofs &amp;amp; ~0x3)) + 1 );&lt;/P&gt;
&lt;P&gt;}&lt;/P&gt;</description>
    <pubDate>Mon, 15 Dec 2008 16:15:01 GMT</pubDate>
    <dc:creator>Orfey_Mutkov</dc:creator>
    <dc:date>2008-12-15T16:15:01Z</dc:date>
    <item>
      <title>KD tree node question</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/KD-tree-node-question/m-p/882349#M10341</link>
      <description>&lt;P&gt;Hi! My questionis about how to extract leaf information from theIpprKDTreeNode class. I try to do it in the manner that for example PBRT does, but the results are odd and incorrect. I get some negative values which I, honestly, fail to decipher.&lt;/P&gt;
&lt;P&gt;&lt;CODE&gt;&lt;/CODE&gt;
&lt;/P&gt;&lt;P&gt;&lt;/P&gt;
&lt;P&gt;I appreciate any help!&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;void dumpIPPtree( IpprKDTreeNode *pRoot, IpprKDTreeNode *pNode ) {&lt;/P&gt;
&lt;P&gt;printf( "FLAG &amp;amp; 0x3 %d FLAG &amp;amp; ~0x3 = %u\n", pNode-&amp;gt;flag_k_ofs &amp;amp; 0x3, pNode-&amp;gt;flag_k_ofs &amp;amp; ~0x3 );&lt;/P&gt;
&lt;P&gt;if( pNode-&amp;gt;flag_k_ofs &amp;lt; 0 || (pNode-&amp;gt;flag_k_ofs &amp;amp; 0x3)==3 ) {&lt;/P&gt;
&lt;P&gt; printf( "COUNT = %u\n", pNode-&amp;gt;tree_data.items ); return;&lt;/P&gt;
&lt;P&gt;}&lt;/P&gt;
&lt;P&gt;printf( "SPLIT = %f\n", pNode-&amp;gt;tree_data.split );&lt;/P&gt;
&lt;P&gt;dumpIPPtree( pRoot, (IpprKDTreeNode*)((Ipp8u*)pNode + (pNode-&amp;gt;flag_k_ofs &amp;amp; ~0x3) + 0) );&lt;/P&gt;
&lt;P&gt;dumpIPPtree( pRoot, (IpprKDTreeNode*)((Ipp8u*)pNode + (pNode-&amp;gt;flag_k_ofs &amp;amp; ~0x3)) + 1 );&lt;/P&gt;
&lt;P&gt;}&lt;/P&gt;</description>
      <pubDate>Mon, 15 Dec 2008 16:15:01 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/KD-tree-node-question/m-p/882349#M10341</guid>
      <dc:creator>Orfey_Mutkov</dc:creator>
      <dc:date>2008-12-15T16:15:01Z</dc:date>
    </item>
  </channel>
</rss>

