Re: Faster Frac() imlementation?
- From: "Bram" <buramu@xxxxxxxxx>
- Date: 31 Jul 2008 08:28:58 -0700
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
.
- References:
- Faster Frac() imlementation?
- From: buramu
- Re: Faster Frac() imlementation?
- From: Hubert Seidel
- Re: Faster Frac() imlementation?
- From: buramu
- Re: Faster Frac() imlementation?
- From: Hubert Seidel
- Faster Frac() imlementation?
- Prev by Date: The concept of vectorizing code
- Previous by thread: Re: Faster Frac() imlementation?
- Next by thread: Re: Faster Frac() imlementation?
- Index(es):