Path: utzoo!utgpu!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!bloom-beacon!think!ames!haven!adm!smoke!gwyn From: gwyn@smoke.BRL.MIL (Doug Gwyn ) Newsgroups: comp.lang.c Subject: Re: Single precision math in C Keywords: float, single precision Message-ID: <9148@smoke.BRL.MIL> Date: 12 Dec 88 17:30:01 GMT References: <88Dec10.135843est.10521@ephemeral.ai.toronto.edu> Reply-To: gwyn@brl.arpa (Doug Gwyn (VLD/VMB) ) Organization: Ballistic Research Lab (BRL), APG, MD. Lines: 9 In article <88Dec10.135843est.10521@ephemeral.ai.toronto.edu> bradb@ai.toronto.edu writes: >Because some of the machines that I run on have no floating point processor, >it is useful to be able to force single-precision math for speed. So, use "float" for such data types (don't forget to cast the inherently double floating-point constants, e.g. (float)1.0). Watch out for varargs parameters and arguments to functions when you do this; normally those will have to be double.