Re: Faster Frac() imlementation?




Hi Hubert,

"Hubert Seidel" <nospam@xxxxxxxxxxxxxxxx> wrote:

You can use fixpoint arithmetic e.g. 24:8 (in a 32bit Integer)
when 0..1 can represented with 8 Bits (0..255).

Thanks for this! I'm now busy replacing my all time-critical routines which use floating point with a fixed point mechanism based on the one you proposed and I've already achieved a 200% speed increase.

I've never thought about fixed point arithmatics before but it's simply perfect for many of my everyday purposes.

Cheers!
Bram

.