Changes between Version 7 and Version 8 of GcnInstrsSop1


Ignore:
Timestamp:
Nov 29, 2015, 4:00:14 PM (4 years ago)
Author:
trac
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • GcnInstrsSop1

    v7 v8  
    498498Operation:<br />
    499499<code>SDST = -1
    500 for (INT8 i = 31; i &gt;= 0; i++)
     500for (INT8 i = 31; i &gt;= 0; i--)
    501501    if ((1U&lt;&lt;i) &amp; SSRC0) != 0)
    502502    { SDST = 31-i; break; }</code></p>
     
    508508Operation:<br />
    509509<code>SDST = -1
    510 for (INT8 i = 63; i &gt;= 0; i++)
     510for (INT8 i = 63; i &gt;= 0; i--)
    511511    if ((1ULL&lt;&lt;i) &amp; SSRC0) != 0)
    512512    { SDST = 63-i; break; }</code></p>
     
    519519<code>SDST = -1
    520520UINT32 bitval = (INT32)SSRC0&gt;=0 ? 1 : 0
    521 for (INT8 i = 31; i &gt;= 0; i++)
     521for (INT8 i = 31; i &gt;= 0; i--)
    522522    if ((1U&lt;&lt;i) &amp; SSRC0) == (bitval&lt;&lt;i))
    523523    { SDST = 31-i; break; }</code></p>
     
    530530<code>SDST = -1
    531531UINT64 bitval = (INT64)SSRC0&gt;=0 ? 1 : 0
    532 for (INT8 i = 63; i &gt;= 0; i++)
     532for (INT8 i = 63; i &gt;= 0; i--)
    533533    if ((1U&lt;&lt;i) &amp; SSRC0) == (bitval&lt;&lt;i))
    534534    { SDST = 63-i; break; }</code></p>