<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.arm.com/utility/feedstylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Mixed-type division in DSP lib</title><link>https://community.arm.com/developer/tools-software/tools/f/armds-forum/2373/mixed-type-division-in-dsp-lib</link><description> Note: This was originally posted on 30th November 2012 at http://forums.arm.com Some of the ARM CMSIS routines employ mixed-type division without explicit casting.&amp;#160; See below.&amp;#160; The last line is a q31_t/uint32_t operation.&amp;#160; I could not find an explicit</description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: Mixed-type division in DSP lib</title><link>https://community.arm.com/thread/8220?ContentTypeID=1</link><pubDate>Wed, 11 Sep 2013 11:34:22 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:09be104b-d65f-49a0-bfce-8fd75e5a2da5</guid><dc:creator>Dr. Paul Beckmann</dc:creator><description>&lt;div&gt;&lt;i&gt;Note: This was originally posted on 3rd December 2012 at &lt;a href="http://forums.arm.com"&gt;http://forums.arm.com&lt;/a&gt;&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;Hi Bryan and Emilien,&lt;/span&gt;&lt;br /&gt;&lt;span&gt;Thanks for reporting this issue with the CMSIS library.&amp;#160; This is indeed a bug and the signed sum result is converted to unsigned.&amp;#160; We&amp;#39;ll get this fixed in the next release of the CMSIS library.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;-Paul&lt;/span&gt;&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mixed-type division in DSP lib</title><link>https://community.arm.com/thread/8219?ContentTypeID=1</link><pubDate>Wed, 11 Sep 2013 11:34:22 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:24f99250-f38a-4948-8a2d-3728db85c47f</guid><dc:creator>Emilien Kofman</dc:creator><description>&lt;div&gt;&lt;i&gt;Note: This was originally posted on 3rd December 2012 at &lt;a href="http://forums.arm.com"&gt;http://forums.arm.com&lt;/a&gt;&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;Hi Bryan,&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt; I was wondering the exact same thing as I got wrong results in my application... I ran the same kind of division with gcc and I also got a wrong result. Once I added the cast to blockSize it worked correctly.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;Would this be related to &amp;quot;6.3.1.8 Usual arithmetic conversions&amp;quot; (C99) :&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;&amp;quot;[...] Otherwise, if the operand that has unsigned integer type has rank greater or&lt;/span&gt;&lt;br /&gt;&lt;span&gt;equal to the rank of the type of the other operand, then the operand with&lt;/span&gt;&lt;br /&gt;&lt;span&gt;signed integer type is converted to the type of the operand with unsigned&lt;/span&gt;&lt;br /&gt;&lt;span&gt;integer type.&amp;quot;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;Anyone knows if I&amp;#39;m doing it wrong or if the CMSIS routines need this cast?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;-- &lt;/span&gt;&lt;br /&gt;&lt;span&gt;Emilien&lt;/span&gt;&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>