title: Float to SInt32
body: <p>I have series of c++ signal processing classes which use 32 bit floats as their primary sample datatype. For example all the oscillator classes return floats for every sample thats requested. This is the same for all the classes, all calculations of samples are in floating point. </p>
  
  <p>I am porting these classes to iOS.. and for performance issues I want to operate in 8.24 fixed point to get the most out of the processor, word has it there are major performance advantages on iOS to crunching integers instead of floats.. I'm currently doing all the calculations in floats, then converting to SInt32 at the final stage before output which means every sample at the final stage needs to be converted.</p>
  
  <p>Do I simply change the datatype used inside my classes from Float to SInt32. So my oscillators and filters etc calculate in fixed point by passing SInt32's around internally instead of floats ?? </p>
  
  <p>is it really this simple ? or do I have to completely rewrite all the different algorithms ?</p>
  
  <p>is there any other voodoo I need to understand before taking on this mission ?</p>
  
  <p>Many Thanks for anyone who finds the time to comment on this.. Its much appreciated..</p>