<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/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/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>NRF51822 API efficiency</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/3594/nrf51822-api-efficiency</link><description>Hi, 
 I&amp;#39;m reading and trying to understand the pstorage API. And I found a code snippet in pstorage_register (SDK 6.0.0). 
 do
{
 page_count++;
 if (total_size &amp;gt; PSTORAGE_FLASH_PAGE_SIZE)
 {
 total_size -= PSTORAGE_FLASH_PAGE_SIZE;
 }
 else</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 26 Aug 2014 04:23:04 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/3594/nrf51822-api-efficiency" /><item><title>RE: NRF51822 API efficiency</title><link>https://devzone.nordicsemi.com/thread/13042?ContentTypeID=1</link><pubDate>Tue, 26 Aug 2014 04:23:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0d865411-2f30-42c4-975f-70311ee9cf13</guid><dc:creator>Nikita</dc:creator><description>&lt;p&gt;Yes, that&amp;#39;s right, in case of &amp;#39;%&amp;#39; though it&amp;#39;ll be &amp;#39;&amp;lt;&amp;lt;&amp;#39; and &amp;#39;&amp;gt;&amp;gt;&amp;#39;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF51822 API efficiency</title><link>https://devzone.nordicsemi.com/thread/13041?ContentTypeID=1</link><pubDate>Tue, 26 Aug 2014 00:54:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f306ad54-da52-449a-af36-b719490035dc</guid><dc:creator>Clem Taylor</dc:creator><description>&lt;p&gt;Software division would not be used, because I&amp;#39;d assume that PSTORAGE_FLASH_PAGE_SIZE is a power of 2. The &amp;#39;%&amp;#39; becomes an &amp;#39;&amp;amp;&amp;#39; and the &amp;#39;/&amp;#39; becomes a &amp;#39;&amp;gt;&amp;gt;&amp;#39;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF51822 API efficiency</title><link>https://devzone.nordicsemi.com/thread/13040?ContentTypeID=1</link><pubDate>Mon, 25 Aug 2014 07:12:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:46b1782a-623e-417e-8899-ae5214bb1299</guid><dc:creator>Nikita</dc:creator><description>&lt;p&gt;Division operations are very slow. In Cortex-M0 it&amp;#39;ll take about 150 cycles as tested &lt;a href="http://forum.raisonance.com/viewtopic.php?id=5150"&gt;here&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>