<?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 MMX ARRAY ADDITION in Intel® ISA Extensions</title>
    <link>https://community.intel.com/t5/Intel-ISA-Extensions/MMX-ARRAY-ADDITION/m-p/782187#M310</link>
    <description>&lt;P&gt;it should be&lt;/P&gt;&lt;P&gt;  movq c, mm4&lt;/P&gt;&lt;P&gt;instead of&lt;/P&gt;&lt;P&gt;  movq c,mm1&lt;/P&gt;&lt;P&gt;?&lt;/P&gt;</description>
    <pubDate>Sun, 11 Jul 2010 13:48:14 GMT</pubDate>
    <dc:creator>lordmonsoon</dc:creator>
    <dc:date>2010-07-11T13:48:14Z</dc:date>
    <item>
      <title>MMX ARRAY ADDITION</title>
      <link>https://community.intel.com/t5/Intel-ISA-Extensions/MMX-ARRAY-ADDITION/m-p/782186#M309</link>
      <description>My output c is all zeros why?see codes below&lt;BR /&gt;#include "stdafx.h"&lt;BR /&gt;#include &lt;IOSTREAM&gt;&lt;BR /&gt;#include "emmintrin.h"&lt;BR /&gt;&lt;BR /&gt;using namespace std;&lt;BR /&gt;&lt;BR /&gt;int _tmain(int argc, _TCHAR* argv[])&lt;BR /&gt;{&lt;BR /&gt;&lt;BR /&gt; short x0[4]={1,1,1,1};//array xo&lt;BR /&gt; short x1[4]={2,2,2,2};//array x1&lt;BR /&gt; short c[4]; // sum of x0 and x1&lt;BR /&gt; __asm{&lt;BR /&gt; &lt;BR /&gt; movq mm4,x0 // load x0 into mm4&lt;BR /&gt; movq mm7,x1 // load x1 into mm7&lt;BR /&gt; paddw mm4,mm7// add array x0 to array x1&lt;BR /&gt; movq mm5, mm1&lt;BR /&gt; movq c,mm1 // move result into xmm1&lt;BR /&gt; emms&lt;BR /&gt; }&lt;BR /&gt;for (int i = 0; i &amp;lt; 4; i++)&lt;BR /&gt; {&lt;BR /&gt; cout &amp;lt;&amp;lt; x0&lt;I&gt; &amp;lt;&amp;lt; " ";&lt;BR /&gt;   cout &amp;lt;&amp;lt; x1[1]&amp;lt;&amp;lt; " ";&lt;BR /&gt; cout &amp;lt;&amp;lt; endl;&lt;BR /&gt; }&lt;BR /&gt;  cout &amp;lt;&amp;lt; endl;&lt;BR /&gt; for (int i = 0; i &amp;lt; 4; i++)&lt;BR /&gt; {&lt;BR /&gt; cout &amp;lt;&amp;lt; c&lt;I&gt; &amp;lt;&amp;lt; " ";&lt;BR /&gt; cout &amp;lt;&amp;lt; endl;&lt;BR /&gt; }&lt;BR /&gt;  &lt;BR /&gt;&lt;BR /&gt; return 0;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;&lt;/I&gt;&lt;/I&gt;&lt;/IOSTREAM&gt;</description>
      <pubDate>Sun, 11 Jul 2010 10:51:07 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-ISA-Extensions/MMX-ARRAY-ADDITION/m-p/782186#M309</guid>
      <dc:creator>Smart_Lubobya</dc:creator>
      <dc:date>2010-07-11T10:51:07Z</dc:date>
    </item>
    <item>
      <title>MMX ARRAY ADDITION</title>
      <link>https://community.intel.com/t5/Intel-ISA-Extensions/MMX-ARRAY-ADDITION/m-p/782187#M310</link>
      <description>&lt;P&gt;it should be&lt;/P&gt;&lt;P&gt;  movq c, mm4&lt;/P&gt;&lt;P&gt;instead of&lt;/P&gt;&lt;P&gt;  movq c,mm1&lt;/P&gt;&lt;P&gt;?&lt;/P&gt;</description>
      <pubDate>Sun, 11 Jul 2010 13:48:14 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-ISA-Extensions/MMX-ARRAY-ADDITION/m-p/782187#M310</guid>
      <dc:creator>lordmonsoon</dc:creator>
      <dc:date>2010-07-11T13:48:14Z</dc:date>
    </item>
  </channel>
</rss>

