C++ fast division/mod by 10^x
<p>In my program I am using a lot of integer division by 10^x and integer mod function of power 10.</p>

<p>ex:</p>

<pre><code>unsigned __int64 a = 12345;
a = a / 100;
....
</code></pre>

<p>or</p>

<pre><code>unsigned __int64 a = 12345;
a = a % 1000;
....
</code></pre>

<p>If i am going to use bite shift >> , then i will get mode of 2^x, which is not what i want.</p>

<p>Is there any way, I can speed up my program in integer division and mod functions ??
Thank you</p>
