<?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 Is there an error in Operation pseudo-code for FSIN instruction in Intel® ISA Extensions</title>
    <link>https://community.intel.com/t5/Intel-ISA-Extensions/Is-there-an-error-in-Operation-pseudo-code-for-FSIN-instruction/m-p/779501#M244</link>
    <description>Probably an error in the documentation.The real behaviour of fsin when an argument is out of range is known and it is very different from the documentation pseudocode.</description>
    <pubDate>Tue, 24 Jul 2012 00:07:44 GMT</pubDate>
    <dc:creator>Bernard</dc:creator>
    <dc:date>2012-07-24T00:07:44Z</dc:date>
    <item>
      <title>Is there an error in Operation pseudo-code for FSIN instruction?</title>
      <link>https://community.intel.com/t5/Intel-ISA-Extensions/Is-there-an-error-in-Operation-pseudo-code-for-FSIN-instruction/m-p/779500#M243</link>
      <description>&lt;P&gt;Is there an error in &lt;STRONG&gt;Operation&lt;/STRONG&gt; pseudo-code for &lt;STRONG&gt;FSIN&lt;/STRONG&gt; instruction? Please take a look:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Intel Instruction Set Reference, A-M, volume 2-A, page 3-412&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt; ...&lt;BR /&gt; &lt;STRONG&gt;FSIN - Sine&lt;/STRONG&gt;&lt;BR /&gt; ...&lt;BR /&gt; The source operand must be given in radians and must be within the range -2^63 to +2^63.&lt;BR /&gt; ...&lt;BR /&gt; If the source operand is outside the acceptable range, the C2 flag in the FPU status&lt;BR /&gt; word is set, and the value in register ST(0) remains unchanged. The instruction does&lt;BR /&gt; not raise an exception when the source operand is out of range.&lt;BR /&gt; ...&lt;BR /&gt; &lt;STRONG&gt;Operation&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt; IF ST(0) &amp;lt; 2^63 &amp;lt;- Instead of: IF ST(0) IN RANGE ( -2^63, +2^63 )&lt;BR /&gt; THEN&lt;BR /&gt; C2 &amp;lt;- 0;&lt;BR /&gt; ST(0) &amp;lt;- sin(ST(0));&lt;BR /&gt; ELSE (* Source operand out of range *)&lt;BR /&gt; C2 &amp;lt;- 1;&lt;BR /&gt; Fl;&lt;BR /&gt; ...&lt;/P&gt;&lt;P&gt;and it means that a value -2^65 also could be accepted according to thepseudo-code. It looks like the same&lt;BR /&gt;error in the documentation applies to all the rest trigonometric instructions.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jul 2012 23:20:40 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-ISA-Extensions/Is-there-an-error-in-Operation-pseudo-code-for-FSIN-instruction/m-p/779500#M243</guid>
      <dc:creator>SergeyKostrov</dc:creator>
      <dc:date>2012-07-23T23:20:40Z</dc:date>
    </item>
    <item>
      <title>Is there an error in Operation pseudo-code for FSIN instruction</title>
      <link>https://community.intel.com/t5/Intel-ISA-Extensions/Is-there-an-error-in-Operation-pseudo-code-for-FSIN-instruction/m-p/779501#M244</link>
      <description>Probably an error in the documentation.The real behaviour of fsin when an argument is out of range is known and it is very different from the documentation pseudocode.</description>
      <pubDate>Tue, 24 Jul 2012 00:07:44 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-ISA-Extensions/Is-there-an-error-in-Operation-pseudo-code-for-FSIN-instruction/m-p/779501#M244</guid>
      <dc:creator>Bernard</dc:creator>
      <dc:date>2012-07-24T00:07:44Z</dc:date>
    </item>
  </channel>
</rss>

