title: How to speed up floating-point to integer number conversion?
body: <p>We're doing a great deal of floating-point to integer number conversions in our project. Basically, something like this</p>
  
  <pre><code>for(int i = 0; i &lt; HUGE_NUMBER; i++)
       int_array[i] = float_array[i];
  </code></pre>
  
  <p>The default C function which performs the conversion turns out to be quite time consuming.</p>
  
  <p>Is there any work around (maybe a hand tuned function) which can speed up the process a little bit? We don't care much about a precision. </p>