Mail Archives: djgpp/1996/06/25/13:15:18
> I am curious. Is there any reason long long ints are not used for fixed
> point math? It would provide 64 bits of precision.. Making a 32.32
> possible...
It would be slow as hell. To do on 32x32 multiply it takes *4* multiply
instructions. It would be faster to convert it to float, do the
multiply, and convert it back to an integer. Doing 16.16 requires only
one multiply. Same rules apply for division.
--
"The trick is to forget about writing something good and pull cheese
out of your butt." -- Necros, on how to win the '20-Minutes' compo
Visit the Epsilon Coder Page at http://www.cs.pdx.edu/~idr
- Raw text -