Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!usc!henry.jpl.nasa.gov!elroy.jpl.nasa.gov!news From: ram@jane.Jpl.Nasa.Gov (Bob Mortensen) Newsgroups: comp.graphics Subject: Fixed Point Arithmetic Message-ID: Date: 20 Dec 89 01:01:55 GMT Sender: news@elroy.jpl.nasa.gov (Usenet) Reply-To: bob@zest.jpl.nasa.gov Distribution: comp Organization: Image Analysis Systems Grp, JPL Lines: 13 Does anyone have some good fixed point arithmetic routines (or macros) for C? Or is there at least any good references on this subject. Specifically, I have an application that is written in floating point but could just as well use fixed, and I'm sure that it would be sped up dramatically. I would like to use 32-bit integers with 16-bits of integer and 16-bits of fraction. I hate to reinvent the wheel. 8-) Thanks in advance, Bob Mortensen Visualization and Earth Science Applications Jet Propulsion Laboratory ram@jane.jpl.nasa.gov 4800 Oak Grove Drive bob@zest.jpl.nasa.gov Pasadena, CA 91109