Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!wuarchive!uunet!olivea!apple!agate!ucbvax!dog.ee.lbl.gov!nosc!crash!jcs From: jcs@crash.cts.com (John Schultz) Newsgroups: comp.sys.amiga.programmer Subject: Re: Switching between integer and floating point Message-ID: <8816@crash.cts.com> Date: 25 Apr 91 17:28:55 GMT References: <1991Apr24.041205.1588@netcom.COM> Organization: Crash TimeSharing, El Cajon, CA Lines: 22 In <1991Apr24.041205.1588@netcom.COM> rodent@netcom.COM (Ben Discoe) writes: > I've been working on a 3D object viewer intended for PD release, with >source, as soon as it's stable. My problem is this: when the project was >started, I only had a 1000 to work on, so I wrote all the math using >two kinds of fixed-point integer math (one kind for angles, another for >coordinates). > Now I (and many people who may want the code) are on accelerated >systems with 6888x's, so I'd like to include a compile-time flag to >compile with floating-point math instead of the integers. I'm sure many >other people have faced this same problem: how do you keep one source >with two different kinds of math involved? Leave it in integer. The integer code will run much faster than floating point on a 68020/030. No need to waste your time with floats for computer graphics work on an Amiga. John